Java 类org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser 实例源码

项目:bts    文件:AbstractContentAssistParser.java   
public Collection<FollowElement> getFollowElements(String input, boolean strict) {
    CharStream stream = new ANTLRStringStream(input);
    TokenSource tokenSource = createLexer(stream);
    AbstractInternalContentAssistParser parser = createParser();
    parser.setStrict(strict);
    ObservableXtextTokenStream tokens = new ObservableXtextTokenStream(tokenSource, parser);
    tokens.setInitialHiddenTokens(getInitialHiddenTokens());
    parser.setTokenStream(tokens);
    IUnorderedGroupHelper helper = getUnorderedGroupHelper().get();
    parser.setUnorderedGroupHelper(helper);
    helper.initializeWith(parser);
    tokens.setListener(parser);
    try {
        return Lists.newArrayList(getFollowElements(parser));
    } catch(InfiniteRecursion infinite) {
        return Lists.newArrayList(parser.getFollowElements());
    }
}
项目:DocIT    文件:PartialIOIContentAssistParser.java   
@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();
}
项目:DocIT    文件:IOIParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        org.ioicompanies.lang.ui.contentassist.antlr.internal.InternalIOIParser typedParser = (org.ioicompanies.lang.ui.contentassist.antlr.internal.InternalIOIParser) parser;
        typedParser.entryRuleModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:gemoc-studio    文件:PartialGExpressionsContentAssistParser.java   
@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();
}
项目:gemoc-studio    文件:GExpressionsParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        org.eclipse.gemoc.gexpressions.xtext.ui.contentassist.antlr.internal.InternalGExpressionsParser typedParser = (org.eclipse.gemoc.gexpressions.xtext.ui.contentassist.antlr.internal.InternalGExpressionsParser) parser;
        typedParser.entryRuleGProgram();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:SurveyDSL    文件:QueryITParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        xtext.ui.contentassist.antlr.internal.InternalQueryITParser typedParser = (xtext.ui.contentassist.antlr.internal.InternalQueryITParser) parser;
        typedParser.entryRuleSurvey();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:SurveyDSL    文件:PartialQueryITContentAssistParser.java   
@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();
}
项目:jason-eclipse-plugin    文件:PartialMas2jContentAssistParser.java   
@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();
}
项目:jason-eclipse-plugin    文件:Mas2jParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        jasonide.xtext.mas2j.ui.contentassist.antlr.internal.InternalMas2jParser typedParser = (jasonide.xtext.mas2j.ui.contentassist.antlr.internal.InternalMas2jParser) parser;
        typedParser.entryRuleMas2jModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:jason-eclipse-plugin    文件:AslParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        jasonide.xtext.asl.ui.contentassist.antlr.internal.InternalAslParser typedParser = (jasonide.xtext.asl.ui.contentassist.antlr.internal.InternalAslParser) parser;
        typedParser.entryRuleAgent();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:jason-eclipse-plugin    文件:PartialAslContentAssistParser.java   
@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();
}
项目:dsl-devkit    文件:ValidParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.xtext.valid.ui.contentassist.antlr.internal.InternalValidParser typedParser = (com.avaloq.tools.ddk.xtext.valid.ui.contentassist.antlr.internal.InternalValidParser) parser;
        typedParser.entryRuleValidModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:FormatParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.xtext.format.ui.contentassist.antlr.internal.InternalFormatParser typedParser = (com.avaloq.tools.ddk.xtext.format.ui.contentassist.antlr.internal.InternalFormatParser) parser;
        typedParser.entryRuleFormatConfiguration();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:PartialTestLanguageContentAssistParser.java   
@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();
}
项目:dsl-devkit    文件:TestLanguageParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalTestLanguageParser typedParser = (com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalTestLanguageParser) parser;
        typedParser.entryRuleModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:ExportParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.xtext.export.ui.contentassist.antlr.internal.InternalExportParser typedParser = (com.avaloq.tools.ddk.xtext.export.ui.contentassist.antlr.internal.InternalExportParser) parser;
        typedParser.entryRuleExportModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:ScopeParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.xtext.scope.ui.contentassist.antlr.internal.InternalScopeParser typedParser = (com.avaloq.tools.ddk.xtext.scope.ui.contentassist.antlr.internal.InternalScopeParser) parser;
        typedParser.entryRuleScopeModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:ExpressionParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.xtext.expression.ui.contentassist.antlr.internal.InternalExpressionParser typedParser = (com.avaloq.tools.ddk.xtext.expression.ui.contentassist.antlr.internal.InternalExpressionParser) parser;
        typedParser.entryRuleExpression();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:PartialCheckContentAssistParser.java   
@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();
}
项目:dsl-devkit    文件:CheckParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalCheckParser typedParser = (com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalCheckParser) parser;
        typedParser.entryRuleCheckCatalog();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:CheckCfgParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.avaloq.tools.ddk.checkcfg.ui.contentassist.antlr.internal.InternalCheckCfgParser typedParser = (com.avaloq.tools.ddk.checkcfg.ui.contentassist.antlr.internal.InternalCheckCfgParser) parser;
        typedParser.entryRuleCheckConfiguration();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:dsl-devkit    文件:PartialCheckCfgContentAssistParser.java   
@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();
}
项目:bts    文件:EgyDslParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        org.bbaw.bts.corpus.text.egy.ui.contentassist.antlr.internal.InternalEgyDslParser typedParser = (org.bbaw.bts.corpus.text.egy.ui.contentassist.antlr.internal.InternalEgyDslParser) parser;
        typedParser.entryRuleTextContent();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:bts    文件:PartialEgyDslContentAssistParser.java   
@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();
}
项目:xtext-gef    文件:StatemachineParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        org.xtext.example.statemachine.ui.contentassist.antlr.internal.InternalStatemachineParser typedParser = (org.xtext.example.statemachine.ui.contentassist.antlr.internal.InternalStatemachineParser) parser;
        typedParser.entryRuleStatemachine();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:scribble-eclipse    文件:ScribbleDslParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        org.scribble.editor.dsl.ui.contentassist.antlr.internal.InternalScribbleDslParser typedParser = (org.scribble.editor.dsl.ui.contentassist.antlr.internal.InternalScribbleDslParser) parser;
        typedParser.entryRuleModule();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:scribble-eclipse    文件:PartialScribbleDslContentAssistParser.java   
@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();
}
项目:scribble-eclipse    文件:ScribbleTraceDslParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        org.scribble.trace.editor.dsl.ui.contentassist.antlr.internal.InternalScribbleTraceDslParser typedParser = (org.scribble.trace.editor.dsl.ui.contentassist.antlr.internal.InternalScribbleTraceDslParser) parser;
        typedParser.entryRuleTrace();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:scribble-eclipse    文件:PartialScribbleTraceDslContentAssistParser.java   
@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();
}
项目:statecharts    文件:EntryRuleContentAssistParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    if (entryRule == null)
        return super.getFollowElements(parser);
    try {
        InternalSTextParser typedParser = (InternalSTextParser) parser;
        Method method = typedParser.getClass().getMethod(ENTRY_RULE + entryRule);
        method.invoke(typedParser);
        return typedParser.getFollowElements();
    } catch (Exception ex) {
        throw new RuntimeException(ex);
    }
}
项目:melange    文件:PartialMelangeContentAssistParser.java   
@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();
}
项目:melange    文件:MelangeParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        fr.inria.diverse.melange.ui.contentassist.antlr.internal.InternalMelangeParser typedParser = (fr.inria.diverse.melange.ui.contentassist.antlr.internal.InternalMelangeParser) parser;
        typedParser.entryRuleModelTypingSpace();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:plan    文件:PlanParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        com.lowcoupling.lng.plan.ui.contentassist.antlr.internal.InternalPlanParser typedParser = (com.lowcoupling.lng.plan.ui.contentassist.antlr.internal.InternalPlanParser) parser;
        typedParser.entryRuleProgram();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:plan    文件:PartialPlanContentAssistParser.java   
@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();
}
项目:PHDL    文件:PhdlParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        edu.byu.ee.phdl.ui.contentassist.antlr.internal.InternalPhdlParser typedParser = (edu.byu.ee.phdl.ui.contentassist.antlr.internal.InternalPhdlParser) parser;
        typedParser.entryRulePhdlModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:PHDL    文件:PartialPhdlContentAssistParser.java   
@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();
}
项目:Tupi    文件:PartialTupiContentAssistParser.java   
@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();
}
项目:Tupi    文件:TupiParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        br.ufpe.cin.ui.contentassist.antlr.internal.InternalTupiParser typedParser = (br.ufpe.cin.ui.contentassist.antlr.internal.InternalTupiParser) parser;
        typedParser.entryRuleModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:umple    文件:UmpleParser.java   
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        cruise.umple.ui.contentassist.antlr.internal.InternalUmpleParser typedParser = (cruise.umple.ui.contentassist.antlr.internal.InternalUmpleParser) parser;
        typedParser.entryRuleModel();
        return typedParser.getFollowElements();
    } catch(RecognitionException ex) {
        throw new RuntimeException(ex);
    }       
}
项目:umple    文件:PartialUmpleContentAssistParser.java   
@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();
}