Parser.
antlr.Parser , Token, CSTNode, Types
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| public static final Reduction | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CSTNode | |
| public Reduction | asReduction()
Implements abstract org. Reduction from this node.
|
| public CSTNode | get(int index)
Implements abstract org. |
| public Token | getRoot()
Implements abstract org. |
| public boolean | isAnExpression()
Overrides org. |
| public boolean | isEmpty()
Overrides org. |
| public void | markAsExpression()
Overrides org. |
| public static Reduction | |
| public CSTNode | |
| public CSTNode | set(int index, CSTNode element)
Overrides org. |
| public int | size()
Implements abstract org. |
| elements | back to summary |
|---|---|
| private List<E> elements | |
| EMPTY | back to summary |
|---|---|
| public static final Reduction EMPTY | |
| marked | back to summary |
|---|---|
| private boolean marked | |
| Reduction | back to summary |
|---|---|
| public Reduction(Token root) Initializes the | |
| Reduction | back to summary |
|---|---|
| private Reduction() Initializes the | |
| add | back to summary |
|---|---|
| public CSTNode add(CSTNode element) Overrides org. Adds an element to the node. | |
| asReduction | back to summary |
|---|---|
| public Reduction asReduction() Implements abstract org. Creates a | |
| get | back to summary |
|---|---|
| public CSTNode get(int index) Implements abstract org. Returns the specified element, or null. | |
| getRoot | back to summary |
|---|---|
| public Token getRoot() Implements abstract org. Returns the root of the node, the Token that indicates its type. Returns null if there is no root (usually only if the node is a placeholder of some kind -- see isEmpty()). | |
| isAnExpression | back to summary |
|---|---|
| public boolean isAnExpression() Overrides org. Returns true if the node is a complete expression. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides org. Returns true if the node is completely empty (no root, even). | |
| markAsExpression | back to summary |
|---|---|
| public void markAsExpression() Overrides org. Marks the node a complete expression. | |
| newContainer | back to summary |
|---|---|
| public static Reduction newContainer() Creates a new | |
| remove | back to summary |
|---|---|
| public CSTNode remove(int index) Removes a node from the | |
| set | back to summary |
|---|---|
| public CSTNode set(int index, CSTNode element) Overrides org. Sets an element in at the specified index. | |
| size | back to summary |
|---|---|
| public int size() Implements abstract org. Returns the number of elements in the node. | |