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
.
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
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.