public class ASTStructure extends java.lang.Object implements FlyweightCapableTreeStructure<ASTNode>
Constructor and Description |
---|
ASTStructure(ASTNode root) |
Modifier and Type | Method and Description |
---|---|
void |
disposeChildren(ASTNode[] nodes,
int count) |
int |
getChildren(ASTNode astNode,
Ref<ASTNode[]> into) |
int |
getEndOffset(ASTNode node) |
ASTNode |
getParent(ASTNode node) |
ASTNode |
getRoot() |
int |
getStartOffset(ASTNode node) |
java.lang.CharSequence |
toString(ASTNode node) |
public ASTStructure(ASTNode root)
public ASTNode getRoot()
getRoot
in interface FlyweightCapableTreeStructure<ASTNode>
public ASTNode getParent(ASTNode node)
getParent
in interface FlyweightCapableTreeStructure<ASTNode>
public int getChildren(ASTNode astNode, Ref<ASTNode[]> into)
getChildren
in interface FlyweightCapableTreeStructure<ASTNode>
public void disposeChildren(ASTNode[] nodes, int count)
disposeChildren
in interface FlyweightCapableTreeStructure<ASTNode>
public java.lang.CharSequence toString(ASTNode node)
toString
in interface FlyweightCapableTreeStructure<ASTNode>
public int getStartOffset(ASTNode node)
getStartOffset
in interface FlyweightCapableTreeStructure<ASTNode>
public int getEndOffset(ASTNode node)
getEndOffset
in interface FlyweightCapableTreeStructure<ASTNode>