private static CtMethod getFieldGetter ( CtField field , CtClass clazz ) throws NotFoundException { if ( field == null ) { return null ; } return getFieldGetter ( field , clazz , false ) ; }
Returns the getter to a given field of the given class object and returns null if there is no getter for the given field defined .