protected AbstractRule getMemberRule ( CodeElementExtractor . ElementDescription description ) { for ( final Assignment assignment : GrammarUtil . containedAssignments ( description . getGrammarComponent ( ) ) ) { if ( Objects . equals ( getCodeBuilderConfig ( ) . getMemberCollectionExtensionGrammarName ( ) , assignment . getFeature ( ) ) ) { if ( assignment . getTerminal ( ) instanceof RuleCall ) { return ( ( RuleCall ) assignment . getTerminal ( ) ) . getRule ( ) ; } } } return null ; }
Replies the rule used for defining the members of the given element .