当前位置: 首页>>代码示例>>Java>>正文


Java HiddenTokens.restore方法代码示例

本文整理汇总了Java中org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens.restore方法的典型用法代码示例。如果您正苦于以下问题:Java HiddenTokens.restore方法的具体用法?Java HiddenTokens.restore怎么用?Java HiddenTokens.restore使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens的用法示例。


在下文中一共展示了HiddenTokens.restore方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: entryRulePathGeneratorStopCondition

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRulePathGeneratorStopCondition() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:216:1: ( rulePathGeneratorStopCondition EOF )
        // InternalDSLPolicies.g:217:1: rulePathGeneratorStopCondition EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getPathGeneratorStopConditionRule()); 
        }
        pushFollow(FOLLOW_1);
        rulePathGeneratorStopCondition();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getPathGeneratorStopConditionRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:36,代码来源:InternalDSLPoliciesParser.java

示例2: entryRuleStringCondition

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleStringCondition() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:324:1: ( ruleStringCondition EOF )
        // InternalDSLPolicies.g:325:1: ruleStringCondition EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getStringConditionRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleStringCondition();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getStringConditionRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:36,代码来源:InternalDSLPoliciesParser.java

示例3: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalDSLPolicies.g:1907:1: ( ruleNumber EOF )
        // InternalDSLPolicies.g:1908:1: ruleNumber EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNumberRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleNumber();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNumberRule()); 
        }
        match(input,EOF,FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:36,代码来源:InternalDSLPoliciesParser.java

示例4: entryRuleQID

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleQID() throws RecognitionException {
    int entryRuleQID_StartIndex = input.index();
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 113) ) { return ; }
        // InternalExBeeLangTestLanguageParser.g:1534:1: ( ruleQID EOF )
        // InternalExBeeLangTestLanguageParser.g:1535:1: ruleQID EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getQIDRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        ruleQID();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getQIDRule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 113, entryRuleQID_StartIndex); }

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:39,代码来源:InternalExBeeLangTestLanguageParser.java

示例5: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNumber() throws RecognitionException {

        	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

        try {
            // ../com.avaloq.tools.ddk.checkcfg.ui/src-gen/com/avaloq/tools/ddk/checkcfg/ui/contentassist/antlr/internal/InternalCheckCfg.g:2003:1: ( ruleNumber EOF )
            // ../com.avaloq.tools.ddk.checkcfg.ui/src-gen/com/avaloq/tools/ddk/checkcfg/ui/contentassist/antlr/internal/InternalCheckCfg.g:2004:1: ruleNumber EOF
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getNumberRule()); 
            }
            pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber4217);
            ruleNumber();

            state._fsp--;
            if (state.failed) return ;
            if ( state.backtracking==0 ) {
               after(grammarAccess.getNumberRule()); 
            }
            match(input,EOF,FOLLOW_EOF_in_entryRuleNumber4224); if (state.failed) return ;

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }
        finally {

            	myHiddenTokenState.restore();

        }
        return ;
    }
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:36,代码来源:InternalCheckCfgParser.java

示例6: entryRulePath

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRulePath() throws RecognitionException {
    int entryRulePath_StartIndex = input.index();
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 13) ) { return ; }
        // InternalExBeeLangTestLanguageParser.g:276:1: ( rulePath EOF )
        // InternalExBeeLangTestLanguageParser.g:277:1: rulePath EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getPathRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_1);
        rulePath();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getPathRule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 13, entryRulePath_StartIndex); }

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:39,代码来源:InternalExBeeLangTestLanguageParser.java

示例7: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNumber() throws RecognitionException {

        	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

        try {
            // InternalMelange.g:2367:1: ( ruleNumber EOF )
            // InternalMelange.g:2368:1: ruleNumber EOF
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getNumberRule()); 
            }
            pushFollow(FOLLOW_1);
            ruleNumber();

            state._fsp--;
            if (state.failed) return ;
            if ( state.backtracking==0 ) {
               after(grammarAccess.getNumberRule()); 
            }
            match(input,EOF,FOLLOW_2); if (state.failed) return ;

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }
        finally {

            	myHiddenTokenState.restore();

        }
        return ;
    }
 
