本文整理汇总了Java中org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken类的典型用法代码示例。如果您正苦于以下问题:Java AntlrDatatypeRuleToken类的具体用法?Java AntlrDatatypeRuleToken怎么用?Java AntlrDatatypeRuleToken使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AntlrDatatypeRuleToken类属于org.eclipse.xtext.parser.antlr包,在下文中一共展示了AntlrDatatypeRuleToken类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: entryRuleQualifiedID
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleQualifiedID() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleQualifiedID = null;
try {
// InternalOCCI.g:3770:51: (iv_ruleQualifiedID= ruleQualifiedID EOF )
// InternalOCCI.g:3771:2: iv_ruleQualifiedID= ruleQualifiedID EOF
{
newCompositeNode(grammarAccess.getQualifiedIDRule());
pushFollow(FOLLOW_1);
iv_ruleQualifiedID=ruleQualifiedID();
state._fsp--;
current =iv_ruleQualifiedID.getText();
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例2: entryRuleTypeReferenceName
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleTypeReferenceName() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTypeReferenceName = null;
try {
// InternalTypesParser.g:636:57: (iv_ruleTypeReferenceName= ruleTypeReferenceName EOF )
// InternalTypesParser.g:637:2: iv_ruleTypeReferenceName= ruleTypeReferenceName EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypeReferenceNameRule());
}
pushFollow(FOLLOW_1);
iv_ruleTypeReferenceName=ruleTypeReferenceName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTypeReferenceName.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例3: entryRuleTypesIdentifier
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleTypesIdentifier() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTypesIdentifier = null;
try {
// InternalTypesParser.g:900:55: (iv_ruleTypesIdentifier= ruleTypesIdentifier EOF )
// InternalTypesParser.g:901:2: iv_ruleTypesIdentifier= ruleTypesIdentifier EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypesIdentifierRule());
}
pushFollow(FOLLOW_1);
iv_ruleTypesIdentifier=ruleTypesIdentifier();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTypesIdentifier.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例4: entryRuleBindingTypesIdentifier
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleBindingTypesIdentifier() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleBindingTypesIdentifier = null;
try {
// InternalTypesParser.g:940:62: (iv_ruleBindingTypesIdentifier= ruleBindingTypesIdentifier EOF )
// InternalTypesParser.g:941:2: iv_ruleBindingTypesIdentifier= ruleBindingTypesIdentifier EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getBindingTypesIdentifierRule());
}
pushFollow(FOLLOW_1);
iv_ruleBindingTypesIdentifier=ruleBindingTypesIdentifier();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleBindingTypesIdentifier.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例5: entryRuleDEF
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleDEF() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleDEF = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:1941:2: (iv_ruleDEF= ruleDEF EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:1942:2: iv_ruleDEF= ruleDEF EOF
{
newCompositeNode(grammarAccess.getDEFRule());
pushFollow(FOLLOW_ruleDEF_in_entryRuleDEF4342);
iv_ruleDEF=ruleDEF();
state._fsp--;
current =iv_ruleDEF.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleDEF4353);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例6: entryRuleTypesSpecificKeywords
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleTypesSpecificKeywords() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTypesSpecificKeywords = null;
try {
// InternalTypesParser.g:1015:61: (iv_ruleTypesSpecificKeywords= ruleTypesSpecificKeywords EOF )
// InternalTypesParser.g:1016:2: iv_ruleTypesSpecificKeywords= ruleTypesSpecificKeywords EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypesSpecificKeywordsRule());
}
pushFollow(FOLLOW_1);
iv_ruleTypesSpecificKeywords=ruleTypesSpecificKeywords();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTypesSpecificKeywords.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例7: entryRuleTypesComputedPropertyName
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleTypesComputedPropertyName() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTypesComputedPropertyName = null;
try {
// InternalTypesParser.g:1075:65: (iv_ruleTypesComputedPropertyName= ruleTypesComputedPropertyName EOF )
// InternalTypesParser.g:1076:2: iv_ruleTypesComputedPropertyName= ruleTypesComputedPropertyName EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypesComputedPropertyNameRule());
}
pushFollow(FOLLOW_1);
iv_ruleTypesComputedPropertyName=ruleTypesComputedPropertyName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTypesComputedPropertyName.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例8: entryRuleIMPORT
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleIMPORT() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleIMPORT = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:2049:2: (iv_ruleIMPORT= ruleIMPORT EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:2050:2: iv_ruleIMPORT= ruleIMPORT EOF
{
newCompositeNode(grammarAccess.getIMPORTRule());
pushFollow(FOLLOW_ruleIMPORT_in_entryRuleIMPORT4694);
iv_ruleIMPORT=ruleIMPORT();
state._fsp--;
current =iv_ruleIMPORT.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleIMPORT4705);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例9: entryRuleKEYWORD
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleKEYWORD() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleKEYWORD = null;
try {
// InternalOCCI.g:3869:47: (iv_ruleKEYWORD= ruleKEYWORD EOF )
// InternalOCCI.g:3870:2: iv_ruleKEYWORD= ruleKEYWORD EOF
{
newCompositeNode(grammarAccess.getKEYWORDRule());
pushFollow(FOLLOW_1);
iv_ruleKEYWORD=ruleKEYWORD();
state._fsp--;
current =iv_ruleKEYWORD.getText();
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例10: entryRuleTypingStrategyUseSiteOperator
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleTypingStrategyUseSiteOperator() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTypingStrategyUseSiteOperator = null;
try {
// InternalTypesParser.g:5585:69: (iv_ruleTypingStrategyUseSiteOperator= ruleTypingStrategyUseSiteOperator EOF )
// InternalTypesParser.g:5586:2: iv_ruleTypingStrategyUseSiteOperator= ruleTypingStrategyUseSiteOperator EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypingStrategyUseSiteOperatorRule());
}
pushFollow(FOLLOW_1);
iv_ruleTypingStrategyUseSiteOperator=ruleTypingStrategyUseSiteOperator();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTypingStrategyUseSiteOperator.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例11: ruleTypingStrategyDefSiteOperator
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final AntlrDatatypeRuleToken ruleTypingStrategyDefSiteOperator() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalTypesParser.g:5637:2: (kw= Tilde )
// InternalTypesParser.g:5638:2: kw= Tilde
{
kw=(Token)match(input,Tilde,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getTypingStrategyDefSiteOperatorAccess().getTildeKeyword());
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例12: entryRuleIdentifierName
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleIdentifierName() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleIdentifierName = null;
try {
// InternalTypesParser.g:6092:54: (iv_ruleIdentifierName= ruleIdentifierName EOF )
// InternalTypesParser.g:6093:2: iv_ruleIdentifierName= ruleIdentifierName EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getIdentifierNameRule());
}
pushFollow(FOLLOW_1);
iv_ruleIdentifierName=ruleIdentifierName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleIdentifierName.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例13: entryRuleVALUE_WORD
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleVALUE_WORD() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleVALUE_WORD = null;
try {
// InternalDsl.g:305:50: (iv_ruleVALUE_WORD= ruleVALUE_WORD EOF )
// InternalDsl.g:306:2: iv_ruleVALUE_WORD= ruleVALUE_WORD EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getVALUE_WORDRule());
}
pushFollow(FOLLOW_1);
iv_ruleVALUE_WORD=ruleVALUE_WORD();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleVALUE_WORD.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例14: entryRuleINT
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleINT() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleINT = null;
try {
// InternalRegularExpressionParser.g:2089:43: (iv_ruleINT= ruleINT EOF )
// InternalRegularExpressionParser.g:2090:2: iv_ruleINT= ruleINT EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getINTRule());
}
pushFollow(FOLLOW_1);
iv_ruleINT=ruleINT();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleINT.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例15: entryRuleVAL
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //导入依赖的package包/类
public final String entryRuleVAL() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleVAL = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:2238:2: (iv_ruleVAL= ruleVAL EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:2239:2: iv_ruleVAL= ruleVAL EOF
{
newCompositeNode(grammarAccess.getVALRule());
pushFollow(FOLLOW_ruleVAL_in_entryRuleVAL5310);
iv_ruleVAL=ruleVAL();
state._fsp--;
current =iv_ruleVAL.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleVAL5321);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}