private ArrayList < AptContextField > initContexts ( ) { ArrayList < AptContextField > contexts = new ArrayList < AptContextField > ( ) ; if ( _implDecl == null || _implDecl . getFields ( ) == null ) return contexts ; Collection < FieldDeclaration > declaredFields = _implDecl . getFields ( ) ; for ( FieldDeclaration fieldDecl : declaredFields ) { if ( fieldDecl . getAnnotation ( org . apache . beehive . controls . api . context . Context . class ) != null ) contexts . add ( new AptContextField ( this , fieldDecl , _ap ) ) ; } return contexts ; }
Initializes the list of ContextField declared directly by this ControlImpl