in drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Expressions.java [4740:4864]
public final void createdName() throws RecognitionException {
try {
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:609:5: ( ID ( typeArguments )? ( DOT ID ( typeArguments )? )* | primitiveType )
int alt71=2;
int LA71_0 = input.LA(1);
if ( (LA71_0==ID) ) {
int LA71_1 = input.LA(2);
if ( (!(((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.LONG)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BYTE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.INT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.CHAR))))))) ) {
alt71=1;
}
else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.LONG)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BYTE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.INT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.CHAR))))) ) {
alt71=2;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 71, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 71, 0, input);
throw nvae;
}
switch (alt71) {
case 1 :
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:609:7: ID ( typeArguments )? ( DOT ID ( typeArguments )? )*
{
match(input,ID,FOLLOW_ID_in_createdName3476); if (state.failed) return;
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:609:10: ( typeArguments )?
int alt68=2;
int LA68_0 = input.LA(1);
if ( (LA68_0==LESS) ) {
alt68=1;
}
switch (alt68) {
case 1 :
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:609:10: typeArguments
{
pushFollow(FOLLOW_typeArguments_in_createdName3478);
typeArguments();
state._fsp--;
if (state.failed) return;
}
break;
}
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:610:9: ( DOT ID ( typeArguments )? )*
loop70:
while (true) {
int alt70=2;
int LA70_0 = input.LA(1);
if ( (LA70_0==DOT) ) {
alt70=1;
}
switch (alt70) {
case 1 :
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:610:11: DOT ID ( typeArguments )?
{
match(input,DOT,FOLLOW_DOT_in_createdName3491); if (state.failed) return;
match(input,ID,FOLLOW_ID_in_createdName3493); if (state.failed) return;
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:610:18: ( typeArguments )?
int alt69=2;
int LA69_0 = input.LA(1);
if ( (LA69_0==LESS) ) {
alt69=1;
}
switch (alt69) {
case 1 :
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:610:18: typeArguments
{
pushFollow(FOLLOW_typeArguments_in_createdName3495);
typeArguments();
state._fsp--;
if (state.failed) return;
}
break;
}
}
break;
default :
break loop70;
}
}
}
break;
case 2 :
// src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:611:11: primitiveType
{
pushFollow(FOLLOW_primitiveType_in_createdName3510);
primitiveType();
state._fsp--;
if (state.failed) return;
}
break;
}
}
catch (RecognitionException re) {
throw re;
}
finally {
// do for sure before leaving
}
}