BaseTree Class |
Namespace: Stimulsoft.Data.Expressions.Antlr.Runtime.Tree
The BaseTree type exposes the following members.
Name | Description | |
---|---|---|
![]() | BaseTree | Initializes a new instance of the BaseTree class |
![]() | BaseTree(ITree) |
Create a new node from an existing node does nothing for BaseTree
as there are no fields other than the children list, which cannot
be copied as the children are not considered part of this node.
|
Name | Description | |
---|---|---|
![]() | CharPositionInLine | |
![]() | ChildCount | |
![]() | ChildIndex | BaseTree doesn't track child indexes. |
![]() | Children |
Get the children internal List; note that if you directly mess with
the list, do so at your own risk.
|
![]() | IsNil | |
![]() | Line | |
![]() | Parent | BaseTree doesn't track parent pointers. |
![]() | Text | |
![]() | TokenStartIndex | |
![]() | TokenStopIndex | |
![]() | Type |
Name | Description | |
---|---|---|
![]() | AddChild | Add t as child of this node. |
![]() | AddChildren | Add all elements of kids list as children of this node |
![]() | CreateChildrenList | Override in a subclass to change the impl of children list |
![]() | DeleteChild | |
![]() | DupNode | |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FreshenParentAndChildIndexes | Set the parent and child index values for all child of t |
![]() | FreshenParentAndChildIndexes(Int32) | |
![]() | FreshenParentAndChildIndexesDeeply | |
![]() | FreshenParentAndChildIndexesDeeply(Int32) | |
![]() | GetAncestor | Walk upwards and get first ancestor with this token type. |
![]() | GetAncestors |
Return a list of all ancestors of this node. The first node of
list is the root and the last is the parent of this node.
|
![]() | GetChild | |
![]() | GetFirstChildWithType | |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HasAncestor | Walk upwards looking for ancestor with this token type. |
![]() | InsertChild | |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReplaceChildren |
Delete children from start to stop and replace with t even if t is
a list (nil-root tree). num of children can increase or decrease.
For huge child lists, inserting children can force walking rest of
children to set their childindex; could be slow.
|
![]() | SanityCheckParentAndChildIndexes | |
![]() | SanityCheckParentAndChildIndexes(ITree, Int32) | |
![]() | SetChild | |
![]() | ToString | Override to say how a node (not a tree) should look as text (Overrides ObjectToString.) |
![]() | ToStringTree | Print out a whole tree not just a node |