Java 类org.eclipse.xtext.TerminalRule 实例源码

项目:n4js    文件:ASTGraphProvider.java   
private String getDocumentation(/* @NonNull */EObject object) {
    if (object.eContainer() == null) {
        // if a comment is at the beginning of the file it will be returned for
        // the root element (e.g. Script in N4JS) as well -> avoid this!
        return null;
    }

    ICompositeNode node = NodeModelUtils.getNode(object);
    if (node != null) {
        // get the last multi line comment before a non hidden leaf node
        for (ILeafNode leafNode : node.getLeafNodes()) {
            if (!leafNode.isHidden())
                break;

            EObject grammarElem = leafNode.getGrammarElement();
            if (grammarElem instanceof TerminalRule
                    && "ML_COMMENT".equalsIgnoreCase(((TerminalRule) grammarElem).getName())) {

                String comment = leafNode.getText();
                if (commentStartTagRegex.matcher(comment).matches()) {
                    return leafNode.getText();
                }
            }
        }
    }
    return null;
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getSL_COMMENT_FRAGMENTRule() {
    return gaUnicode.getSL_COMMENT_FRAGMENTRule();
}
项目:n4js    文件:IdentifierDelegateValueConverter.java   
@Override
protected void processElement(AbstractElement element, AbstractRule rule, Builder<String> result) {
    if (element instanceof RuleCall) {
        AbstractRule calledRule = ((RuleCall) element).getRule();
        if (calledRule instanceof TerminalRule) {
            super.processElement(element, rule, result);
        } else {
            processElement(calledRule.getAlternatives(), rule, result);
        }
    } else {
        super.processElement(element, rule, result);
    }
}
项目:lcdsl    文件:LcDslGrammarAccess.java   
public TerminalRule getSL_COMMENTRule() {
    return gaTerminals.getSL_COMMENTRule();
}
项目:lcdsl    文件:LcDslGrammarAccess.java   
public TerminalRule getBOOLEANRule() {
    return tBOOLEAN;
}
项目:bromium    文件:BromiumGrammarAccess.java   
public TerminalRule getML_COMMENTRule() {
    return gaTerminals.getML_COMMENTRule();
}
项目:n4js    文件:RegularExpressionGrammarAccess.java   
public TerminalRule getBOMRule() {
    return gaUnicode.getBOMRule();
}
项目:pokemon-tcgo-deck-generator    文件:PkmntcgoGrammarAccess.java   
public TerminalRule getSL_COMMENTRule() {
    return gaTerminals.getSL_COMMENTRule();
}
项目:pokemon-tcgo-deck-generator    文件:PkmntcgoGrammarAccess.java   
public TerminalRule getWSRule() {
    return gaTerminals.getWSRule();
}
项目:n4js    文件:N4JSGrammarAccess.java   
public TerminalRule getLEGACY_OCTAL_INTRule() {
    return tLEGACY_OCTAL_INT;
}
项目:n4js    文件:TypesGrammarAccess.java   
@Inject
public TypesGrammarAccess(GrammarProvider grammarProvider,
        TypeExpressionsGrammarAccess gaTypeExpressions,
        UnicodeGrammarAccess gaUnicode) {
    this.grammar = internalFindGrammar(grammarProvider);
    this.gaTypeExpressions = gaTypeExpressions;
    this.gaUnicode = gaUnicode;
    this.pTypeDefs = new TypeDefsElements();
    this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.ts.Types.STRING");
    this.tSINGLE_STRING_CHAR = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.ts.Types.SINGLE_STRING_CHAR");
    this.pTAnnotation = new TAnnotationElements();
    this.pTAnnotationArgument = new TAnnotationArgumentElements();
    this.pTAnnotationStringArgument = new TAnnotationStringArgumentElements();
    this.pTAnnotationTypeRefArgument = new TAnnotationTypeRefArgumentElements();
    this.eTypeAccessModifier = new TypeAccessModifierElements();
    this.eMemberAccessModifier = new MemberAccessModifierElements();
    this.pType = new TypeElements();
    this.pTypeRef = new TypeRefElements();
    this.pPrimitiveType = new PrimitiveTypeElements();
    this.pTypeReferenceName = new TypeReferenceNameElements();
    this.pAnyType = new AnyTypeElements();
    this.pVoidType = new VoidTypeElements();
    this.pUndefinedType = new UndefinedTypeElements();
    this.pNullType = new NullTypeElements();
    this.pTypesIdentifier = new TypesIdentifierElements();
    this.pBindingTypesIdentifier = new BindingTypesIdentifierElements();
    this.pVoidOrBindingIdentifier = new VoidOrBindingIdentifierElements();
    this.pTypesSpecificKeywords = new TypesSpecificKeywordsElements();
    this.pTypesComputedPropertyName = new TypesComputedPropertyNameElements();
    this.pTypesSymbolLiteralComputedName = new TypesSymbolLiteralComputedNameElements();
    this.pTypesStringLiteralComputedName = new TypesStringLiteralComputedNameElements();
    this.pTObjectPrototype = new TObjectPrototypeElements();
    this.pVirtualBaseType = new VirtualBaseTypeElements();
    this.pTClass = new TClassElements();
    this.pTInterface = new TInterfaceElements();
    this.pTypeVariable = new TypeVariableElements();
    this.pTClassOrInterfaceHeader = new TClassOrInterfaceHeaderElements();
    this.pCallableCtor = new CallableCtorElements();
    this.pTFormalParameters = new TFormalParametersElements();
    this.pTMember = new TMemberElements();
    this.pTMethod = new TMethodElements();
    this.pTField = new TFieldElements();
    this.pTGetter = new TGetterElements();
    this.pTSetter = new TSetterElements();
    this.pTFunction = new TFunctionElements();
    this.pTEnum = new TEnumElements();
    this.pTEnumLiteral = new TEnumLiteralElements();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getSTRINGRule() {
    return tSTRING;
}
项目:gemoc-studio    文件:DslGrammarAccess.java   
public TerminalRule getSL_COMMENTRule() {
    return tSL_COMMENT;
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getSTRUCTMODSUFFIXRule() {
    return gaTypeExpressions.getSTRUCTMODSUFFIXRule();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getIDENTIFIERRule() {
    return gaTypeExpressions.getIDENTIFIERRule();
}
项目:org.xtext.dsl.restaurante    文件:RestauranteGrammarAccess.java   
public TerminalRule getIDRule() {
    return gaTerminals.getIDRule();
}
项目:gw4e.project    文件:DSLPoliciesGrammarAccess.java   
public TerminalRule getIDRule() {
    return gaXtype.getIDRule();
}
项目:n4js    文件:N4JSGrammarAccess.java   
public TerminalRule getUNICODE_COMBINING_MARK_FRAGMENTRule() {
    return gaUnicode.getUNICODE_COMBINING_MARK_FRAGMENTRule();
}
项目:lcdsl    文件:LcDslGrammarAccess.java   
@Inject
public LcDslGrammarAccess(GrammarProvider grammarProvider,
        TerminalsGrammarAccess gaTerminals) {
    this.grammar = internalFindGrammar(grammarProvider);
    this.gaTerminals = gaTerminals;
    this.pLCModel = new LCModelElements();
    this.pLaunchConfig = new LaunchConfigElements();
    this.pWorkspace = new WorkspaceElements();
    this.pWorkingDir = new WorkingDirElements();
    this.pMainProject = new MainProjectElements();
    this.pMainType = new MainTypeElements();
    this.pAddPlugin = new AddPluginElements();
    this.pAddFeature = new AddFeatureElements();
    this.pContentProviderProduct = new ContentProviderProductElements();
    this.pIgnorePlugin = new IgnorePluginElements();
    this.pVmArgument = new VmArgumentElements();
    this.pProgramArgument = new ProgramArgumentElements();
    this.pEnvironmentVariable = new EnvironmentVariableElements();
    this.pApplicationExtPoint = new ApplicationExtPointElements();
    this.pProductExtPoint = new ProductExtPointElements();
    this.pFavorites = new FavoritesElements();
    this.pRedirect = new RedirectElements();
    this.pExecutionEnvironment = new ExecutionEnvironmentElements();
    this.pConfigIniTemplate = new ConfigIniTemplateElements();
    this.pTraceEnablement = new TraceEnablementElements();
    this.pJavaMainSearch = new JavaMainSearchElements();
    this.pRapServletConfig = new RapServletConfigElements();
    this.pPath = new PathElements();
    this.pExistingPath = new ExistingPathElements();
    this.pAnyPath = new AnyPathElements();
    this.pPluginWithVersionAndStartLevel = new PluginWithVersionAndStartLevelElements();
    this.pPluginWithVersion = new PluginWithVersionElements();
    this.pFeatureWithVersion = new FeatureWithVersionElements();
    this.pProject = new ProjectElements();
    this.pJavaMainType = new JavaMainTypeElements();
    this.pClearOption = new ClearOptionElements();
    this.pMemoryOption = new MemoryOptionElements();
    this.pGroupMember = new GroupMemberElements();
    this.pGroupPostLaunchAction = new GroupPostLaunchActionElements();
    this.pGroupPostLaunchDelay = new GroupPostLaunchDelayElements();
    this.pGroupPostLaunchRegex = new GroupPostLaunchRegexElements();
    this.pGroupPostLaunchWait = new GroupPostLaunchWaitElements();
    this.pStringWithVariables = new StringWithVariablesElements();
    this.pFQName = new FQNameElements();
    this.eBrowserLaunchMode = new BrowserLaunchModeElements();
    this.eLaunchConfigType = new LaunchConfigTypeElements();
    this.eLaunchModeType = new LaunchModeTypeElements();
    this.eMemoryUnit = new MemoryUnitElements();
    this.eOutputStream = new OutputStreamElements();
    this.eInputStream = new InputStreamElements();
    this.tINT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.INT");
    this.tBOOLEAN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.BOOLEAN");
    this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.ID");
    this.tQUALIFIER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.QUALIFIER");
    this.tVERSION = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.VERSION");
    this.tEQ = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.EQ");
    this.tBLOCK_BEGIN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.BLOCK_BEGIN");
    this.tBLOCK_END = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.BLOCK_END");
    this.tBRACKET_OPEN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.BRACKET_OPEN");
    this.tBRACKET_CLOSE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.wamas.ide.launching.LcDsl.BRACKET_CLOSE");
}
项目:org.xtext.dsl.restaurante    文件:RestauranteGrammarAccess.java   
public TerminalRule getFECHARule() {
    return tFECHA;
}
项目:n4js    文件:N4JSGrammarAccess.java   
public TerminalRule getBINARY_INTRule() {
    return tBINARY_INT;
}
项目:n4js    文件:N4JSGrammarAccess.java   
public TerminalRule getIDENTIFIER_PARTRule() {
    return gaTypeExpressions.getIDENTIFIER_PARTRule();
}
项目:lcdsl    文件:LcDslGrammarAccess.java   
public TerminalRule getVERSIONRule() {
    return tVERSION;
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getHEX_DIGITRule() {
    return gaUnicode.getHEX_DIGITRule();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getDECIMAL_INTEGER_LITERAL_FRAGMENTRule() {
    return gaUnicode.getDECIMAL_INTEGER_LITERAL_FRAGMENTRule();
}
项目:OCCI-Studio    文件:OCCIGrammarAccess.java   
public TerminalRule getID_WITHOUT_CARETRule() {
    return tID_WITHOUT_CARET;
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getZWJRule() {
    return gaUnicode.getZWJRule();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getZWNJRule() {
    return gaUnicode.getZWNJRule();
}
项目:org.xtext.dsl.restaurante    文件:RestauranteGrammarAccess.java   
public TerminalRule getURLRule() {
    return tURL;
}
项目:n4js    文件:RegularExpressionGrammarAccess.java   
public TerminalRule getUNICODE_LETTER_FRAGMENTRule() {
    return gaUnicode.getUNICODE_LETTER_FRAGMENTRule();
}
项目:bromium    文件:BromiumGrammarAccess.java   
public TerminalRule getWSRule() {
    return gaTerminals.getWSRule();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getLINE_TERMINATOR_SEQUENCE_FRAGMENTRule() {
    return gaUnicode.getLINE_TERMINATOR_SEQUENCE_FRAGMENTRule();
}
项目:n4js    文件:RegularExpressionGrammarAccess.java   
public TerminalRule getUNICODE_SPACE_SEPARATOR_FRAGMENTRule() {
    return gaUnicode.getUNICODE_SPACE_SEPARATOR_FRAGMENTRule();
}
项目:n4js    文件:N4MFGrammarAccess.java   
public TerminalRule getIDRule() {
    return tID;
}
项目:n4js    文件:RegularExpressionGrammarAccess.java   
public TerminalRule getWHITESPACE_FRAGMENTRule() {
    return gaUnicode.getWHITESPACE_FRAGMENTRule();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getUNICODE_LETTER_FRAGMENTRule() {
    return gaUnicode.getUNICODE_LETTER_FRAGMENTRule();
}
项目:n4js    文件:TypesGrammarAccess.java   
public TerminalRule getUNICODE_SPACE_SEPARATOR_FRAGMENTRule() {
    return gaUnicode.getUNICODE_SPACE_SEPARATOR_FRAGMENTRule();
}
项目:n4js    文件:N4JSGrammarAccess.java   
public TerminalRule getML_COMMENT_FRAGMENTRule() {
    return gaUnicode.getML_COMMENT_FRAGMENTRule();
}
项目:gw4e.project    文件:DSLPoliciesGrammarAccess.java   
public TerminalRule getANY_OTHERRule() {
    return gaXtype.getANY_OTHERRule();
}
项目:OCCI-Studio    文件:OCCIGrammarAccess.java   
public TerminalRule getSL_COMMENTRule() {
    return gaTerminals.getSL_COMMENTRule();
}