HomeSort by relevance Sort by last modified time
    Searched refs:Tree (Results 1 - 25 of 51) sorted by null

1 2 3

  /external/antlr/src/org/antlr/runtime/tree/
Tree.java 28 package org.antlr.runtime.tree;
34 /** What does a tree look like? ANTLR has a number of support classes
39 * NOTE: When constructing trees, ANTLR can build any kind of tree; it can
42 * This is a tree node without any payload; just navigation and factory stuff.
44 public interface Tree {
45 public static final Tree INVALID_NODE = new CommonTree(Token.INVALID_TOKEN);
47 Tree getChild(int i);
51 // Tree tracks parent and child index now > 3.0
53 public Tree getParent();
55 public void setParent(Tree t)
    [all...]
CommonTreeAdaptor.java 28 package org.antlr.runtime.tree;
33 /** A TreeAdaptor that works with any Tree implementation. It provides
36 * objects, you need to override this and then set the parser tree adaptor to
52 return ((Tree)t).dupNode();
90 * Only works with Tree nodes. For rules that match nothing,
100 ((Tree)t).setTokenStartIndex(start);
101 ((Tree)t).setTokenStopIndex(stop);
106 return ((Tree)t).getTokenStartIndex();
111 return ((Tree)t).getTokenStopIndex();
116 return ((Tree)t).getText()
    [all...]
BaseTree.java 28 package org.antlr.runtime.tree;
33 /** A generic tree implementation with no payload. You must subclass to
35 * instead of the child-sibling approach in v2. A flat tree (a list) is
39 public abstract class BaseTree implements Tree {
49 public BaseTree(Tree node) {
52 public Tree getChild(int i) {
56 return (Tree)children.get(i);
66 public Tree getFirstChildWithType(int type) {
68 Tree t = (Tree) children.get(i)
    [all...]
BaseTreeAdaptor.java 28 package org.antlr.runtime.tree;
37 /** A TreeAdaptor that works with any Tree implementation. */
41 * expensive: we have to create a hashtable with all tree nodes in it.
50 /** create tree node that holds the start and stop tokens associated
53 * If you specify your own kind of tree nodes, you will likely have to
59 * subclass your own tree node class to avoid class cast exception.
69 public boolean isNil(Object tree) {
70 return ((Tree)tree).isNil();
73 public Object dupTree(Object tree) {
    [all...]
CommonTree.java 28 package org.antlr.runtime.tree;
32 /** A tree node that is wrapper for a Token object. After 3.0 release
33 * while building tree rewrite stuff, it became clear that computing
35 * spend the space in every tree node. If you don't want these extra
70 public Tree dupNode() {
161 public Tree getParent() {
165 public void setParent(Tree t) {
TreeRewriter.java 28 package org.antlr.runtime.tree;
100 * other than stdout or if you're not using Tree-derived trees.
103 System.out.println(((Tree)oldTree).toStringTree()+" -> "+
104 ((Tree)newTree).toStringTree());
116 // to override, just define tree grammar rule topdown and turn on
CommonErrorNode.java 28 package org.antlr.runtime.tree;
77 else if ( start instanceof Tree ) {
81 // people should subclass if they alter the tree type so this
ParseTree.java 28 package org.antlr.runtime.tree;
35 * end up as the leaves of this tree and rule nodes are the interior nodes.
47 public Tree dupNode() {
100 /** Print out the leaves of this tree, which means printing original
  /external/antlr/src/org/antlr/runtime/
MismatchedTreeNodeException.java 30 import org.antlr.runtime.tree.TreeNodeStream;
31 import org.antlr.runtime.tree.Tree;
RecognitionException.java 30 import org.antlr.runtime.tree.*;
71 * For parsers. Even when it's a tree parser, token might be set.
75 /** If this is a tree parser exception, node is set to the node with
91 /** If you are parsing a tree node stream, you will encounter som
152 else if ( this.node instanceof Tree) {
153 this.line = ((Tree)this.node).getLine();
154 this.charPositionInLine = ((Tree)this.node).getCharPositionInLine();
  /external/llvm/utils/TableGen/
ClangASTNodesEmitter.cpp 25 const ChildMap &Tree,
30 ChildIterator i = Tree.lower_bound(Base), e = Tree.upper_bound(Base);
55 if (Tree.find(R) != Tree.end()) {
57 = EmitNode(Tree, OS, R);
108 ChildMap Tree;
114 Tree.insert(std::make_pair(R->getValueAsDef("Base"), R));
116 Tree.insert(std::make_pair(&Root, R));
119 EmitNode(Tree, OS, &Root)
    [all...]
ClangASTNodesEmitter.h 55 std::pair<Record *, Record *> EmitNode (const ChildMap &Tree, raw_ostream& OS,
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
ast.ml 2 * Abstract Syntax Tree (aka Parse Tree)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
ast.ml 2 * Abstract Syntax Tree (aka Parse Tree)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
ast.ml 2 * Abstract Syntax Tree (aka Parse Tree)
  /sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/explorer/
DeviceContentProvider.java 27 import org.eclipse.swt.widgets.Tree;
40 final Tree t = mViewer.getTree();
62 final Tree t = mViewer.getTree();
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
ast.ml 2 * Abstract Syntax Tree (aka Parse Tree)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
ast.ml 2 * Abstract Syntax Tree (aka Parse Tree)
  /external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
ast.ml 2 * Abstract Syntax Tree (aka Parse Tree)
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
PropertySheetPage.java 36 import org.eclipse.swt.widgets.Tree;
96 final Tree tree = (Tree) getControl(); local
97 tree.addMouseListener(new MouseAdapter() {
101 TreeItem item = tree.getItem(pt);
126 tree.addListener(SWT.EraseItem, new Listener() {
132 Display display = tree.getDisplay();
142 * Sets up a custom tooltip when hovering over tree items.
147 final Tree tree = (Tree) getControl() local
    [all...]
OutlineDragListener.java 24 import org.eclipse.swt.widgets.Tree;
43 Tree tree = mTreeViewer.getTree(); local
45 TreeItem overTreeItem = tree.getItem(new Point(e.x, e.y));
47 // Not dragging over a tree item
58 // because for one thing, the tree selection is updated synchronously on mouse
64 TreeItem[] treeSelection = tree.getSelection();
  /sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/
TableHelper.java 24 import org.eclipse.swt.widgets.Tree;
106 public static void createTreeColumn(Tree parent, String header, int style,
162 public static void createTreeColumn(Tree parent, String header, int style,
  /sdk/hierarchyviewer2/libs/hierarchyviewerlib/src/com/android/hierarchyviewerlib/ui/
PixelPerfectTree.java 39 import org.eclipse.swt.widgets.Tree;
47 private Tree mTree;
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
ResourceExplorerView.java 48 import org.eclipse.swt.widgets.Tree;
65 * This contains a basic Tree view, and uses a TreeViewer to handle the data.
83 private Tree mTree;
93 mTree = new Tree(parent, SWT.SINGLE | SWT.VIRTUAL);
242 // to the tree viewer.
275 public void createTreeColumn(Tree parent, String header, int style,
  /sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/heap/
NativeHeapPanel.java 65 import org.eclipse.swt.widgets.Tree;
697 Tree detailsTree = new Tree(c, SWT.VIRTUAL | SWT.BORDER | SWT.MULTI);
705 Tree stackTraceTree = new Tree(c, SWT.BORDER | SWT.MULTI);
    [all...]

Completed in 139 milliseconds

1 2 3