in drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java [5240:5364]
public final void createdName() throws RecognitionException {
try {
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:687:5: ( ID ( typeArguments )? ( DOT ID ( typeArguments )? )* | primitiveType )
int alt79=2;
int LA79_0 = input.LA(1);
if ( (LA79_0==ID) ) {
int LA79_1 = input.LA(2);
if ( (!(((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.LONG)))||((helper.validateIdentifierKey(DroolsSoftKeywords.CHAR)))||((helper.validateIdentifierKey(DroolsSoftKeywords.INT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN)))||((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BYTE))))))) ) {
alt79=1;
}
else if ( ((((helper.validateIdentifierKey(DroolsSoftKeywords.SHORT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.LONG)))||((helper.validateIdentifierKey(DroolsSoftKeywords.CHAR)))||((helper.validateIdentifierKey(DroolsSoftKeywords.INT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.FLOAT)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BOOLEAN)))||((helper.validateIdentifierKey(DroolsSoftKeywords.DOUBLE)))||((helper.validateIdentifierKey(DroolsSoftKeywords.BYTE))))) ) {
alt79=2;
}
else {
if (state.backtracking>0) {state.failed=true; return;}
int nvaeMark = input.mark();
try {
input.consume();
NoViableAltException nvae =
new NoViableAltException("", 79, 1, input);
throw nvae;
} finally {
input.rewind(nvaeMark);
}
}
}
else {
if (state.backtracking>0) {state.failed=true; return;}
NoViableAltException nvae =
new NoViableAltException("", 79, 0, input);
throw nvae;
}
switch (alt79) {
case 1 :
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:687:7: ID ( typeArguments )? ( DOT ID ( typeArguments )? )*
{
match(input,ID,FOLLOW_ID_in_createdName3928); if (state.failed) return;
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:687:10: ( typeArguments )?
int alt76=2;
int LA76_0 = input.LA(1);
if ( (LA76_0==LESS) ) {
alt76=1;
}
switch (alt76) {
case 1 :
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:687:10: typeArguments
{
pushFollow(FOLLOW_typeArguments_in_createdName3930);
typeArguments();
state._fsp--;
if (state.failed) return;
}
break;
}
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:9: ( DOT ID ( typeArguments )? )*
loop78:
while (true) {
int alt78=2;
int LA78_0 = input.LA(1);
if ( (LA78_0==DOT) ) {
alt78=1;
}
switch (alt78) {
case 1 :
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:11: DOT ID ( typeArguments )?
{
match(input,DOT,FOLLOW_DOT_in_createdName3943); if (state.failed) return;
match(input,ID,FOLLOW_ID_in_createdName3945); if (state.failed) return;
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:18: ( typeArguments )?
int alt77=2;
int LA77_0 = input.LA(1);
if ( (LA77_0==LESS) ) {
alt77=1;
}
switch (alt77) {
case 1 :
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:688:18: typeArguments
{
pushFollow(FOLLOW_typeArguments_in_createdName3947);
typeArguments();
state._fsp--;
if (state.failed) return;
}
break;
}
}
break;
default :
break loop78;
}
}
}
break;
case 2 :
// src/main/resources/org/drools/drl/parser/DRL6Expressions.g:689:11: primitiveType
{
pushFollow(FOLLOW_primitiveType_in_createdName3962);
primitiveType();
state._fsp--;
if (state.failed) return;
}
break;
}
}
catch (RecognitionException re) {
throw re;
}
finally {
// do for sure before leaving
}
}