本文整理匯總了Java中org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken.getText方法的典型用法代碼示例。如果您正苦於以下問題:Java AntlrDatatypeRuleToken.getText方法的具體用法?Java AntlrDatatypeRuleToken.getText怎麽用?Java AntlrDatatypeRuleToken.getText使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken
的用法示例。
在下文中一共展示了AntlrDatatypeRuleToken.getText方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: entryRuleModelName
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleModelName() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleModelName = null;
try {
// InternalDSLPolicies.g:219:49: (iv_ruleModelName= ruleModelName EOF )
// InternalDSLPolicies.g:220:2: iv_ruleModelName= ruleModelName EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getModelNameRule());
}
pushFollow(FOLLOW_1);
iv_ruleModelName=ruleModelName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleModelName.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例2: entryRuleModuleParts
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleModuleParts() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleModuleParts = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:1735:2: (iv_ruleModuleParts= ruleModuleParts EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:1736:2: iv_ruleModuleParts= ruleModuleParts EOF
{
newCompositeNode(grammarAccess.getModulePartsRule());
pushFollow(FOLLOW_ruleModuleParts_in_entryRuleModuleParts3759);
iv_ruleModuleParts=ruleModuleParts();
state._fsp--;
current =iv_ruleModuleParts.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleModuleParts3770);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例3: entryRuleAS
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleAS() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleAS = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:1914:2: (iv_ruleAS= ruleAS EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:1915:2: iv_ruleAS= ruleAS EOF
{
newCompositeNode(grammarAccess.getASRule());
pushFollow(FOLLOW_ruleAS_in_entryRuleAS4254);
iv_ruleAS=ruleAS();
state._fsp--;
current =iv_ruleAS.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleAS4265);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例4: 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;
}
示例5: entryRuleOpMultiAssign
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleOpMultiAssign() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null;
try {
// InternalDSLPolicies.g:1629:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF )
// InternalDSLPolicies.g:1630:2: iv_ruleOpMultiAssign= ruleOpMultiAssign EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getOpMultiAssignRule());
}
pushFollow(FOLLOW_1);
iv_ruleOpMultiAssign=ruleOpMultiAssign();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleOpMultiAssign.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例6: entryRuleIdOrSuper
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleIdOrSuper() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleIdOrSuper = null;
try {
// InternalDSLPolicies.g:5752:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF )
// InternalDSLPolicies.g:5753:2: iv_ruleIdOrSuper= ruleIdOrSuper EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getIdOrSuperRule());
}
pushFollow(FOLLOW_1);
iv_ruleIdOrSuper=ruleIdOrSuper();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleIdOrSuper.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例7: entryRuleBINARY_OPS_3
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleBINARY_OPS_3() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleBINARY_OPS_3 = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:4954:2: (iv_ruleBINARY_OPS_3= ruleBINARY_OPS_3 EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:4955:2: iv_ruleBINARY_OPS_3= ruleBINARY_OPS_3 EOF
{
newCompositeNode(grammarAccess.getBINARY_OPS_3Rule());
pushFollow(FOLLOW_ruleBINARY_OPS_3_in_entryRuleBINARY_OPS_311684);
iv_ruleBINARY_OPS_3=ruleBINARY_OPS_3();
state._fsp--;
current =iv_ruleBINARY_OPS_3.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleBINARY_OPS_311695);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例8: entryRuleOpPostfix
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleOpPostfix() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpPostfix = null;
try {
// InternalDSLPolicies.g:2946:49: (iv_ruleOpPostfix= ruleOpPostfix EOF )
// InternalDSLPolicies.g:2947:2: iv_ruleOpPostfix= ruleOpPostfix EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getOpPostfixRule());
}
pushFollow(FOLLOW_1);
iv_ruleOpPostfix=ruleOpPostfix();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleOpPostfix.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例9: 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;
}
示例10: entryRuleEString
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleEString() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleEString = null;
try {
// ../org.ioicompanies.lang.ioi/src-gen/org/ioicompanies/lang/parser/antlr/internal/InternalIOI.g:716:2: (iv_ruleEString= ruleEString EOF )
// ../org.ioicompanies.lang.ioi/src-gen/org/ioicompanies/lang/parser/antlr/internal/InternalIOI.g:717:2: iv_ruleEString= ruleEString EOF
{
newCompositeNode(grammarAccess.getEStringRule());
pushFollow(FOLLOW_ruleEString_in_entryRuleEString1452);
iv_ruleEString=ruleEString();
state._fsp--;
current =iv_ruleEString.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleEString1463);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例11: entryRuleRETURN
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleRETURN() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleRETURN = null;
try {
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:2157:2: (iv_ruleRETURN= ruleRETURN EOF )
// ../com.ms.qaTools.saturn.kronus/src-gen/com/ms/qaTools/saturn/parser/antlr/internal/InternalKronus.g:2158:2: iv_ruleRETURN= ruleRETURN EOF
{
newCompositeNode(grammarAccess.getRETURNRule());
pushFollow(FOLLOW_ruleRETURN_in_entryRuleRETURN5046);
iv_ruleRETURN=ruleRETURN();
state._fsp--;
current =iv_ruleRETURN.getText();
match(input,EOF,FOLLOW_EOF_in_entryRuleRETURN5057);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例12: entryRuleArrayBrackets
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleArrayBrackets() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleArrayBrackets = null;
try {
// InternalDSLPolicies.g:6846:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF )
// InternalDSLPolicies.g:6847:2: iv_ruleArrayBrackets= ruleArrayBrackets EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getArrayBracketsRule());
}
pushFollow(FOLLOW_1);
iv_ruleArrayBrackets=ruleArrayBrackets();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleArrayBrackets.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例13: 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;
}
示例14: entryRuleVersion
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleVersion() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleVersion = null;
try {
// InternalBromium.g:1223:47: (iv_ruleVersion= ruleVersion EOF )
// InternalBromium.g:1224:2: iv_ruleVersion= ruleVersion EOF
{
newCompositeNode(grammarAccess.getVersionRule());
pushFollow(FOLLOW_1);
iv_ruleVersion=ruleVersion();
state._fsp--;
current =iv_ruleVersion.getText();
match(input,EOF,FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
示例15: entryRuleTypingStrategyUseSiteOperator
import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; //導入方法依賴的package包/類
public final String entryRuleTypingStrategyUseSiteOperator() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTypingStrategyUseSiteOperator = null;
try {
{
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;
}