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 TreeTreeLayoutAdaptor.rootprotected TreeTreePostScriptGenerator.rootprivate final TreeTreeLayoutAdaptor.AntlrTreeChildrenIterable.treeprivate final TreeTreeLayoutAdaptor.AntlrTreeChildrenReverseIterable.treeFields in org.antlr.v4.gui with type parameters of type TreeModifier and TypeFieldDescriptionTreeViewer.highlightedNodesprotected org.abego.treelayout.TreeLayout<Tree> TreePostScriptGenerator.treeLayoutprotected org.abego.treelayout.TreeLayout<Tree> TreeViewer.treeLayoutMethods 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 voidTreeViewer.fillTree(TreeViewer.TreeNodeWrapper node, Tree tree, TreeViewer viewer) protected voidTreeViewer.generateBox(Writer writer, Tree parent) protected voidTreePostScriptGenerator.generateEdges(Tree parent) protected voidTreeViewer.generateEdges(Writer writer, Tree parent) protected voidTreePostScriptGenerator.generateNode(Tree t) protected Rectangle2D.DoubleTreePostScriptGenerator.getBoundsOfNode(Tree node) protected Rectangle2D.DoubleTreeViewer.getBoundsOfNode(Tree node) TreeLayoutAdaptor.getChildren(Tree node) TreePostScriptGenerator.getChildren(Tree parent) TreeLayoutAdaptor.getChildrenReverse(Tree node) TreeLayoutAdaptor.getFirstChild(Tree parentNode) doubledoubleprotected intTreeViewer.getHighlightedNodeIndex(Tree node) TreeLayoutAdaptor.getLastChild(Tree parentNode) static Stringstatic Stringprotected Stringprotected Stringorg.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.doubledoubleCall 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.booleanTreeLayoutAdaptor.isChildOfParent(Tree node, Tree parentNode) protected booleanTreeViewer.isHighlighted(Tree node) booleanprotected voidprotected voidTreeViewer.paintEdges(Graphics g, Tree parent) static voidSave this tree in a postscript filestatic voidSave this tree in a postscript file using a particular font name and sizestatic voidSave this tree in a postscript filestatic voidSave this tree in a postscript file using a particular font name and sizevoidstatic StringTrees.toStringTree(Tree t, TreeTextProvider nodeTextProvider) Print out a whole tree in LISP form.static voidstatic voidMethod parameters in org.antlr.v4.gui with type arguments of type TreeModifier and TypeMethodDescriptionvoidTreeViewer.addHighlightedNodes(Collection<Tree> nodes) Slow for big lists of highlighted nodesvoidTreeViewer.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 TypeClassDescriptionclassThis class extendsParserRuleContextby allowing the value ofInterpreterRuleContext.getRuleIndex()to be explicitly set for the context.classA rule invocation record for parsing.classA rule context is a record of a single rule invocation.classA 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 TypeInterfaceDescriptioninterfaceinterfaceAn interface to access the tree ofRuleContextobjects created during a parse that makes the data structure look like a simple parse tree.interfaceinterfaceA tree that knows about an interval in a token stream is some kind of syntax tree.interfaceClasses in org.antlr.v4.runtime.tree that implement TreeModifier and TypeClassDescriptionclassRepresents a token that was consumed during resynchronization rather than during a valid match operation.classMethods in org.antlr.v4.runtime.tree that return TreeModifier and TypeMethodDescriptionstatic TreeTrees.findNodeSuchThat(Tree t, Predicate<Tree> pred) Return first node satisfying the predTree.getChild(int i) If there are children, get theith 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 TreeTrees.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 StringTrees.getNodeText(Tree t, List<String> ruleNames) static 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 StringTrees.toStringTree(Tree t) Print out a whole tree in LISP form.static StringTrees.toStringTree(Tree t, List<String> ruleNames) Print out a whole tree in LISP form.static 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 TreeModifier and TypeMethodDescriptionstatic 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 TreeModifier and TypeClassDescriptionclassAnInterpreterRuleContextthat knows which alternative for a rule was matched.