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

Method SwitchLabel

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

Source from the content-addressed store, hash-verified

2999 }
3000
3001 final public void SwitchLabel() throws ParseException {
3002 /*@bgen(jjtree) SwitchLabel */
3003 BSHSwitchLabel jjtn000 = new BSHSwitchLabel(JJTSWITCHLABEL);
3004 boolean jjtc000 = true;
3005 jjtree.openNodeScope(jjtn000);
3006 jjtreeOpenNodeScope(jjtn000);
3007 try {
3008 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
3009 case CASE:
3010 jj_consume_token(CASE);
3011 Expression();
3012 jj_consume_token(COLON);
3013 break;
3014 case _DEFAULT:
3015 jj_consume_token(_DEFAULT);
3016 jj_consume_token(COLON);
3017 jjtree.closeNodeScope(jjtn000, true);
3018 jjtc000 = false;
3019 jjtreeCloseNodeScope(jjtn000);
3020 jjtn000.isDefault = true;
3021 break;
3022 default:
3023 jj_la1[77] = jj_gen;
3024 jj_consume_token(-1);
3025 throw new ParseException();
3026 }
3027 } catch (Throwable jjte000) {
3028 if (jjtc000) {
3029 jjtree.clearNodeScope(jjtn000);
3030 jjtc000 = false;
3031 } else {
3032 jjtree.popNode();
3033 }
3034 if (jjte000 instanceof RuntimeException) {
3035 {if (true) throw (RuntimeException)jjte000;}
3036 }
3037 if (jjte000 instanceof ParseException) {
3038 {if (true) throw (ParseException)jjte000;}
3039 }
3040 {if (true) throw (Error)jjte000;}
3041 } finally {
3042 if (jjtc000) {
3043 jjtree.closeNodeScope(jjtn000, true);
3044 jjtreeCloseNodeScope(jjtn000);
3045 }
3046 }
3047 }
3048
3049 final public void IfStatement() throws ParseException {
3050 /*@bgen(jjtree) IfStatement */

Callers 1

SwitchStatementMethod · 0.95

Calls 9

jjtreeOpenNodeScopeMethod · 0.95
jj_ntkMethod · 0.95
jj_consume_tokenMethod · 0.95
ExpressionMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected