public final SgField findFieldByName ( final String name ) { if ( name == null ) { throw new IllegalArgumentException ( "The argument 'name' cannot be null!" ) ; } for ( int i = 0 ; i < fields . size ( ) ; i ++ ) { final SgField field = fields . get ( i ) ; if ( field . getName ( ) . equals ( name ) ) { return field ; } } return null ; }
Find a field by it s name .