MCPcopy Index your code
hub / github.com/beanshell/beanshell / TypedVariableDeclaration

Method TypedVariableDeclaration

src/bsh/Parser.java:3434–3490  ·  view source on GitHub ↗

Declared a typed variable. Untyped variables are not declared per-se but are handled by the part of the grammar that deals with assignments.

()

Source from the content-addressed store, hash-verified

3432 of the grammar that deals with assignments.
3433*/
3434 final public void TypedVariableDeclaration() throws ParseException {
3435 /*@bgen(jjtree) TypedVariableDeclaration */
3436 BSHTypedVariableDeclaration jjtn000 = new BSHTypedVariableDeclaration(JJTTYPEDVARIABLEDECLARATION);
3437 boolean jjtc000 = true;
3438 jjtree.openNodeScope(jjtn000);
3439 jjtreeOpenNodeScope(jjtn000);Token t = null;
3440 Modifiers mods;
3441 try {
3442 mods = Modifiers(Modifiers.FIELD, false);
3443 Type();
3444 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3445 case LT:
3446 TypeArguments();
3447 break;
3448 default:
3449 jj_la1[84] = jj_gen;
3450 ;
3451 }
3452 VariableDeclarator();
3453 label_25:
3454 while (true) {
3455 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3456 case COMMA:
3457 ;
3458 break;
3459 default:
3460 jj_la1[85] = jj_gen;
3461 break label_25;
3462 }
3463 jj_consume_token(COMMA);
3464 VariableDeclarator();
3465 }
3466 jjtree.closeNodeScope(jjtn000, true);
3467 jjtc000 = false;
3468 jjtreeCloseNodeScope(jjtn000);
3469 jjtn000.modifiers = mods;
3470 } catch (Throwable jjte000) {
3471 if (jjtc000) {
3472 jjtree.clearNodeScope(jjtn000);
3473 jjtc000 = false;
3474 } else {
3475 jjtree.popNode();
3476 }
3477 if (jjte000 instanceof RuntimeException) {
3478 {if (true) throw (RuntimeException)jjte000;}
3479 }
3480 if (jjte000 instanceof ParseException) {
3481 {if (true) throw (ParseException)jjte000;}
3482 }
3483 {if (true) throw (Error)jjte000;}
3484 } finally {
3485 if (jjtc000) {
3486 jjtree.closeNodeScope(jjtn000, true);
3487 jjtreeCloseNodeScope(jjtn000);
3488 }
3489 }
3490 }
3491

Callers 2

BlockStatementMethod · 0.95
ForInitMethod · 0.95

Calls 12

jjtreeOpenNodeScopeMethod · 0.95
ModifiersMethod · 0.95
TypeMethod · 0.95
jj_ntkMethod · 0.95
TypeArgumentsMethod · 0.95
VariableDeclaratorMethod · 0.95
jj_consume_tokenMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected