|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.tree.Node
public abstract class Node
This class represents the nodes of the syntax tree
Constructor Summary | |
---|---|
protected |
Node(SourceInfo si)
|
Method Summary | ||
---|---|---|
abstract
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
void |
archiveProperties(String prefix)
Change the names of all properties by prefixing each name with the given string. |
|
Set<String> |
getProperties()
Returns the defined properties for this node. |
|
Object |
getProperty(String name)
Returns the value of a property |
|
SourceInfo |
getSourceInfo()
Returns the sourceInfo. |
|
boolean |
hasProperty(String name)
Returns true if a property is defined for this node |
|
void |
setProperty(String name,
Object value)
Sets the value of a property |
|
void |
setSourceInfo(SourceInfo si)
Sets the filename |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Node(SourceInfo si)
Method Detail |
---|
public SourceInfo getSourceInfo()
getSourceInfo
in interface SourceInfo.Wrapper
public void setSourceInfo(SourceInfo si)
public void setProperty(String name, Object value)
name
- the property namevalue
- the new value to setpublic Object getProperty(String name)
name
- the property name
public Set<String> getProperties()
public boolean hasProperty(String name)
name
- the name of the propertypublic void archiveProperties(String prefix)
public abstract <T> T acceptVisitor(Visitor<T> visitor)
visitor
- the visitor to accept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |