All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.SynchronizedStatement

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.NonLeaf
                   |
                   +----openjava.ptree.SynchronizedStatement

public class SynchronizedStatement
extends NonLeaf
implements Statement, Ptree
The SynchronizedStatement class represents a synchronized statement node of parse tree.

See Also:
Ptree, NonLeaf, Statement

Constructor Index

 o SynchronizedStatement(Expression, StatementList)
Allocates a new object.

Method Index

 o getExpression()
Gets the expression to be synchronized.
 o getStatements()
Gets the statements guarded by this synchronization.
 o setExpression(Expression)
Sets the expression to be synchronized by this statement.
 o setStatements(StatementList)
Sets the statements guarded by this synchronization.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o SynchronizedStatement
 public SynchronizedStatement(Expression expr,
                              StatementList stmts)
Allocates a new object.

Parameters:
expr - the expression to be synchronized.
stmts - the statements guarded by this synchronization.

Methods

 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class NonLeaf
 o getExpression
 public Expression getExpression()
Gets the expression to be synchronized.

Returns:
the expression to be synchronized.
 o setExpression
 public void setExpression(Expression expr)
Sets the expression to be synchronized by this statement.

Parameters:
expr - the expression to be synchronized by this statement.
 o getStatements
 public StatementList getStatements()
Gets the statements guarded by this synchronization.

Returns:
the statements guarded by this synchronization.
 o setStatements
 public void setStatements(StatementList stmts)
Sets the statements guarded by this synchronization.

Parameters:
stmts - the statements guarded by this synchronization.

All Packages  Class Hierarchy  This Package  Previous  Next  Index