| Package | org.antlr.runtime.tree |
| Class | public class CommonTree |
| Inheritance | CommonTree BaseTree |
| Subclasses | CommonErrorNode |
| Property | Defined by | ||
|---|---|---|---|
| charPositionInLine : int [read-only]
| CommonTree | ||
![]() | childCount : int | BaseTree | |
| childIndex : int | CommonTree | ||
![]() | children : Array Get the children internal List; note that if you directly mess with
the list, do so at your own risk.
| BaseTree | |
| isNil : Boolean [read-only]
| CommonTree | ||
| line : int [read-only]
| CommonTree | ||
| parent : Tree | CommonTree | ||
| startIndex : int = -1 What token indexes bracket all tokens associated with this node
and below?
| CommonTree | ||
| text : String [read-only]
| CommonTree | ||
| token : Token
[read-only]
| CommonTree | ||
| tokenStartIndex : int | CommonTree | ||
| tokenStopIndex : int | CommonTree | ||
| type : int [read-only]
| CommonTree | ||
| Property | Defined by | ||
|---|---|---|---|
| _childIndex : int = -1 What index is this node in the child list? Range: 0..n-1
| CommonTree | ||
![]() | _children : Array | BaseTree | |
| _parent : CommonTree
Who is the parent node of this node; if null, implies node is root
| CommonTree | ||
| _token : Token
A single token is the payload
| CommonTree | ||
| Method | Defined by | ||
|---|---|---|---|
|
CommonTree(node:CommonTree = null)
| CommonTree | ||
![]() |
Add t as child of this node.
| BaseTree | |
![]() |
addChildren(kids:Array):void
Add all elements of kids list as children of this node
| BaseTree | |
|
[static]
| CommonTree | ||
![]() |
deleteChild(i:int):Object
| BaseTree | |
| CommonTree | |||
![]() |
freshenParentAndChildIndexes():void
Set the parent and child index values for all child of t
| BaseTree | |
![]() |
freshenParentAndChildIndexesFrom(offset:int):void
| BaseTree | |
![]() | BaseTree | ||
![]() |
getFirstChildWithType(type:int):Tree
| BaseTree | |
![]() |
replaceChildren(startChildIndex:int, stopChildIndex:int, t:Object):void
Delete children from start to stop and replace with t even if t is
a list (nil-root tree).
| BaseTree | |
![]() | BaseTree | ||
![]() |
sanityCheckParentAndChildIndexesFrom(parent:Tree, i:int):void
| BaseTree | |
![]() | BaseTree | ||
|
toString():String
| CommonTree | ||
![]() |
toStringTree():String
Print out a whole tree not just a node
| BaseTree | |
| charPositionInLine | property |
charPositionInLine:int [read-only]Implementation
public function get charPositionInLine():int
| _childIndex | property |
protected var _childIndex:int = -1What index is this node in the child list? Range: 0..n-1
| childIndex | property |
childIndex:int [read-write]Implementation
public function get childIndex():int
public function set childIndex(value:int):void
| isNil | property |
isNil:Boolean [read-only]Implementation
public function get isNil():Boolean
| line | property |
line:int [read-only]Implementation
public function get line():int
| _parent | property |
protected var _parent:CommonTreeWho is the parent node of this node; if null, implies node is root
| parent | property |
parent:Tree [read-write]Implementation
public function get parent():Tree
public function set parent(value:Tree):void
| startIndex | property |
public var startIndex:int = -1What token indexes bracket all tokens associated with this node and below?
| text | property |
text:String [read-only]Implementation
public function get text():String
| _token | property |
protected var _token:TokenA single token is the payload
| token | property |
| tokenStartIndex | property |
tokenStartIndex:int [read-write]Implementation
public function get tokenStartIndex():int
public function set tokenStartIndex(value:int):void
| tokenStopIndex | property |
tokenStopIndex:int [read-write]Implementation
public function get tokenStopIndex():int
public function set tokenStopIndex(value:int):void
| type | property |
type:int [read-only]Implementation
public function get type():int
| CommonTree | () | constructor |
| createFromToken | () | method |
| dupNode | () | method |
| toString | () | method |
public function toString():String
Returns
String |