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

Method AllocationExpression

src/bsh/Parser.java:2598–2666  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2596 }
2597
2598 final public void AllocationExpression() throws ParseException {
2599 /*@bgen(jjtree) AllocationExpression */
2600 BSHAllocationExpression jjtn000 = new BSHAllocationExpression(JJTALLOCATIONEXPRESSION);
2601 boolean jjtc000 = true;
2602 jjtree.openNodeScope(jjtn000);
2603 jjtreeOpenNodeScope(jjtn000);
2604 try {
2605 if (jj_2_18(2)) {
2606 jj_consume_token(NEW);
2607 PrimitiveType();
2608 ArrayDimensions();
2609 } else {
2610 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2611 case NEW:
2612 jj_consume_token(NEW);
2613 AmbiguousName();
2614 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2615 case LT:
2616 TypeArguments();
2617 break;
2618 default:
2619 jj_la1[68] = jj_gen;
2620 ;
2621 }
2622 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2623 case LBRACKET:
2624 ArrayDimensions();
2625 break;
2626 case LPAREN:
2627 Arguments();
2628 if (jj_2_17(2)) {
2629 Block();
2630 } else {
2631 ;
2632 }
2633 break;
2634 default:
2635 jj_la1[69] = jj_gen;
2636 jj_consume_token(-1);
2637 throw new ParseException();
2638 }
2639 break;
2640 default:
2641 jj_la1[70] = jj_gen;
2642 jj_consume_token(-1);
2643 throw new ParseException();
2644 }
2645 }
2646 } catch (Throwable jjte000) {
2647 if (jjtc000) {
2648 jjtree.clearNodeScope(jjtn000);
2649 jjtc000 = false;
2650 } else {
2651 jjtree.popNode();
2652 }
2653 if (jjte000 instanceof RuntimeException) {
2654 {if (true) throw (RuntimeException)jjte000;}
2655 }

Callers 1

PrimaryPrefixMethod · 0.95

Calls 15

jjtreeOpenNodeScopeMethod · 0.95
jj_2_18Method · 0.95
jj_consume_tokenMethod · 0.95
PrimitiveTypeMethod · 0.95
ArrayDimensionsMethod · 0.95
jj_ntkMethod · 0.95
AmbiguousNameMethod · 0.95
TypeArgumentsMethod · 0.95
ArgumentsMethod · 0.95
jj_2_17Method · 0.95
BlockMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95

Tested by

no test coverage detected