Uses of Interface
org.antlr.v4.runtime.tree.Tree
Packages that use Tree
Package
Description
-
Uses of Tree in org.antlr.v4.gui
Fields in org.antlr.v4.gui declared as TreeModifier and TypeFieldDescriptionprivate Tree
TreeLayoutAdaptor.root
protected Tree
TreePostScriptGenerator.root
private final Tree
TreeLayoutAdaptor.AntlrTreeChildrenIterable.tree
private final Tree
TreeLayoutAdaptor.AntlrTreeChildrenReverseIterable.tree
Fields in org.antlr.v4.gui with type parameters of type TreeModifier and TypeFieldDescriptionTreeViewer.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 TreeModifier and TypeMethodDescriptionTreeLayoutAdaptor.getFirstChild
(Tree parentNode) TreeLayoutAdaptor.getLastChild
(Tree parentNode) TreeLayoutAdaptor.getRoot()
Methods in org.antlr.v4.gui that return types with arguments of type TreeModifier and TypeMethodDescriptionTreeLayoutAdaptor.getChildren
(Tree node) TreePostScriptGenerator.getChildren
(Tree parent) 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.TreeLayoutAdaptor.AntlrTreeChildrenIterable.iterator()
TreeLayoutAdaptor.AntlrTreeChildrenReverseIterable.iterator()
Methods in org.antlr.v4.gui with parameters of type TreeModifier and TypeMethodDescriptionprivate static void
TreeViewer.fillTree
(TreeViewer.TreeNodeWrapper node, Tree tree, TreeViewer viewer) 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) TreeLayoutAdaptor.getChildren
(Tree node) TreePostScriptGenerator.getChildren
(Tree parent) TreeLayoutAdaptor.getChildrenReverse
(Tree node) TreeLayoutAdaptor.getFirstChild
(Tree parentNode) double
double
protected int
TreeViewer.getHighlightedNodeIndex
(Tree node) TreeLayoutAdaptor.getLastChild
(Tree parentNode) static String
static String
protected String
protected String
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
double
Call this method to view a parse tree in a dialog box visually.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
protected void
protected void
TreeViewer.paintEdges
(Graphics g, Tree parent) static void
Save this tree in a postscript filestatic void
Save this tree in a postscript file using a particular font name and sizestatic void
Save this tree in a postscript filestatic void
Save this tree in a postscript file using a particular font name and sizevoid
static String
Trees.toStringTree
(Tree t, TreeTextProvider nodeTextProvider) Print out a whole tree in LISP form.static void
static void
Method parameters in org.antlr.v4.gui with type arguments of type TreeModifier and TypeMethodDescriptionvoid
TreeViewer.addHighlightedNodes
(Collection<Tree> nodes) Slow for big lists of highlighted nodesvoid
TreeViewer.removeHighlightedNodes
(Collection<Tree> nodes) Constructors in org.antlr.v4.gui with parameters of type TreeModifierConstructorDescriptionTreeLayoutAdaptor
(Tree root) (package private)
TreeNodeWrapper
(Tree tree, TreeViewer viewer) TreePostScriptGenerator
(List<String> ruleNames, Tree root) TreePostScriptGenerator
(List<String> ruleNames, Tree root, String fontName, int fontSize) TreeViewer
(List<String> ruleNames, Tree tree) -
Uses of Tree in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TreeModifier and TypeClassDescriptionclass
This class extendsParserRuleContext
by allowing the value ofInterpreterRuleContext.getRuleIndex()
to be explicitly set for the context.class
A rule invocation record for parsing.class
A rule context is a record of a single rule invocation.class
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.treeModifier and TypeInterfaceDescriptioninterface
interface
An interface to access the tree ofRuleContext
objects created during a parse that makes the data structure look like a simple parse tree.interface
interface
A tree that knows about an interval in a token stream is some kind of syntax tree.interface
Classes in org.antlr.v4.runtime.tree that implement TreeModifier and TypeClassDescriptionclass
Represents a token that was consumed during resynchronization rather than during a valid match operation.class
Methods in org.antlr.v4.runtime.tree that return TreeModifier and TypeMethodDescriptionstatic Tree
Trees.findNodeSuchThat
(Tree t, Predicate<Tree> pred) Return first node satisfying the predTree.getChild
(int i) If there are children, get thei
th value indexed from 0.Tree.getParent()
The parent of this node.Methods in org.antlr.v4.runtime.tree that return types with arguments of type TreeModifier and TypeMethodDescriptionTrees.getAncestors
(Tree t) Return a list of all ancestors of this node.Trees.getChildren
(Tree t) Return ordered list of all children of this nodeMethods in org.antlr.v4.runtime.tree with parameters of type TreeModifier and TypeMethodDescriptionstatic Tree
Trees.findNodeSuchThat
(Tree t, Predicate<Tree> pred) Return first node satisfying the predTrees.getAncestors
(Tree t) Return a list of all ancestors of this node.Trees.getChildren
(Tree t) Return ordered list of all children of this nodestatic 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.Method parameters in org.antlr.v4.runtime.tree with type arguments of type TreeModifier and TypeMethodDescriptionstatic 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 TreeModifier and TypeClassDescriptionclass
AnInterpreterRuleContext
that knows which alternative for a rule was matched.