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

Method SynchronizedStatement

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

Source from the content-addressed store, hash-verified

3663 }
3664
3665 final public void SynchronizedStatement() throws ParseException {
3666 /*@bgen(jjtree) Block */
3667 BSHBlock jjtn000 = new BSHBlock(JJTBLOCK);
3668 boolean jjtc000 = true;
3669 jjtree.openNodeScope(jjtn000);
3670 jjtreeOpenNodeScope(jjtn000);
3671 try {
3672 jj_consume_token(SYNCHRONIZED);
3673 jj_consume_token(LPAREN);
3674 Expression();
3675 jj_consume_token(RPAREN);
3676 Block();
3677 jjtree.closeNodeScope(jjtn000, true);
3678 jjtc000 = false;
3679 jjtreeCloseNodeScope(jjtn000);
3680 jjtn000.isSynchronized=true;
3681 } catch (Throwable jjte000) {
3682 if (jjtc000) {
3683 jjtree.clearNodeScope(jjtn000);
3684 jjtc000 = false;
3685 } else {
3686 jjtree.popNode();
3687 }
3688 if (jjte000 instanceof RuntimeException) {
3689 {if (true) throw (RuntimeException)jjte000;}
3690 }
3691 if (jjte000 instanceof ParseException) {
3692 {if (true) throw (ParseException)jjte000;}
3693 }
3694 {if (true) throw (Error)jjte000;}
3695 } finally {
3696 if (jjtc000) {
3697 jjtree.closeNodeScope(jjtn000, true);
3698 jjtreeCloseNodeScope(jjtn000);
3699 }
3700 }
3701 }
3702
3703 final public void ThrowStatement() throws ParseException {
3704 /*@bgen(jjtree) ThrowStatement */

Callers 1

StatementMethod · 0.95

Calls 9

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

Tested by

no test coverage detected