koala.dynamicjava.tree
Class SynchronizedStatement
java.lang.Object
|
+--koala.dynamicjava.tree.Node
|
+--koala.dynamicjava.tree.Statement
|
+--koala.dynamicjava.tree.SynchronizedStatement
- public class SynchronizedStatement
- extends Statement
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 |
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 |
LOCK
public static final java.lang.String LOCK
- The lock property name
BODY
public static final java.lang.String BODY
- The body property name
SynchronizedStatement
public SynchronizedStatement(Expression lock,
Node body,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
- Creates a new while statement
- Parameters:
lock
- the lock objectbody
- the bodyfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end column- Throws:
java.lang.IllegalArgumentException
- if lock is null or body is null
getLock
public Expression getLock()
- Gets the lock object
setLock
public void setLock(Expression e)
- Sets the condition to evaluate
- Throws:
java.lang.IllegalArgumentException
- if e is null
getBody
public Node getBody()
- Returns the body of this statement
setBody
public void setBody(Node node)
- Sets the body of this statement
- Throws:
java.lang.IllegalArgumentException
- if node is null
acceptVisitor
public java.lang.Object acceptVisitor(Visitor visitor)
- Allows a visitor to traverse the tree
- Overrides:
acceptVisitor
in class Node
- Parameters:
visitor
- the visitor to accept
Copyright © 2001 Stephane Hillion. All Rights Reserved.