public class SyntaxTree extends Object implements Iterable<SyntaxTree>
| Constructor and Description |
|---|
SyntaxTree(LinkedList<Object> tokens)
Creates a syntax tree built from the given postfix
token queue.
|
| Modifier and Type | Method and Description |
|---|---|
SyntaxTree |
child(int index) |
int |
count() |
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<SyntaxTree> |
iterator() |
LinkedList<Object> |
postfix()
Converts the syntax tree into a token queue in postfix order.
|
Object |
token() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic SyntaxTree(LinkedList<Object> tokens)
tokens - The token queue, in postfix order.public Object token()
public SyntaxTree child(int index)
public int count()
public LinkedList<Object> postfix()
public Iterator<SyntaxTree> iterator()
iterator in interface Iterable<SyntaxTree>Copyright © 2015–2022 SciJava. All rights reserved.