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

Method CastExpression

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

Source from the content-addressed store, hash-verified

2103 }
2104
2105 final public void CastExpression() throws ParseException {
2106 /*@bgen(jjtree) CastExpression */
2107 BSHCastExpression jjtn000 = new BSHCastExpression(JJTCASTEXPRESSION);
2108 boolean jjtc000 = true;
2109 jjtree.openNodeScope(jjtn000);
2110 jjtreeOpenNodeScope(jjtn000);
2111 try {
2112 if (jj_2_13(2147483647)) {
2113 jj_consume_token(LPAREN);
2114 Type();
2115 jj_consume_token(RPAREN);
2116 UnaryExpression();
2117 } else {
2118 switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
2119 case LPAREN:
2120 jj_consume_token(LPAREN);
2121 Type();
2122 jj_consume_token(RPAREN);
2123 UnaryExpressionNotPlusMinus();
2124 break;
2125 default:
2126 jj_la1[58] = jj_gen;
2127 jj_consume_token(-1);
2128 throw new ParseException();
2129 }
2130 }
2131 } catch (Throwable jjte000) {
2132 if (jjtc000) {
2133 jjtree.clearNodeScope(jjtn000);
2134 jjtc000 = false;
2135 } else {
2136 jjtree.popNode();
2137 }
2138 if (jjte000 instanceof RuntimeException) {
2139 {if (true) throw (RuntimeException)jjte000;}
2140 }
2141 if (jjte000 instanceof ParseException) {
2142 {if (true) throw (ParseException)jjte000;}
2143 }
2144 {if (true) throw (Error)jjte000;}
2145 } finally {
2146 if (jjtc000) {
2147 jjtree.closeNodeScope(jjtn000, true);
2148 jjtreeCloseNodeScope(jjtn000);
2149 }
2150 }
2151 }
2152
2153 final public void PrimaryExpression() throws ParseException {
2154 /*@bgen(jjtree) PrimaryExpression */

Callers 1

Calls 12

jjtreeOpenNodeScopeMethod · 0.95
jj_2_13Method · 0.95
jj_consume_tokenMethod · 0.95
TypeMethod · 0.95
UnaryExpressionMethod · 0.95
jj_ntkMethod · 0.95
jjtreeCloseNodeScopeMethod · 0.95
openNodeScopeMethod · 0.80
clearNodeScopeMethod · 0.80
closeNodeScopeMethod · 0.80
popNodeMethod · 0.45

Tested by

no test coverage detected