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

Method ConditionalExpression

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

Source from the content-addressed store, hash-verified

1248 }
1249
1250 final public void ConditionalExpression() throws ParseException {
1251 ConditionalOrExpression();
1252 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
1253 case HOOK:
1254 jj_consume_token(HOOK);
1255 Expression();
1256 jj_consume_token(COLON);
1257 BSHTernaryExpression jjtn001 = new BSHTernaryExpression(JJTTERNARYEXPRESSION);
1258 boolean jjtc001 = true;
1259 jjtree.openNodeScope(jjtn001);
1260 jjtreeOpenNodeScope(jjtn001);
1261 try {
1262 ConditionalExpression();
1263 } catch (Throwable jjte001) {
1264 if (jjtc001) {
1265 jjtree.clearNodeScope(jjtn001);
1266 jjtc001 = false;
1267 } else {
1268 jjtree.popNode();
1269 }
1270 if (jjte001 instanceof RuntimeException) {
1271 {if (true) throw (RuntimeException)jjte001;}
1272 }
1273 if (jjte001 instanceof ParseException) {
1274 {if (true) throw (ParseException)jjte001;}
1275 }
1276 {if (true) throw (Error)jjte001;}
1277 } finally {
1278 if (jjtc001) {
1279 jjtree.closeNodeScope(jjtn001, 3);
1280 jjtreeCloseNodeScope(jjtn001);
1281 }
1282 }
1283 break;
1284 default:
1285 jj_la1[28] = jj_gen;
1286 ;
1287 }
1288 }
1289
1290 final public void ConditionalOrExpression() throws ParseException {
1291 Token t=null;

Callers 1

ExpressionMethod · 0.95

Calls 10

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

Tested by

no test coverage detected