Package | Description |
---|---|
org.antlr.v4.runtime | |
org.antlr.v4.runtime.tree | |
org.antlr.v4.runtime.tree.gui |
Modifier and Type | Class and Description |
---|---|
class |
ParserRuleContext
A rule invocation record for parsing.
|
class |
RuleContext
A rule context is a record of a single rule invocation.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ErrorNode |
interface |
ParseTree
An interface to access the tree of
RuleContext objects created
during a parse that makes the data structure look like a simple parse tree. |
interface |
RuleNode |
interface |
SyntaxTree
A tree that knows about an interval in a token stream
is some kind of syntax tree.
|
interface |
TerminalNode |
Modifier and Type | Class and Description |
---|---|
class |
ErrorNodeImpl
Represents a token that was consumed during resynchronization
rather than during a valid match operation.
|
class |
TerminalNodeImpl |
Modifier and Type | Method and Description |
---|---|
Tree |
Tree.getChild(int i)
If there are children, get the
i th value indexed from 0. |
Tree |
Tree.getParent()
The parent of this node.
|
Modifier and Type | Method and Description |
---|---|
static List<? extends Tree> |
Trees.getAncestors(Tree t)
Return a list of all ancestors of this node.
|
Modifier and Type | Method and Description |
---|---|
static List<? extends Tree> |
Trees.getAncestors(Tree t)
Return a list of all ancestors of this node.
|
static String |
Trees.getNodeText(Tree t,
List<String> ruleNames) |
static String |
Trees.getNodeText(Tree t,
Parser recog) |
static String |
Trees.getPS(Tree t,
List<String> ruleNames) |
static String |
Trees.getPS(Tree t,
List<String> ruleNames,
String fontName,
int fontSize) |
static String |
Trees.toStringTree(Tree t)
Print out a whole tree in LISP form.
|
static String |
Trees.toStringTree(Tree t,
List<String> ruleNames)
Print out a whole tree in LISP form.
|
static String |
Trees.toStringTree(Tree t,
Parser recog)
Print out a whole tree in LISP form.
|
static void |
Trees.writePS(Tree t,
List<String> ruleNames,
String fileName) |
static void |
Trees.writePS(Tree t,
List<String> ruleNames,
String fileName,
String fontName,
int fontSize) |
Modifier and Type | Field and Description |
---|---|
protected Tree |
TreePostScriptGenerator.root |
Modifier and Type | Field and Description |
---|---|
protected List<Tree> |
TreeViewer.highlightedNodes |
protected org.abego.treelayout.TreeLayout<Tree> |
TreeViewer.treeLayout |
protected org.abego.treelayout.TreeLayout<Tree> |
TreePostScriptGenerator.treeLayout |
Modifier and Type | Method and Description |
---|---|
protected Iterable<Tree> |
TreePostScriptGenerator.getChildren(Tree parent) |
protected org.abego.treelayout.TreeForTreeLayout<Tree> |
TreeViewer.getTree() |
protected org.abego.treelayout.TreeForTreeLayout<Tree> |
TreePostScriptGenerator.getTree() |
Modifier and Type | Method and Description |
---|---|
protected void |
TreePostScriptGenerator.generateEdges(Tree parent) |
protected void |
TreePostScriptGenerator.generateNode(Tree t) |
protected Rectangle2D.Double |
TreeViewer.getBoundsOfNode(Tree node) |
protected Rectangle2D.Double |
TreePostScriptGenerator.getBoundsOfNode(Tree node) |
protected Iterable<Tree> |
TreePostScriptGenerator.getChildren(Tree parent) |
double |
TreeViewer.VariableExtentProvide.getHeight(Tree tree) |
double |
TreePostScriptGenerator.VariableExtentProvide.getHeight(Tree tree) |
protected int |
TreeViewer.getHighlightedNodeIndex(Tree node) |
protected String |
TreeViewer.getText(Tree tree) |
String |
TreeViewer.DefaultTreeTextProvider.getText(Tree node) |
String |
TreeTextProvider.getText(Tree node) |
protected String |
TreePostScriptGenerator.getText(Tree tree) |
double |
TreeViewer.VariableExtentProvide.getWidth(Tree tree) |
double |
TreePostScriptGenerator.VariableExtentProvide.getWidth(Tree tree) |
protected boolean |
TreeViewer.isHighlighted(Tree node) |
protected void |
TreeViewer.paintBox(Graphics g,
Tree tree) |
protected void |
TreeViewer.paintEdges(Graphics g,
Tree parent) |
Modifier and Type | Method and Description |
---|---|
void |
TreeViewer.addHighlightedNodes(Collection<Tree> nodes)
Slow for big lists of highlighted nodes
|
void |
TreeViewer.removeHighlightedNodes(Collection<Tree> nodes) |
Constructor and Description |
---|
TreePostScriptGenerator(List<String> ruleNames,
Tree root) |
TreePostScriptGenerator(List<String> ruleNames,
Tree root,
String fontName,
int fontSize) |
TreeViewer(List<String> ruleNames,
Tree tree) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.