public ArrayList getFields ( String fieldNames ) throws NoSuchFieldException { ArrayList result = new ArrayList ( ) ; FieldDescriptorDef fieldDef ; String name ; for ( CommaListIterator it = new CommaListIterator ( fieldNames ) ; it . hasNext ( ) ; ) { name = it . getNext ( ) ; fieldDef = getField ( name ) ; if ( fieldDef == null ) { throw new NoSuchFieldException ( name ) ; } result . add ( fieldDef ) ; } return result ; }
Returns the field descriptors given in the the field names list .