开发者ID:diverse-project,项目名称:melange,代码行数:36,代码来源:InternalMelangeParser.java

示例8: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNumber() throws RecognitionException {

        	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

        try {
            // ../br.ufpe.cin.Tupi.ui/src-gen/br/ufpe/cin/ui/contentassist/antlr/internal/InternalTupi.g:2339:1: ( ruleNumber EOF )
            // ../br.ufpe.cin.Tupi.ui/src-gen/br/ufpe/cin/ui/contentassist/antlr/internal/InternalTupi.g:2340:1: ruleNumber EOF
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getNumberRule()); 
            }
            pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber4937);
            ruleNumber();

            state._fsp--;
            if (state.failed) return ;
            if ( state.backtracking==0 ) {
               after(grammarAccess.getNumberRule()); 
            }
            match(input,EOF,FOLLOW_EOF_in_entryRuleNumber4944); if (state.failed) return ;

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }
        finally {

            	myHiddenTokenState.restore();

        }
        return ;
    }
 
开发者ID:fmca,项目名称:Tupi,代码行数:36,代码来源:InternalTupiParser.java

示例9: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNumber() throws RecognitionException {

        	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

        try {
            // ../org.xtext.nv.dsl.ui/src-gen/org/xtext/nv/dsl/ui/contentassist/antlr/internal/InternalMMDSL.g:5419:1: ( ruleNumber EOF )
            // ../org.xtext.nv.dsl.ui/src-gen/org/xtext/nv/dsl/ui/contentassist/antlr/internal/InternalMMDSL.g:5420:1: ruleNumber EOF
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getNumberRule()); 
            }
            pushFollow(FollowSets001.FOLLOW_ruleNumber_in_entryRuleNumber11535);
            ruleNumber();

            state._fsp--;
            if (state.failed) return ;
            if ( state.backtracking==0 ) {
               after(grammarAccess.getNumberRule()); 
            }
            match(input,EOF,FollowSets001.FOLLOW_EOF_in_entryRuleNumber11542); if (state.failed) return ;

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }
        finally {

            	myHiddenTokenState.restore();

        }
        return ;
    }
 
开发者ID:niksavis,项目名称:mm-dsl,代码行数:36,代码来源:InternalMMDSLParser.java

示例10: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNumber() throws RecognitionException {

        	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

        try {
            // /C:\\Users\\oehme\\git\\xtextcon\\presentations\\Building_Xtext_Languages_with_Maven_and_Gradle\\projects\\org.xtext.builddsl.ui/src-gen/org/xtext/builddsl/ui/contentassist/antlr/internal/InternalBuildDSL.g:1863:1: ( ruleNumber EOF )
            // /C:\\Users\\oehme\\git\\xtextcon\\presentations\\Building_Xtext_Languages_with_Maven_and_Gradle\\projects\\org.xtext.builddsl.ui/src-gen/org/xtext/builddsl/ui/contentassist/antlr/internal/InternalBuildDSL.g:1864:1: ruleNumber EOF
            {
            if ( state.backtracking==0 ) {
               before(grammarAccess.getNumberRule()); 
            }
            pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber3917);
            ruleNumber();

            state._fsp--;
            if (state.failed) return ;
            if ( state.backtracking==0 ) {
               after(grammarAccess.getNumberRule()); 
            }
            match(input,EOF,FOLLOW_EOF_in_entryRuleNumber3924); if (state.failed) return ;

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }
        finally {

            	myHiddenTokenState.restore();

        }
        return ;
    }
 
开发者ID:oehme,项目名称:xtext-maven-example,代码行数:36,代码来源:InternalBuildDSLParser.java

