Uses of Interface
org.antlr.v4.runtime.tree.Tree
-
Packages that use Tree Package Description org.antlr.v4.gui org.antlr.v4.runtime org.antlr.v4.runtime.tree org.antlr.v4.tool -
-
Uses of Tree in org.antlr.v4.gui
Fields in org.antlr.v4.gui declared as Tree Modifier and Type Field Description protected Tree
TreePostScriptGenerator. root
Fields in org.antlr.v4.gui with type parameters of type Tree Modifier and Type Field Description protected java.util.List<Tree>
TreeViewer. highlightedNodes
protected org.abego.treelayout.TreeLayout<Tree>
TreePostScriptGenerator. treeLayout
protected org.abego.treelayout.TreeLayout<Tree>
TreeViewer. treeLayout
Methods in org.antlr.v4.gui that return Tree Modifier and Type Method Description Tree
TreeLayoutAdaptor. getFirstChild(Tree parentNode)
Tree
TreeLayoutAdaptor. getLastChild(Tree parentNode)
Tree
TreeLayoutAdaptor. getRoot()
Methods in org.antlr.v4.gui that return types with arguments of type Tree Modifier and Type Method Description java.lang.Iterable<Tree>
TreeLayoutAdaptor. getChildren(Tree node)
protected java.lang.Iterable<Tree>
TreePostScriptGenerator. getChildren(Tree parent)
java.lang.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.Methods in org.antlr.v4.gui with parameters of type Tree Modifier and Type Method Description protected void
TreeViewer. generateBox(java.io.Writer writer, Tree parent)
protected void
TreePostScriptGenerator. generateEdges(Tree parent)
protected void
TreeViewer. generateEdges(java.io.Writer writer, Tree parent)
protected void
TreePostScriptGenerator. generateNode(Tree t)
protected java.awt.geom.Rectangle2D.Double
TreePostScriptGenerator. getBoundsOfNode(Tree node)
protected java.awt.geom.Rectangle2D.Double
TreeViewer. getBoundsOfNode(Tree node)
java.lang.Iterable<Tree>
TreeLayoutAdaptor. getChildren(Tree node)
protected java.lang.Iterable<Tree>
TreePostScriptGenerator. getChildren(Tree parent)
java.lang.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 java.lang.String
Trees. getPS(Tree t, java.util.List<java.lang.String> ruleNames)
static java.lang.String
Trees. getPS(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fontName, int fontSize)
protected java.lang.String
TreePostScriptGenerator. getText(Tree tree)
java.lang.String
TreeTextProvider. getText(Tree node)
java.lang.String
TreeViewer.DefaultTreeTextProvider. getText(Tree node)
protected java.lang.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 java.util.concurrent.Future<javax.swing.JFrame>
Trees. inspect(Tree t, java.util.List<java.lang.String> ruleNames)
Call this method to view a parse tree in a dialog box visually.static java.util.concurrent.Future<javax.swing.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(java.awt.Graphics g, Tree tree)
protected void
TreeViewer. paintEdges(java.awt.Graphics g, Tree parent)
static void
Trees. save(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fileName)
Save this tree in a postscript filestatic void
Trees. save(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fileName, java.lang.String fontName, int fontSize)
Save this tree in a postscript file using a particular font name and sizestatic void
Trees. save(Tree t, Parser parser, java.lang.String fileName)
Save this tree in a postscript filestatic void
Trees. save(Tree t, Parser parser, java.lang.String fileName, java.lang.String fontName, int fontSize)
Save this tree in a postscript file using a particular font name and sizevoid
TreeViewer. setTree(Tree root)
static java.lang.String
Trees. toStringTree(Tree t, TreeTextProvider nodeTextProvider)
Print out a whole tree in LISP form.static void
Trees. writePS(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fileName)
static void
Trees. writePS(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fileName, java.lang.String fontName, int fontSize)
Method parameters in org.antlr.v4.gui with type arguments of type Tree Modifier and Type Method Description void
TreeViewer. addHighlightedNodes(java.util.Collection<Tree> nodes)
Slow for big lists of highlighted nodesvoid
TreeViewer. removeHighlightedNodes(java.util.Collection<Tree> nodes)
Constructors in org.antlr.v4.gui with parameters of type Tree Constructor Description TreeLayoutAdaptor(Tree root)
TreePostScriptGenerator(java.util.List<java.lang.String> ruleNames, Tree root)
TreePostScriptGenerator(java.util.List<java.lang.String> ruleNames, Tree root, java.lang.String fontName, int fontSize)
TreeViewer(java.util.List<java.lang.String> ruleNames, Tree tree)
-
Uses of Tree in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement Tree Modifier and Type Class Description class
InterpreterRuleContext
This class extendsParserRuleContext
by allowing the value ofInterpreterRuleContext.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. -
Uses of Tree in org.antlr.v4.runtime.tree
Subinterfaces of Tree in org.antlr.v4.runtime.tree Modifier and Type Interface Description interface
ErrorNode
interface
ParseTree
An interface to access the tree ofRuleContext
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
Classes in org.antlr.v4.runtime.tree that implement Tree Modifier and Type Class Description class
ErrorNodeImpl
Represents a token that was consumed during resynchronization rather than during a valid match operation.class
TerminalNodeImpl
Methods in org.antlr.v4.runtime.tree that return Tree Modifier and Type Method Description static Tree
Trees. findNodeSuchThat(Tree t, Predicate<Tree> pred)
Return first node satisfying the predTree
Tree. getChild(int i)
If there are children, get thei
th value indexed from 0.Tree
Tree. getParent()
The parent of this node.Methods in org.antlr.v4.runtime.tree that return types with arguments of type Tree Modifier and Type Method Description static java.util.List<? extends Tree>
Trees. getAncestors(Tree t)
Return a list of all ancestors of this node.static java.util.List<Tree>
Trees. getChildren(Tree t)
Return ordered list of all children of this nodeMethods in org.antlr.v4.runtime.tree with parameters of type Tree Modifier and Type Method Description static Tree
Trees. findNodeSuchThat(Tree t, Predicate<Tree> pred)
Return first node satisfying the predstatic java.util.List<? extends Tree>
Trees. getAncestors(Tree t)
Return a list of all ancestors of this node.static java.util.List<Tree>
Trees. getChildren(Tree t)
Return ordered list of all children of this nodestatic java.lang.String
Trees. getNodeText(Tree t, java.util.List<java.lang.String> ruleNames)
static java.lang.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 java.lang.String
Trees. toStringTree(Tree t)
Print out a whole tree in LISP form.static java.lang.String
Trees. toStringTree(Tree t, java.util.List<java.lang.String> ruleNames)
Print out a whole tree in LISP form.static java.lang.String
Trees. toStringTree(Tree t, Parser recog)
Print out a whole tree in LISP form.Method parameters in org.antlr.v4.runtime.tree with type arguments of type Tree Modifier and Type Method Description static Tree
Trees. findNodeSuchThat(Tree t, Predicate<Tree> pred)
Return first node satisfying the pred -
Uses of Tree in org.antlr.v4.tool
Classes in org.antlr.v4.tool that implement Tree Modifier and Type Class Description class
GrammarInterpreterRuleContext
AnInterpreterRuleContext
that knows which alternative for a rule was matched.
-