|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Statement
koala.dynamicjava.tree.SynchronizedStatement
public class SynchronizedStatement
This class represents the synchronized statement nodes of the syntax tree
| Constructor Summary | |
|---|---|
SynchronizedStatement(Expression lock,
Node body,
SourceInfo si)
Creates a new while statement |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
Node |
getBody()
Returns the body of this statement |
|
Expression |
getLock()
Gets the lock object |
|
void |
setBody(Node node)
Sets the body of this statement |
|
void |
setLock(Expression e)
Sets the condition to evaluate |
|
String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedStatement(Expression lock,
Node body,
SourceInfo si)
lock - the lock objectbody - the body
IllegalArgumentException - if lock is null or body is null| Method Detail |
|---|
public Expression getLock()
public void setLock(Expression e)
IllegalArgumentException - if e is nullpublic Node getBody()
public void setBody(Node node)
IllegalArgumentException - if node is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||