當前位置: 首頁>>代碼示例>>Java>>正文


Java HiddenTokens類代碼示例

本文整理匯總了Java中org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens的典型用法代碼示例。如果您正苦於以下問題:Java HiddenTokens類的具體用法?Java HiddenTokens怎麽用?Java HiddenTokens使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


HiddenTokens類屬於org.eclipse.xtext.parser.antlr.XtextTokenStream包,在下文中一共展示了HiddenTokens類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: entryRulePolicies

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRulePolicies() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");

    try {
        // InternalDSLPolicies.g:183:1: ( rulePolicies EOF )
        // InternalDSLPolicies.g:184:1: rulePolicies EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getPoliciesRule()); 
        }
        pushFollow(FOLLOW_1);
        rulePolicies();

        state._fsp--;
        if (state.failed) return ;
        if ( state.backtracking==0 ) {
           after(grammarAccess.getPoliciesRule()); 
        }
        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: 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

示例3: 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

示例4: 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

示例5: entryRuleTK_REL_OP

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleTK_REL_OP() throws RecognitionException {
    int entryRuleTK_REL_OP_StartIndex = input.index();

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

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 51) ) { return ; }
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:766:1: ( ruleTK_REL_OP EOF )
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:767:1: ruleTK_REL_OP EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getTK_REL_OPRule()); 
        }
        pushFollow(FOLLOW_ruleTK_REL_OP_in_entryRuleTK_REL_OP1579);
        ruleTK_REL_OP();

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

        }

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

        	myHiddenTokenState.restore();

    }
    return ;
}
 
開發者ID:jason-lang,項目名稱:jason-eclipse-plugin,代碼行數:39,代碼來源:InternalAslParser.java

示例6: 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, 75) ) { return ; }
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:1114:1: ( ruleNumber EOF )
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:1115:1: ruleNumber EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getNumberRule()); 
        }
        pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber2312);
        ruleNumber();

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

        }

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

        	myHiddenTokenState.restore();

    }
    return ;
}
 
開發者ID:jason-lang,項目名稱:jason-eclipse-plugin,代碼行數:39,代碼來源:InternalAslParser.java

示例7: entryRuleJASON_ATOM

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleJASON_ATOM() throws RecognitionException {
    int entryRuleJASON_ATOM_StartIndex = input.index();

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

    try {
        if ( state.backtracking>0 && alreadyParsedRule(input, 77) ) { return ; }
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:1150:1: ( ruleJASON_ATOM EOF )
        // ../jasonide.xtext.asl.ui/src-gen/jasonide/xtext/asl/ui/contentassist/antlr/internal/InternalAsl.g:1151:1: ruleJASON_ATOM EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getJASON_ATOMRule()); 
        }
        pushFollow(FOLLOW_ruleJASON_ATOM_in_entryRuleJASON_ATOM2381);
        ruleJASON_ATOM();

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

        }

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

        	myHiddenTokenState.restore();

    }
    return ;
}
 
開發者ID:jason-lang,項目名稱:jason-eclipse-plugin,代碼行數:39,代碼來源:InternalAslParser.java

示例8: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalXbaseWithAnnotations.g:1687:1: ( ruleNumber EOF )
        // InternalXbaseWithAnnotations.g:1688: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:eclipse,項目名稱:xtext-extras,代碼行數:36,代碼來源:InternalXbaseWithAnnotationsParser.java

示例9: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalXbase.g:1562:1: ( ruleNumber EOF )
        // InternalXbase.g:1563: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:eclipse,項目名稱:xtext-extras,代碼行數:36,代碼來源:InternalXbaseParser.java

示例10: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalBug462047Lang.g:1608:1: ( ruleNumber EOF )
        // InternalBug462047Lang.g:1609: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:eclipse,項目名稱:xtext-extras,代碼行數:36,代碼來源:InternalBug462047LangParser.java

示例11: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalXImportSectionTestLang.g:1583:1: ( ruleNumber EOF )
        // InternalXImportSectionTestLang.g:1584: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:eclipse,項目名稱:xtext-extras,代碼行數:36,代碼來源:InternalXImportSectionTestLangParser.java

示例12: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalContentAssistFragmentTestLang.g:1583:1: ( ruleNumber EOF )
        // InternalContentAssistFragmentTestLang.g:1584: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:eclipse,項目名稱:xtext-extras,代碼行數:36,代碼來源:InternalContentAssistFragmentTestLangParser.java

示例13: entryRuleNumber

import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; //導入依賴的package包/類
public final void entryRuleNumber() throws RecognitionException {
     
    	HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();

    try {
        // InternalPureXbase.g:1608:1: ( ruleNumber EOF )
        // InternalPureXbase.g:1609: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:eclipse,項目名稱:xtext-extras,代碼行數:36,代碼來源:InternalPureXbaseParser.java

示例14: 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, 11) ) { return ; }
        // InternalBeeLangTestLanguage.g:184:1: ( rulePath EOF )
        // InternalBeeLangTestLanguage.g:185:1: rulePath EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getPathRule()); 
        }
        pushFollow(FOLLOW_1);
        rulePath();

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

        }

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

        	myHiddenTokenState.restore();

    }
    return ;
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:39,代碼來源:InternalBeeLangTestLanguageParser.java

示例15: 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, 111) ) { return ; }
        // InternalBeeLangTestLanguage.g:1442:1: ( ruleQID EOF )
        // InternalBeeLangTestLanguage.g:1443:1: ruleQID EOF
        {
        if ( state.backtracking==0 ) {
           before(grammarAccess.getQIDRule()); 
        }
        pushFollow(FOLLOW_1);
        ruleQID();

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

        }

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

        	myHiddenTokenState.restore();

    }
    return ;
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:39,代碼來源:InternalBeeLangTestLanguageParser.java


注:本文中的org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。