protected static Action findAction ( EObject grammarComponent , String assignmentName ) { for ( final Action action : GrammarUtil . containedActions ( grammarComponent ) ) { if ( GrammarUtil . isAssignedAction ( action ) ) { if ( Objects . equals ( assignmentName , action . getFeature ( ) ) ) { return action ; } } } return null ; }
Replies the assignment component with the given nazme in the given grammar component .