Click or drag to resize

ParseTree Class

A record of the rules used to match a token sequence. The tokens end up as the leaves of this tree and rule nodes are the interior nodes. This really adds no functionality, it is just an alias for CommonTree that is more meaningful (specific) and holds a String to display for a node.
Inheritance Hierarchy

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime.Tree
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
[SerializableAttribute]
public class ParseTree : BaseTree

The ParseTree type exposes the following members.

Constructors
  NameDescription
Public methodParseTree
Initializes a new instance of the ParseTree class
Top
Properties
  NameDescription
Public propertyCharPositionInLine (Inherited from BaseTree.)
Public propertyChildCount (Inherited from BaseTree.)
Public propertyChildIndex
BaseTree doesn't track child indexes.
(Inherited from BaseTree.)
Public propertyChildren
Get the children internal List; note that if you directly mess with the list, do so at your own risk.
(Inherited from BaseTree.)
Public propertyIsNil (Inherited from BaseTree.)
Public propertyLine (Inherited from BaseTree.)
Public propertyParent
BaseTree doesn't track parent pointers.
(Inherited from BaseTree.)
Public propertyText (Overrides BaseTreeText.)
Public propertyTokenStartIndex (Overrides BaseTreeTokenStartIndex.)
Public propertyTokenStopIndex (Overrides BaseTreeTokenStopIndex.)
Public propertyType (Overrides BaseTreeType.)
Top
Methods
  NameDescription
Public methodAddChild
Add t as child of this node.
(Inherited from BaseTree.)
Public methodAddChildren
Add all elements of kids list as children of this node
(Inherited from BaseTree.)
Protected methodCreateChildrenList
Override in a subclass to change the impl of children list
(Inherited from BaseTree.)
Public methodDeleteChild (Inherited from BaseTree.)
Public methodDupNode (Overrides BaseTreeDupNode.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFreshenParentAndChildIndexes
Set the parent and child index values for all child of t
(Inherited from BaseTree.)
Public methodFreshenParentAndChildIndexes(Int32) (Inherited from BaseTree.)
Public methodFreshenParentAndChildIndexesDeeply (Inherited from BaseTree.)
Public methodFreshenParentAndChildIndexesDeeply(Int32) (Inherited from BaseTree.)
Public methodGetAncestor
Walk upwards and get first ancestor with this token type.
(Inherited from BaseTree.)
Public methodGetAncestors
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.
(Inherited from BaseTree.)
Public methodGetChild (Inherited from BaseTree.)
Public methodGetFirstChildWithType (Inherited from BaseTree.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAncestor
Walk upwards looking for ancestor with this token type.
(Inherited from BaseTree.)
Public methodInsertChild (Inherited from BaseTree.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReplaceChildren
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.
(Inherited from BaseTree.)
Public methodSanityCheckParentAndChildIndexes (Inherited from BaseTree.)
Public methodSanityCheckParentAndChildIndexes(ITree, Int32) (Inherited from BaseTree.)
Public methodSetChild (Inherited from BaseTree.)
Public methodToInputString
Print out the leaves of this tree, which means printing original input back out.
Public methodToString (Overrides BaseTreeToString.)
Protected methodToStringLeaves
Public methodToStringTree
Print out a whole tree not just a node
(Inherited from BaseTree.)
Public methodToStringWithHiddenTokens
Emit a token and all hidden nodes before. EOF node holds all hidden tokens after last real token.
Top
Fields
  NameDescription
Public fieldhiddenTokens
Public fieldpayload
Top
See Also