@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { if (rule == null || rule.eIsProxy()) return Collections.emptyList(); String methodName = "entryRule" + rule.getName(); PolymorphicDispatcher<Collection<FollowElement>> dispatcher = new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); dispatcher.invoke(); return parser.getFollowElements(); }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { InternalN4JSParser typedParser = (InternalN4JSParser) parser; typedParser.entryRuleScript(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
/** * Initialize the parser properly with the given tokens and process it. */ private Collection<FollowElement> doGetFollowElements(AbstractInternalContentAssistParser parser, ObservableXtextTokenStream tokens) { tokens.setInitialHiddenTokens(getInitialHiddenTokens()); parser.setTokenStream(tokens); IUnorderedGroupHelper helper = getUnorderedGroupHelper().get(); parser.setUnorderedGroupHelper(helper); helper.initializeWith(parser); tokens.setListener(parser); Collection<FollowElement> followElements = getFollowElements(parser); return followElements; }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { InternalMyDslParser typedParser = (InternalMyDslParser) parser; typedParser.entryRuleMensamodel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { InternalMinitlParser typedParser = (InternalMinitlParser) parser; typedParser.entryRuleTransformation(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { InternalModelEditorParser typedParser = (InternalModelEditorParser) parser; typedParser.entryRuleModel(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { org.xtext.example.statemachine.ide.contentassist.antlr.internal.InternalStatemachineParser typedParser = (org.xtext.example.statemachine.ide.contentassist.antlr.internal.InternalStatemachineParser) parser; typedParser.entryRuleStatemachine(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { InternalASBHLangParser typedParser = (InternalASBHLangParser) parser; typedParser.entryRuleRoot(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { InternalMiniOCLParser typedParser = (InternalMiniOCLParser) parser; typedParser.entryRuleRootCS(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { try { org.xtext.xrobot.dsl.ide.contentassist.antlr.internal.InternalXRobotDSLParser typedParser = (org.xtext.xrobot.dsl.ide.contentassist.antlr.internal.InternalXRobotDSLParser) parser; typedParser.entryRuleProgram(); return typedParser.getFollowElements(); } catch(RecognitionException ex) { throw new RuntimeException(ex); } }
@Override protected abstract AbstractInternalContentAssistParser createParser();