private void generateGetter ( Field field ) { if ( isPrivate ) { invokeReflection ( getMethod ( Object . class , "get" , Object . class ) , getterSignature ( ) ) ; } else { directGetter ( field ) ; } if ( field . getType ( ) . isPrimitive ( ) ) { primitiveGetter ( field ) ; } }
Generates the getter method and optionally the primitive getter .