示例11: entryRuleNAME

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNAME() throws RecognitionException {
    int entryRuleNAME_StartIndex = input.index();

    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 235) ) { return ; }
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3342:1: ( ruleNAME EOF )
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3343:1: ruleNAME EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNAMERule()); 
        }
        pushFollow(FollowSets000.FOLLOW_ruleNAME_in_entryRuleNAME7098);
        ruleNAME();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNAMERule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleNAME7105); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 235, entryRuleNAME_StartIndex); }

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:39,代码来源:InternalSadlParser.java

示例12: entryRuleNAME_FRAGMENT

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNAME_FRAGMENT() throws RecognitionException {
    int entryRuleNAME_FRAGMENT_StartIndex = input.index();

    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 237) ) { return ; }
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3378:1: ( ruleNAME_FRAGMENT EOF )
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3379:1: ruleNAME_FRAGMENT EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNAME_FRAGMENTRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_ruleNAME_FRAGMENT_in_entryRuleNAME_FRAGMENT7167);
        ruleNAME_FRAGMENT();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNAME_FRAGMENTRule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleNAME_FRAGMENT7174); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 237, entryRuleNAME_FRAGMENT_StartIndex); }

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:39,代码来源:InternalSadlParser.java

示例13: entryRuleID_OR_KEYWORD

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleID_OR_KEYWORD() throws RecognitionException {
    int entryRuleID_OR_KEYWORD_StartIndex = input.index();

    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 239) ) { return ; }
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3414:1: ( ruleID_OR_KEYWORD EOF )
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3415:1: ruleID_OR_KEYWORD EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getID_OR_KEYWORDRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_ruleID_OR_KEYWORD_in_entryRuleID_OR_KEYWORD7236);
        ruleID_OR_KEYWORD();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getID_OR_KEYWORDRule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleID_OR_KEYWORD7243); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 239, entryRuleID_OR_KEYWORD_StartIndex); }

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:39,代码来源:InternalSadlParser.java

示例14: entryRuleNUMBER

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNUMBER() throws RecognitionException {
    int entryRuleNUMBER_StartIndex = input.index();

    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 241) ) { return ; }
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3450:1: ( ruleNUMBER EOF )
        // ../com.ge.research.sadl.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalSadl.g:3451:1: ruleNUMBER EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNUMBERRule()); 
        }
        pushFollow(FollowSets000.FOLLOW_ruleNUMBER_in_entryRuleNUMBER7305);
        ruleNUMBER();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getNUMBERRule()); 
        }
        match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleNUMBER7312); if (state.failed) return ;

        }

    }
    catch (RecognitionException re) {
        reportError(re);
        recover(input,re);
    }
    finally {
        if ( state.backtracking>0 ) { memoize(input, 241, entryRuleNUMBER_StartIndex); }

        	myHiddenTokenState.restore();

    }
    return ;
}
 
开发者ID:crapo,项目名称:sadlos2,代码行数:39,代码来源:InternalSadlParser.java

示例15: entryRuleNUMBER

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //导入方法依赖的package包/类
public final void entryRuleNUMBER() throws RecognitionException {

        	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

        try {
            // ../com.ge.research.sadl.mapping.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalMapping.g:232:1: ( ruleNUMBER EOF )
            // ../com.ge.research.sadl.mapping.ui/src-gen/com/ge/research/sadl/ui/contentassist/antlr/internal/InternalMapping.g:233:1: ruleNUMBER EOF
            {
             before(grammarAccess.getNUMBERRule()); 
            pushFollow(FOLLOW_ruleNUMBER_in_entryRuleNUMBER426);
            ruleNUMBER();

            state._fsp--;

             after(grammarAccess.getNUMBERRule()); 
            match(input,EOF,FOLLOW_EOF_in_entryRuleNUMBER433); 

            }

        }
        catch (RecognitionException re) {
            reportError(re);
            recover(input,re);
        }
        finally {

            	myHiddenTokenState.restore();

        }
        return ;
    }
 
开发者ID:crapo,项目名称:sadlos2,代码行数:32,代码来源:InternalMappingParser.java


注:本文中的org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens.restore方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。