|
|||||||||||
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
This class represents the synchronized statement nodes of the syntax tree
Field Summary | |
static java.lang.String |
BODY
The body property name |
static java.lang.String |
LOCK
The lock property name |
Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
Constructor Summary | |
SynchronizedStatement(Expression lock,
Node body,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Creates a new while statement |
Method Summary | |
java.lang.Object |
acceptVisitor(Visitor 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 |
Methods inherited from class koala.dynamicjava.tree.Node |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOCK
public static final java.lang.String BODY
Constructor Detail |
public SynchronizedStatement(Expression lock, Node body, java.lang.String fn, int bl, int bc, int el, int ec)
lock
- the lock objectbody
- the bodyfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end column
java.lang.IllegalArgumentException
- if lock is null or body is nullMethod Detail |
public Expression getLock()
public void setLock(Expression e)
java.lang.IllegalArgumentException
- if e is nullpublic Node getBody()
public void setBody(Node node)
java.lang.IllegalArgumentException
- if node is nullpublic java.lang.Object acceptVisitor(Visitor visitor)
acceptVisitor
in class Node
visitor
- the visitor to accept
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |