polyglot.ast
Interface Synchronized

All Superinterfaces:
java.lang.Cloneable, CompoundStmt, Copy, JL, Node, NodeOps, Stmt, Term
All Known Implementing Classes:
Synchronized_c

public interface Synchronized
extends CompoundStmt

An immutable representation of a Java language synchronized block. Contains an expression being tested and a statement to be executed while the expression is true.


Method Summary
 Block body()
          The body in that the lock is held.
 Synchronized body(Block body)
          Set the body in that the lock is held.
 Expr expr()
          The expression to lock.
 Synchronized expr(Expr expr)
          Set the expression to lock.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

expr

Expr expr()
The expression to lock.


expr

Synchronized expr(Expr expr)
Set the expression to lock.


body

Block body()
The body in that the lock is held.


body

Synchronized body(Block body)
Set the body in that the lock is held.