static public boolean needsReflection ( AptField genField ) { // // Since initializers are generated into the same package as the initialized class, // only private access fields require reflection // String accessModifier = genField . getAccessModifier ( ) ; if ( accessModifier . equals ( "private" ) ) return true ; return false ; }
Returns true if the initializer will use Reflection to initialize the field false otherwise .