|
Grammatica 1.4 Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
System.Object
|
+--Node
in Node.csAn abstract parse tree node. This class is inherited by all nodes in the parse tree, i.e. by the token and production classes.
Method Summary | |
void |
AddValue( object value )
Adds a computed value to this node. |
void |
AddValues( ArrayList values )
Adds a set of computed values to this node. |
ArrayList |
GetAllValues()
Returns the list with all the computed values for this node. |
virtual Node |
GetChildAt( int index )
Returns the child node with the specified index. |
virtual int |
GetChildCount()
Returns the number of child nodes. |
int |
GetDescendantCount()
Returns the number of descendant nodes. |
virtual int |
GetEndColumn()
The column number of the last character in this node. |
virtual int |
GetEndLine()
The line number of the last character in this node. |
abstract int |
GetId()
Returns the node type id. |
abstract string |
GetName()
Returns the node name. |
Node |
GetParent()
Returns the parent node. |
virtual int |
GetStartColumn()
The column number of the first character in this node. |
virtual int |
GetStartLine()
The line number of the first character in this node. |
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. |
internal virtual bool |
IsHidden()
Checks if this node is hidden, i. |
void |
PrintTo( TextWriter output )
Prints this node and all subnodes to the specified output stream. |
void |
RemoveAllValues()
Removes all computed values stored in this node. |
internal void |
SetParent( Node parent )
Sets the parent node. |
Method Detail |
public void AddValue( object value );
value
- the node valuepublic void AddValues( ArrayList values );
values
- the vector with node valuespublic ArrayList GetAllValues();
public virtual Node GetChildAt( int index );
index
- the child index, 0 <= index < countpublic virtual int GetChildCount();
public int GetDescendantCount();
public virtual int GetEndColumn();
public virtual int GetEndLine();
public abstract int GetId();
public abstract string GetName();
public Node GetParent();
public virtual int GetStartColumn();
public virtual int GetStartLine();
public object GetValue( int pos );
pos
- the value position, 0 <= pos < countpublic int GetValueCount();
internal virtual bool IsHidden();
public void PrintTo( TextWriter output );
output
- the output stream to usepublic void RemoveAllValues();
internal void SetParent( Node parent );
parent
- the new parent node
|
Grammatica 1.4 Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |