Package | Description |
---|---|
org.antlr.v4.gui | |
org.antlr.v4.runtime | |
org.antlr.v4.runtime.tree | |
org.antlr.v4.tool |
Modifier and Type | Field | Description |
---|---|---|
protected Tree |
TreePostScriptGenerator.root |
Modifier and Type | Field | Description |
---|---|---|
protected List<Tree> |
TreeViewer.highlightedNodes |
|
protected org.abego.treelayout.TreeLayout<Tree> |
TreePostScriptGenerator.treeLayout |
|
protected org.abego.treelayout.TreeLayout<Tree> |
TreeViewer.treeLayout |
Modifier and Type | Method | Description |
---|---|---|
Tree |
TreeLayoutAdaptor.getFirstChild(Tree parentNode) |
|
Tree |
TreeLayoutAdaptor.getLastChild(Tree parentNode) |
|
Tree |
TreeLayoutAdaptor.getRoot() |
Modifier and Type | Method | Description |
---|---|---|
Iterable<Tree> |
TreeLayoutAdaptor.getChildren(Tree node) |
|
protected Iterable<Tree> |
TreePostScriptGenerator.getChildren(Tree parent) |
|
Iterable<Tree> |
TreeLayoutAdaptor.getChildrenReverse(Tree node) |
|
protected org.abego.treelayout.TreeForTreeLayout<Tree> |
TreePostScriptGenerator.getTree() |
|
protected org.abego.treelayout.TreeForTreeLayout<Tree> |
TreeViewer.getTree() |
|
org.abego.treelayout.TreeForTreeLayout<Tree> |
TreePostScriptGenerator.getTreeLayoutAdaptor(Tree root) |
Get an adaptor for root that indicates how to walk ANTLR trees.
|
org.abego.treelayout.TreeForTreeLayout<Tree> |
TreeViewer.getTreeLayoutAdaptor(Tree root) |
Get an adaptor for root that indicates how to walk ANTLR trees.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
TreeViewer.generateBox(Writer writer,
Tree parent) |
|
protected void |
TreePostScriptGenerator.generateEdges(Tree parent) |
|
protected void |
TreeViewer.generateEdges(Writer writer,
Tree parent) |
|
protected void |
TreePostScriptGenerator.generateNode(Tree t) |
|
protected Rectangle2D.Double |
TreePostScriptGenerator.getBoundsOfNode(Tree node) |
|
protected Rectangle2D.Double |
TreeViewer.getBoundsOfNode(Tree node) |
|
Iterable<Tree> |
TreeLayoutAdaptor.getChildren(Tree node) |
|
protected Iterable<Tree> |
TreePostScriptGenerator.getChildren(Tree parent) |
|
Iterable<Tree> |
TreeLayoutAdaptor.getChildrenReverse(Tree node) |
|
Tree |
TreeLayoutAdaptor.getFirstChild(Tree parentNode) |
|
double |
TreePostScriptGenerator.VariableExtentProvide.getHeight(Tree tree) |
|
double |
TreeViewer.VariableExtentProvide.getHeight(Tree tree) |
|
protected int |
TreeViewer.getHighlightedNodeIndex(Tree node) |
|
Tree |
TreeLayoutAdaptor.getLastChild(Tree parentNode) |
|
static String |
Trees.getPS(Tree t,
List<String> ruleNames) |
|
static String |
Trees.getPS(Tree t,
List<String> ruleNames,
String fontName,
int fontSize) |
|
protected String |
TreePostScriptGenerator.getText(Tree tree) |
|
String |
TreeTextProvider.getText(Tree node) |
|
String |
TreeViewer.DefaultTreeTextProvider.getText(Tree node) |
|
protected String |
TreeViewer.getText(Tree tree) |
|
org.abego.treelayout.TreeForTreeLayout<Tree> |
TreePostScriptGenerator.getTreeLayoutAdaptor(Tree root) |
Get an adaptor for root that indicates how to walk ANTLR trees.
|
org.abego.treelayout.TreeForTreeLayout<Tree> |
TreeViewer.getTreeLayoutAdaptor(Tree root) |
Get an adaptor for root that indicates how to walk ANTLR trees.
|
double |
TreePostScriptGenerator.VariableExtentProvide.getWidth(Tree tree) |
|
double |
TreeViewer.VariableExtentProvide.getWidth(Tree tree) |
|
static Future<JFrame> |
Trees.inspect(Tree t,
List<String> ruleNames) |
Call this method to view a parse tree in a dialog box visually.
|
static Future<JFrame> |
Trees.inspect(Tree t,
Parser parser) |
Call this method to view a parse tree in a dialog box visually.
|
boolean |
TreeLayoutAdaptor.isChildOfParent(Tree node,
Tree parentNode) |
|
protected boolean |
TreeViewer.isHighlighted(Tree node) |
|
boolean |
TreeLayoutAdaptor.isLeaf(Tree node) |
|
protected void |
TreeViewer.paintBox(Graphics g,
Tree tree) |
|
protected void |
TreeViewer.paintEdges(Graphics g,
Tree parent) |
|
static void |
Trees.save(Tree t,
List<String> ruleNames,
String fileName) |
Save this tree in a postscript file
|
static void |
Trees.save(Tree t,
List<String> ruleNames,
String fileName,
String fontName,
int fontSize) |
Save this tree in a postscript file using a particular font name and size
|
static void |
Trees.save(Tree t,
Parser parser,
String fileName) |
Save this tree in a postscript file
|
static void |
Trees.save(Tree t,
Parser parser,
String fileName,
String fontName,
int fontSize) |
Save this tree in a postscript file using a particular font name and size
|
void |
TreeViewer.setTree(Tree root) |
|
static String |
Trees.toStringTree(Tree t,
TreeTextProvider nodeTextProvider) |
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 | Method | Description |
---|---|---|
void |
TreeViewer.addHighlightedNodes(Collection<Tree> nodes) |
Slow for big lists of highlighted nodes
|
void |
TreeViewer.removeHighlightedNodes(Collection<Tree> nodes) |
Constructor | Description |
---|---|
TreeLayoutAdaptor(Tree root) |
|
TreePostScriptGenerator(List<String> ruleNames,
Tree root) |
|
TreePostScriptGenerator(List<String> ruleNames,
Tree root,
String fontName,
int fontSize) |
|
TreeViewer(List<String> ruleNames,
Tree tree) |
Modifier and Type | Class | Description |
---|---|---|
class |
InterpreterRuleContext |
This class extends
ParserRuleContext by allowing the value of
InterpreterRuleContext.getRuleIndex() to be explicitly set for the context. |
class |
ParserRuleContext |
A rule invocation record for parsing.
|
class |
RuleContext |
A rule context is a record of a single rule invocation.
|
class |
RuleContextWithAltNum |
A handy class for use with
options {contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum;}
that provides a backing field / impl for the outer alternative number
matched for an internal parse tree node.
|
Modifier and Type | Interface | 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 | Description |
---|---|---|
class |
ErrorNodeImpl |
Represents a token that was consumed during resynchronization
rather than during a valid match operation.
|
class |
TerminalNodeImpl |
Modifier and Type | Method | Description |
---|---|---|
static Tree |
Trees.findNodeSuchThat(Tree t,
Predicate<Tree> pred) |
Return first node satisfying the pred
|
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 | Description |
---|---|---|
static List<? extends Tree> |
Trees.getAncestors(Tree t) |
Return a list of all ancestors of this node.
|
static List<Tree> |
Trees.getChildren(Tree t) |
Return ordered list of all children of this node
|
Modifier and Type | Method | Description |
---|---|---|
static Tree |
Trees.findNodeSuchThat(Tree t,
Predicate<Tree> pred) |
Return first node satisfying the pred
|
static List<? extends Tree> |
Trees.getAncestors(Tree t) |
Return a list of all ancestors of this node.
|
static List<Tree> |
Trees.getChildren(Tree t) |
Return ordered list of all children of this node
|
static String |
Trees.getNodeText(Tree t,
List<String> ruleNames) |
|
static String |
Trees.getNodeText(Tree t,
Parser recog) |
|
static boolean |
Trees.isAncestorOf(Tree t,
Tree u) |
Return true if t is u's parent or a node on path to root from u.
|
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.
|
Modifier and Type | Method | Description |
---|---|---|
static Tree |
Trees.findNodeSuchThat(Tree t,
Predicate<Tree> pred) |
Return first node satisfying the pred
|
Modifier and Type | Class | Description |
---|---|---|
class |
GrammarInterpreterRuleContext |
An
InterpreterRuleContext that knows which alternative
for a rule was matched. |
Copyright © 1992–2019 ANTLR. All rights reserved.