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.
|
public 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–2018 SciJava. All rights reserved.