public static < E extends ModelEntity < ? > > boolean extractAsBoolean ( E item , ModelAnnotation annotation , AnnotationAttributeType attribute ) { final Elements elementUtils = BaseProcessor . elementUtils ; final One < Boolean > result = new One < Boolean > ( false ) ; extractAttributeValue ( elementUtils , item . getElement ( ) , annotation . getName ( ) , attribute , new OnAttributeFoundListener ( ) { @ Override public void onFound ( String value ) { result . value0 = Boolean . valueOf ( value ) ; } } ) ; return result . value0 ; }
Estract from an annotation of a method the attribute value specified .