/*
* <A NAME="routineAlias">routineAlias</A>
*/
final public RoutineDesignator routineDesignator() throws ParseException, StandardException {
Token procOrFunction;
RoutineDesignator routine = null;
TableName name = null;
List paramTypeList = null;
switch (jj_nt.kind) {
case FUNCTION:
procOrFunction = jj_consume_token(FUNCTION);
break;
case PROCEDURE:
procOrFunction = jj_consume_token(PROCEDURE);
break;
default:
jj_la1[299] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
name = qualifiedName(Limits.MAX_IDENTIFIER_LENGTH);
switch (jj_nt.kind) {
case LEFT_PAREN:
jj_consume_token(LEFT_PAREN);
paramTypeList = parameterTypeList();
jj_consume_token(RIGHT_PAREN);
break;
default:
jj_la1[300] = jj_gen;
;
}
{if (true) return new RoutineDesignator( false,
name,
(procOrFunction.kind == FUNCTION),
paramTypeList);}
throw new Error("Missing return statement in function");
}