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

Method SwitchStatement

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

Source from the content-addressed store, hash-verified

2942 }
2943
2944 final public void SwitchStatement() throws ParseException {
2945 /*@bgen(jjtree) SwitchStatement */
2946 BSHSwitchStatement jjtn000 = new BSHSwitchStatement(JJTSWITCHSTATEMENT);
2947 boolean jjtc000 = true;
2948 jjtree.openNodeScope(jjtn000);
2949 jjtreeOpenNodeScope(jjtn000);
2950 try {
2951 jj_consume_token(SWITCH);
2952 jj_consume_token(LPAREN);
2953 Expression();
2954 jj_consume_token(RPAREN);
2955 jj_consume_token(LBRACE);
2956 label_23:
2957 while (true) {
2958 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2959 case CASE:
2960 case _DEFAULT:
2961 ;
2962 break;
2963 default:
2964 jj_la1[76] = jj_gen;
2965 break label_23;
2966 }
2967 SwitchLabel();
2968 label_24:
2969 while (true) {
2970 if (jj_2_29(1)) {
2971 ;
2972 } else {
2973 break label_24;
2974 }
2975 BlockStatement();
2976 }
2977 }
2978 jj_consume_token(RBRACE);
2979 } catch (Throwable jjte000) {
2980 if (jjtc000) {
2981 jjtree.clearNodeScope(jjtn000);
2982 jjtc000 = false;
2983 } else {
2984 jjtree.popNode();
2985 }
2986 if (jjte000 instanceof RuntimeException) {
2987 {if (true) throw (RuntimeException)jjte000;}
2988 }
2989 if (jjte000 instanceof ParseException) {
2990 {if (true) throw (ParseException)jjte000;}
2991 }
2992 {if (true) throw (Error)jjte000;}
2993 } finally {
2994 if (jjtc000) {
2995 jjtree.closeNodeScope(jjtn000, true);
2996 jjtreeCloseNodeScope(jjtn000);
2997 }
2998 }
2999 }
3000
3001 final public void SwitchLabel() throws ParseException {

Callers 1

StatementMethod · 0.95

Calls 12

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

Tested by

no test coverage detected