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 private TreeTreeLayoutAdaptor. rootprotected TreeTreePostScriptGenerator. rootprivate TreeTreeLayoutAdaptor.AntlrTreeChildrenIterable. treeprivate TreeTreeLayoutAdaptor.AntlrTreeChildrenReverseIterable. treeFields in org.antlr.v4.gui with type parameters of type Tree Modifier and Type Field Description protected java.util.List<Tree>TreeViewer. highlightedNodesprotected org.abego.treelayout.TreeLayout<Tree>TreePostScriptGenerator. treeLayoutprotected org.abego.treelayout.TreeLayout<Tree>TreeViewer. treeLayoutMethods in org.antlr.v4.gui that return Tree Modifier and Type Method Description TreeTreeLayoutAdaptor. getFirstChild(Tree parentNode)TreeTreeLayoutAdaptor. getLastChild(Tree parentNode)TreeTreeLayoutAdaptor. 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.java.util.Iterator<Tree>TreeLayoutAdaptor.AntlrTreeChildrenIterable. iterator()java.util.Iterator<Tree>TreeLayoutAdaptor.AntlrTreeChildrenReverseIterable. iterator()Methods in org.antlr.v4.gui with parameters of type Tree Modifier and Type Method Description private static voidTreeViewer. fillTree(TreeViewer.TreeNodeWrapper node, Tree tree, TreeViewer viewer)protected voidTreeViewer. generateBox(java.io.Writer writer, Tree parent)protected voidTreePostScriptGenerator. generateEdges(Tree parent)protected voidTreeViewer. generateEdges(java.io.Writer writer, Tree parent)protected voidTreePostScriptGenerator. generateNode(Tree t)protected java.awt.geom.Rectangle2D.DoubleTreePostScriptGenerator. getBoundsOfNode(Tree node)protected java.awt.geom.Rectangle2D.DoubleTreeViewer. 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)TreeTreeLayoutAdaptor. getFirstChild(Tree parentNode)doubleTreePostScriptGenerator.VariableExtentProvide. getHeight(Tree tree)doubleTreeViewer.VariableExtentProvide. getHeight(Tree tree)protected intTreeViewer. getHighlightedNodeIndex(Tree node)TreeTreeLayoutAdaptor. getLastChild(Tree parentNode)static java.lang.StringTrees. getPS(Tree t, java.util.List<java.lang.String> ruleNames)static java.lang.StringTrees. getPS(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fontName, int fontSize)protected java.lang.StringTreePostScriptGenerator. getText(Tree tree)java.lang.StringTreeTextProvider. getText(Tree node)java.lang.StringTreeViewer.DefaultTreeTextProvider. getText(Tree node)protected java.lang.StringTreeViewer. 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.doubleTreePostScriptGenerator.VariableExtentProvide. getWidth(Tree tree)doubleTreeViewer.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.booleanTreeLayoutAdaptor. isChildOfParent(Tree node, Tree parentNode)protected booleanTreeViewer. isHighlighted(Tree node)booleanTreeLayoutAdaptor. isLeaf(Tree node)protected voidTreeViewer. paintBox(java.awt.Graphics g, Tree tree)protected voidTreeViewer. paintEdges(java.awt.Graphics g, Tree parent)static voidTrees. save(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fileName)Save this tree in a postscript filestatic voidTrees. 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 voidTrees. save(Tree t, Parser parser, java.lang.String fileName)Save this tree in a postscript filestatic voidTrees. 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 sizevoidTreeViewer. setTree(Tree root)static java.lang.StringTrees. toStringTree(Tree t, TreeTextProvider nodeTextProvider)Print out a whole tree in LISP form.static voidTrees. writePS(Tree t, java.util.List<java.lang.String> ruleNames, java.lang.String fileName)static voidTrees. 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 voidTreeViewer. addHighlightedNodes(java.util.Collection<Tree> nodes)Slow for big lists of highlighted nodesvoidTreeViewer. removeHighlightedNodes(java.util.Collection<Tree> nodes)Constructors in org.antlr.v4.gui with parameters of type Tree Constructor Description AntlrTreeChildrenIterable(Tree tree)AntlrTreeChildrenReverseIterable(Tree tree)TreeLayoutAdaptor(Tree root)TreeNodeWrapper(Tree tree, TreeViewer viewer)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 classInterpreterRuleContextThis class extendsParserRuleContextby allowing the value ofInterpreterRuleContext.getRuleIndex()to be explicitly set for the context.classParserRuleContextA rule invocation record for parsing.classRuleContextA rule context is a record of a single rule invocation.classRuleContextWithAltNumA 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 interfaceErrorNodeinterfaceParseTreeAn interface to access the tree ofRuleContextobjects created during a parse that makes the data structure look like a simple parse tree.interfaceRuleNodeinterfaceSyntaxTreeA tree that knows about an interval in a token stream is some kind of syntax tree.interfaceTerminalNodeClasses in org.antlr.v4.runtime.tree that implement Tree Modifier and Type Class Description classErrorNodeImplRepresents a token that was consumed during resynchronization rather than during a valid match operation.classTerminalNodeImplMethods in org.antlr.v4.runtime.tree that return Tree Modifier and Type Method Description static TreeTrees. findNodeSuchThat(Tree t, Predicate<Tree> pred)Return first node satisfying the predTreeTree. getChild(int i)If there are children, get theith value indexed from 0.TreeTree. 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 TreeTrees. 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.StringTrees. getNodeText(Tree t, java.util.List<java.lang.String> ruleNames)static java.lang.StringTrees. getNodeText(Tree t, Parser recog)static booleanTrees. 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.StringTrees. toStringTree(Tree t)Print out a whole tree in LISP form.static java.lang.StringTrees. toStringTree(Tree t, java.util.List<java.lang.String> ruleNames)Print out a whole tree in LISP form.static java.lang.StringTrees. 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 TreeTrees. 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 classGrammarInterpreterRuleContextAnInterpreterRuleContextthat knows which alternative for a rule was matched.
-