public class ExpressionTree extends Object
Constructor and Description |
---|
ExpressionTree() |
ExpressionTree(FilePositionInfo[] callStack,
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
|
public ExpressionTree()
public ExpressionTree(@MustNotContainNull FilePositionInfo[] callStack, 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()
Copyright © 2011–2020 Igor Maznitsa. All rights reserved.