📄 javaparser.java
字号:
case STAR:
jj_consume_token(STAR);
break;
case SLASH:
jj_consume_token(SLASH);
break;
case REM:
jj_consume_token(REM);
break;
default:
jj_la1[80] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
UnaryExpression();
}
}
final private void UnaryExpression() throws ParseException
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case PLUS:
case MINUS:
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case PLUS:
jj_consume_token(PLUS);
break;
case MINUS:
jj_consume_token(MINUS);
break;
default:
jj_la1[81] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
UnaryExpression();
break;
case INCR:
PreIncrementExpression();
break;
case DECR:
PreDecrementExpression();
break;
case ASSERT:
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
UnaryExpressionNotPlusMinus();
break;
default:
jj_la1[82] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final private void PreIncrementExpression() throws ParseException
{
jj_consume_token(INCR);
PrimaryExpression();
}
final private void PreDecrementExpression() throws ParseException
{
jj_consume_token(DECR);
PrimaryExpression();
}
final private void UnaryExpressionNotPlusMinus() throws ParseException
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case BANG:
case TILDE:
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case TILDE:
jj_consume_token(TILDE);
break;
case BANG:
jj_consume_token(BANG);
break;
default:
jj_la1[83] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
UnaryExpression();
break;
default:
jj_la1[84] = jj_gen;
if (jj_2_18(2147483647))
{
PostfixExpression();
}
else if (jj_2_19(2147483647))
{
CastExpression();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case ASSERT:
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
PostfixExpression();
break;
default:
jj_la1[85] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
final private void PostfixExpression() throws ParseException
{
PrimaryExpression();
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case INCR:
case DECR:
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case INCR:
jj_consume_token(INCR);
break;
case DECR:
jj_consume_token(DECR);
break;
default:
jj_la1[88] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[89] = jj_gen;
}
}
final private void CastExpression() throws ParseException
{
if (jj_2_23(2147483647))
{
jj_consume_token(LPAREN);
Type();
jj_consume_token(RPAREN);
UnaryExpression();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LPAREN:
jj_consume_token(LPAREN);
Type();
jj_consume_token(RPAREN);
UnaryExpressionNotPlusMinus();
break;
default:
jj_la1[90] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
final private void PrimaryExpression() throws ParseException
{
PrimaryPrefix();
label_39: while (true)
{
if (jj_2_24(2))
{
}
else
{
break label_39;
}
PrimarySuffix();
}
}
final private void PrimaryPrefix() throws ParseException
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case FALSE:
case NULL:
case TRUE:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
Literal();
break;
case THIS:
jj_consume_token(THIS);
break;
default:
jj_la1[91] = jj_gen;
if (jj_2_26(2))
{
jj_consume_token(SUPER);
jj_consume_token(DOT);
Identifier();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LPAREN:
jj_consume_token(LPAREN);
Expression();
jj_consume_token(RPAREN);
break;
case NEW:
AllocationExpression();
break;
default:
jj_la1[92] = jj_gen;
if (jj_2_27(2147483647))
{
ResultType();
jj_consume_token(DOT);
jj_consume_token(CLASS);
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case ASSERT:
case IDENTIFIER:
Name();
if (jj_2_25(3))
{
jj_consume_token(DOT);
jj_consume_token(SUPER);
jj_consume_token(DOT);
Identifier();
}
else
{
}
break;
default:
jj_la1[93] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
}
}
}
final private void PrimarySuffix() throws ParseException
{
if (jj_2_28(2))
{
jj_consume_token(DOT);
jj_consume_token(THIS);
}
else if (jj_2_29(2))
{
jj_consume_token(DOT);
AllocationExpression();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LBRACKET:
jj_consume_token(LBRACKET);
Expression();
jj_consume_token(RBRACKET);
break;
case DOT:
jj_consume_token(DOT);
Identifier();
break;
case LPAREN:
Arguments();
break;
default:
jj_la1[94] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
final private void Literal() throws ParseException
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case INTEGER_LITERAL:
jj_consume_token(INTEGER_LITERAL);
break;
case FLOATING_POINT_LITERAL:
jj_consume_token(FLOATING_POINT_LITERAL);
break;
case CHARACTER_LITERAL:
jj_consume_token(CHARACTER_LITERAL);
break;
case STRING_LITERAL:
jj_consume_token(STRING_LITERAL);
break;
case FALSE:
case TRUE:
BooleanLiteral();
break;
case NULL:
NullLiteral();
break;
default:
jj_la1[95] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final private void BooleanLiteral() throws ParseException
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case TRUE:
jj_consume_token(TRUE);
break;
case FALSE:
jj_consume_token(FALSE);
break;
default:
jj_la1[96] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
final private void NullLiteral() throws ParseException
{
jj_consume_token(NULL);
}
final private void Arguments() throws ParseException
{
jj_consume_token(LPAREN);
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case ASSERT:
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case BANG:
case TILDE:
case INCR:
case DECR:
case PLUS:
case MINUS:
ArgumentList();
break;
default:
jj_la1[97] = jj_gen;
}
jj_consume_token(RPAREN);
}
final private void ArgumentList() throws ParseException
{
Expression();
label_40: while (true)
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case COMMA:
break;
default:
jj_la1[98] = jj_gen;
break label_40;
}
jj_consume_token(COMMA);
Expression();
}
}
final private void AllocationExpression() throws ParseException
{
String sOldClass = _sClass;
int oldFunctions = _functions;
String sName;
if (jj_2_30(2))
{
jj_consume_token(NEW);
PrimitiveType();
ArrayDimsAndInits();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case NEW:
jj_consume_token(NEW);
Name();
sName = _sName;
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LBRACKET:
ArrayDimsAndInits();
break;
case LPAREN:
Arguments();
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LBRACE:
if (!_sClass.equals(""))
{
_sClass += ".";
}
_sClass += sName;
ClassBody();
_functions = oldFunctions;
_sClass = sOldClass;
break;
default:
jj_la1[99] = jj_gen;
}
break;
default:
jj_la1[100] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
break;
default:
jj_la1[101] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
/*
* The third LOOKAHEAD specification below is to parse to PrimarySuffix
* if there is an expression between the "[...]".
*/
final private void ArrayDimsAndInits() throws ParseException
{
if (jj_2_33(2))
{
label_41: while (true)
{
jj_consume_token(LBRACKET);
Expression();
jj_consume_token(RBRACKET);
if (jj_2_31(2))
{
}
else
{
break label_41;
}
}
label_42: while (true)
{
if (jj_2_32(2))
{
}
else
{
break label_42;
}
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
}
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LBRACKET:
label_43: while (true)
{
jj_consume_token(LBRACKET);
jj_consume_token(RBRACKET);
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LBRACKET:
break;
default:
jj_la1[102] = jj_gen;
break label_43;
}
}
ArrayInitializer();
break;
default:
jj_la1[103] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
}
}
/*
* Statement syntax follows.
*/
final private void Statement() throws ParseException
{
_bReturn = false;
if (jj_2_34(2))
{
LabeledStatement();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case LBRACE:
Block();
break;
case SEMICOLON:
EmptyStatement();
break;
default:
jj_la1[104] = jj_gen;
if (jj_2_35(2147483647))
{
AssertStatement();
}
else
{
switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk)
{
case ASSERT:
case BOOLEAN:
case BYTE:
case CHAR:
case DOUBLE:
case FALSE:
case FLOAT:
case INT:
case LONG:
case NEW:
case NULL:
case SHORT:
case SUPER:
case THIS:
case TRUE:
case VOID:
case INTEGER_LITERAL:
case FLOATING_POINT_LITERAL:
case CHARACTER_LITERAL:
case STRING_LITERAL:
case IDENTIFIER:
case LPAREN:
case INCR:
case DECR:
StatementExpression();
jj_consume_token(SEMICOLON);
break;
case SWITCH:
SwitchStatement();
break;
case IF:
IfStatement();
_cyc++;
break;
case WHILE:
WhileStatement();
_cyc++;
break;
case DO:
DoStatement();
_cyc++;
break;
case FOR:
ForStatement();
_cyc++;
break;
case BREAK:
breakStatement();
break;
case CONTINUE:
continueStatement();
break;
case RETURN:
returnStatement();
break;
case THROW:
ThrowStatement();
break;
case SYNCHRONIZED:
SynchronizedStatement();
break;
case TRY:
TryStatement();
break;
default:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -