public abstract class Node
extends java.lang.Object
Constructor and Description |
---|
Node() |
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.Object value)
Adds a computed value to this node.
|
void |
addValues(java.util.ArrayList values)
Adds a set of computed values to this node.
|
void |
addValues(java.util.Vector values)
Adds a set of computed values to this node.
|
java.util.ArrayList |
getAllValues()
Returns the vector with all the computed values for this node.
|
Node |
getChildAt(int index)
Returns the child node with the specified index.
|
int |
getChildCount()
Returns the number of child nodes.
|
int |
getDescendantCount()
Returns the number of descendant nodes.
|
int |
getEndColumn()
The column number of the last character in this node.
|
int |
getEndLine()
The line number of the last character in this node.
|
abstract int |
getId()
Returns the node type id.
|
abstract java.lang.String |
getName()
Returns the node name.
|
Node |
getParent()
Returns the parent node.
|
int |
getStartColumn()
The column number of the first character in this node.
|
int |
getStartLine()
The line number of the first character in this node.
|
java.lang.Object |
getValue(int pos)
Returns a computed value of this node, if previously set.
|
int |
getValueCount()
Returns the number of computed values associated with this
node.
|
void |
printTo(java.io.PrintStream output)
Prints this node and all subnodes to the specified output
stream.
|
void |
printTo(java.io.PrintWriter output)
Prints this node and all subnodes to the specified output
stream.
|
void |
removeAllValues()
Removes all computed values stored in this node.
|
public abstract int getId()
public abstract java.lang.String getName()
public int getStartLine()
public int getStartColumn()
public int getEndLine()
public int getEndColumn()
public Node getParent()
public int getChildCount()
public Node getChildAt(int index)
index
- the child index, starting at 0public int getDescendantCount()
public int getValueCount()
public java.lang.Object getValue(int pos)
pos
- the value position, starting at 0public java.util.ArrayList getAllValues()
public void addValue(java.lang.Object value)
value
- the node valuepublic void addValues(java.util.Vector values)
values
- the list with node valuespublic void addValues(java.util.ArrayList values)
values
- the list with node valuespublic void removeAllValues()
public void printTo(java.io.PrintStream output)
output
- the output stream to usepublic void printTo(java.io.PrintWriter output)
output
- the output stream to use