|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.tree.Node
This class represents the nodes of the syntax tree
Field Summary | |
static java.lang.String |
BEGIN_COLUMN
The beginColumn property name |
static java.lang.String |
BEGIN_LINE
The beginLine property name |
static java.lang.String |
END_COLUMN
The endColumn property name |
static java.lang.String |
END_LINE
The endLine property name |
static java.lang.String |
FILENAME
The filename property name |
Constructor Summary | |
protected |
Node(java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Initializes the node |
Method Summary | |
abstract java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a specific property. |
protected void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Report a bound property update to any registered listeners. |
protected void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
Report a bound property update to any registered listeners. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a bound property update to any registered listeners. |
int |
getBeginColumn()
Returns the begin column of this node in the begin line |
int |
getBeginLine()
Returns the begin line of this node in the source code |
int |
getEndColumn()
Returns the end column of this node in the end line |
int |
getEndLine()
Returns the end line of this node in the source code |
java.lang.String |
getFilename()
Returns the filename. |
java.util.Set |
getProperties()
Returns the defined properties for this node. |
java.lang.Object |
getProperty(java.lang.String name)
Returns the value of a property |
boolean |
hasProperty(java.lang.String name)
Returns true if a property is defined for this node |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a specific property. |
void |
setBeginColumn(int i)
Sets the begin column |
void |
setBeginLine(int i)
Sets the begin line |
void |
setEndColumn(int i)
Sets the end column |
void |
setEndLine(int i)
Sets the end line |
void |
setFilename(java.lang.String s)
Sets the filename |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the value of a property |
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 FILENAME
public static final java.lang.String BEGIN_LINE
public static final java.lang.String END_LINE
public static final java.lang.String BEGIN_COLUMN
public static final java.lang.String END_COLUMN
Constructor Detail |
protected Node(java.lang.String fn, int bl, int bc, int el, int ec)
fn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end columnMethod Detail |
public java.lang.String getFilename()
public void setFilename(java.lang.String s)
public int getBeginLine()
public void setBeginLine(int i)
public int getBeginColumn()
public void setBeginColumn(int i)
public int getEndLine()
public void setEndLine(int i)
public int getEndColumn()
public void setEndColumn(int i)
public void setProperty(java.lang.String name, java.lang.Object value)
name
- the property namevalue
- the new value to setpublic java.lang.Object getProperty(java.lang.String name)
name
- the property name
public java.util.Set getProperties()
public boolean hasProperty(java.lang.String name)
name
- the name of the propertypublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removedpublic void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removedprotected void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
propertyName
- The programmatic name of the property that was changed.oldValue
- The old value of the property.newValue
- The new value of the property.protected void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
propertyName
- The programmatic name of the property that was changed.oldValue
- The old value of the property.newValue
- The new value of the property.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The programmatic name of the property that was changed.oldValue
- The old value of the property.newValue
- The new value of the property.public abstract java.lang.Object acceptVisitor(Visitor visitor)
visitor
- the visitor to accept
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |