public class ExpressionTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private FilePositionInfo[] |
includeStack |
private ExpressionTreeElement |
last |
private java.lang.String |
sources |
Constructor and Description |
---|
ExpressionTree() |
ExpressionTree(FilePositionInfo[] callStack,
java.lang.String sources) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(ExpressionItem item)
Add new expression item into tree
|
void |
addTree(ExpressionTree tree)
Add whole tree as a tree element, also it sets the maximum priority to the
new element
|
ExpressionTreeElement |
getRoot()
Get the root of the tree
|
boolean |
isEmpty()
Allows to check that the tree is empty
|
void |
postProcess()
It can be called after the tree has been formed to optimize inside
structures
|
private ExpressionTreeElement last
private final FilePositionInfo[] includeStack
private final java.lang.String sources
public ExpressionTree()
public ExpressionTree(FilePositionInfo[] callStack, java.lang.String sources)
public boolean isEmpty()
public void addItem(ExpressionItem item)
item
- an item to be added, must not be nullpublic void addTree(ExpressionTree tree)
tree
- a tree to be added as an item, must not be nullpublic ExpressionTreeElement getRoot()
public void postProcess()