Searched refs:tree (Results 1 - 25 of 473) sorted by relevance

1234567891011>>

/openjdk7/langtools/src/share/classes/com/sun/tools/javac/tree/
H A DTreeTranslator.java26 package com.sun.tools.javac.tree;
29 import com.sun.tools.javac.tree.JCTree.*;
32 * a general tree translator pattern. Translation proceeds recursively in
33 * left-to-right order down a tree, constructing translated nodes by
35 * for every possible kind of tree node. To obtain a specific
47 /** Visitor result field: a tree
54 public <T extends JCTree> T translate(T tree) { argument
55 if (tree == null) {
58 tree.accept(this);
118 public void visitTopLevel(JCCompilationUnit tree) { argument
124 visitImport(JCImport tree) argument
129 visitClassDef(JCClassDecl tree) argument
138 visitMethodDef(JCMethodDecl tree) argument
148 visitVarDef(JCVariableDecl tree) argument
155 visitSkip(JCSkip tree) argument
159 visitBlock(JCBlock tree) argument
164 visitDoLoop(JCDoWhileLoop tree) argument
170 visitWhileLoop(JCWhileLoop tree) argument
176 visitForLoop(JCForLoop tree) argument
184 visitForeachLoop(JCEnhancedForLoop tree) argument
191 visitLabelled(JCLabeledStatement tree) argument
196 visitSwitch(JCSwitch tree) argument
202 visitCase(JCCase tree) argument
208 visitSynchronized(JCSynchronized tree) argument
214 visitTry(JCTry tree) argument
222 visitCatch(JCCatch tree) argument
228 visitConditional(JCConditional tree) argument
235 visitIf(JCIf tree) argument
242 visitExec(JCExpressionStatement tree) argument
247 visitBreak(JCBreak tree) argument
251 visitContinue(JCContinue tree) argument
255 visitReturn(JCReturn tree) argument
260 visitThrow(JCThrow tree) argument
265 visitAssert(JCAssert tree) argument
271 visitApply(JCMethodInvocation tree) argument
277 visitNewClass(JCNewClass tree) argument
285 visitNewArray(JCNewArray tree) argument
292 visitParens(JCParens tree) argument
297 visitAssign(JCAssign tree) argument
303 visitAssignop(JCAssignOp tree) argument
309 visitUnary(JCUnary tree) argument
314 visitBinary(JCBinary tree) argument
320 visitTypeCast(JCTypeCast tree) argument
326 visitTypeTest(JCInstanceOf tree) argument
332 visitIndexed(JCArrayAccess tree) argument
338 visitSelect(JCFieldAccess tree) argument
343 visitIdent(JCIdent tree) argument
347 visitLiteral(JCLiteral tree) argument
351 visitTypeIdent(JCPrimitiveTypeTree tree) argument
355 visitTypeArray(JCArrayTypeTree tree) argument
360 visitTypeApply(JCTypeApply tree) argument
366 visitTypeUnion(JCTypeUnion tree) argument
371 visitTypeParameter(JCTypeParameter tree) argument
377 visitWildcard(JCWildcard tree) argument
384 visitTypeBoundKind(TypeBoundKind tree) argument
388 visitErroneous(JCErroneous tree) argument
392 visitLetExpr(LetExpr tree) argument
398 visitModifiers(JCModifiers tree) argument
403 visitAnnotation(JCAnnotation tree) argument
409 visitTree(JCTree tree) argument
[all...]
H A DTreeScanner.java26 package com.sun.tools.javac.tree;
29 import com.sun.tools.javac.tree.JCTree.*;
32 * a general tree scanner pattern. Translation proceeds recursively in
33 * left-to-right order down a tree. There is one visitor method in this class
34 * for every possible kind of tree node. To obtain a specific
48 public void scan(JCTree tree) { argument
49 if(tree!=null) tree.accept(this);
65 public void visitTopLevel(JCCompilationUnit tree) { argument
66 scan(tree
71 visitImport(JCImport tree) argument
75 visitClassDef(JCClassDecl tree) argument
83 visitMethodDef(JCMethodDecl tree) argument
93 visitVarDef(JCVariableDecl tree) argument
99 visitSkip(JCSkip tree) argument
102 visitBlock(JCBlock tree) argument
106 visitDoLoop(JCDoWhileLoop tree) argument
111 visitWhileLoop(JCWhileLoop tree) argument
116 visitForLoop(JCForLoop tree) argument
123 visitForeachLoop(JCEnhancedForLoop tree) argument
129 visitLabelled(JCLabeledStatement tree) argument
133 visitSwitch(JCSwitch tree) argument
138 visitCase(JCCase tree) argument
143 visitSynchronized(JCSynchronized tree) argument
148 visitTry(JCTry tree) argument
155 visitCatch(JCCatch tree) argument
160 visitConditional(JCConditional tree) argument
166 visitIf(JCIf tree) argument
172 visitExec(JCExpressionStatement tree) argument
176 visitBreak(JCBreak tree) argument
179 visitContinue(JCContinue tree) argument
182 visitReturn(JCReturn tree) argument
186 visitThrow(JCThrow tree) argument
190 visitAssert(JCAssert tree) argument
195 visitApply(JCMethodInvocation tree) argument
201 visitNewClass(JCNewClass tree) argument
209 visitNewArray(JCNewArray tree) argument
215 visitParens(JCParens tree) argument
219 visitAssign(JCAssign tree) argument
224 visitAssignop(JCAssignOp tree) argument
229 visitUnary(JCUnary tree) argument
233 visitBinary(JCBinary tree) argument
238 visitTypeCast(JCTypeCast tree) argument
243 visitTypeTest(JCInstanceOf tree) argument
248 visitIndexed(JCArrayAccess tree) argument
253 visitSelect(JCFieldAccess tree) argument
257 visitIdent(JCIdent tree) argument
260 visitLiteral(JCLiteral tree) argument
263 visitTypeIdent(JCPrimitiveTypeTree tree) argument
266 visitTypeArray(JCArrayTypeTree tree) argument
270 visitTypeApply(JCTypeApply tree) argument
275 visitTypeUnion(JCTypeUnion tree) argument
279 visitTypeParameter(JCTypeParameter tree) argument
284 visitWildcard(JCWildcard tree) argument
294 visitModifiers(JCModifiers tree) argument
298 visitAnnotation(JCAnnotation tree) argument
303 visitErroneous(JCErroneous tree) argument
306 visitLetExpr(LetExpr tree) argument
311 visitTree(JCTree tree) argument
[all...]
H A DPretty.java26 package com.sun.tools.javac.tree;
36 import com.sun.tools.javac.tree.JCTree.*;
40 /** Prints out a tree as an indented Java source program.
148 /** Visitor method: print expression tree.
151 public void printExpr(JCTree tree, int prec) throws IOException { argument
155 if (tree == null) print("/*missing*/");
157 tree.accept(this);
168 /** Derived visitor method: print expression tree at minimum precedence level
171 public void printExpr(JCTree tree) throws IOException { argument
172 printExpr(tree, TreeInf
177 printStat(JCTree tree) argument
230 printDocComment(JCTree tree) argument
323 printUnit(JCCompilationUnit tree, JCClassDecl cdef) argument
377 visitTopLevel(JCCompilationUnit tree) argument
385 visitImport(JCImport tree) argument
397 visitClassDef(JCClassDecl tree) argument
439 visitMethodDef(JCMethodDecl tree) argument
477 visitVarDef(JCVariableDecl tree) argument
525 visitSkip(JCSkip tree) argument
533 visitBlock(JCBlock tree) argument
542 visitDoLoop(JCDoWhileLoop tree) argument
561 visitWhileLoop(JCWhileLoop tree) argument
578 visitForLoop(JCForLoop tree) argument
604 visitForeachLoop(JCEnhancedForLoop tree) argument
617 visitLabelled(JCLabeledStatement tree) argument
626 visitSwitch(JCSwitch tree) argument
646 visitCase(JCCase tree) argument
665 visitSynchronized(JCSynchronized tree) argument
682 visitTry(JCTry tree) argument
711 visitCatch(JCCatch tree) argument
722 visitConditional(JCConditional tree) argument
736 visitIf(JCIf tree) argument
757 visitExec(JCExpressionStatement tree) argument
766 visitBreak(JCBreak tree) argument
776 visitContinue(JCContinue tree) argument
786 visitReturn(JCReturn tree) argument
799 visitThrow(JCThrow tree) argument
809 visitAssert(JCAssert tree) argument
823 visitApply(JCMethodInvocation tree) argument
849 visitNewClass(JCNewClass tree) argument
880 visitNewArray(JCNewArray tree) argument
908 visitParens(JCParens tree) argument
918 visitAssign(JCAssign tree) argument
964 visitAssignop(JCAssignOp tree) argument
976 visitUnary(JCUnary tree) argument
994 visitBinary(JCBinary tree) argument
1008 visitTypeCast(JCTypeCast tree) argument
1021 visitTypeTest(JCInstanceOf tree) argument
1033 visitIndexed(JCArrayAccess tree) argument
1044 visitSelect(JCFieldAccess tree) argument
1053 visitIdent(JCIdent tree) argument
1061 visitLiteral(JCLiteral tree) argument
1097 visitTypeIdent(JCPrimitiveTypeTree tree) argument
1136 visitTypeArray(JCArrayTypeTree tree) argument
1146 printBaseElementType(JCTree tree) argument
1151 printBrackets(JCArrayTypeTree tree) argument
1161 visitTypeApply(JCTypeApply tree) argument
1172 visitTypeUnion(JCTypeUnion tree) argument
1180 visitTypeParameter(JCTypeParameter tree) argument
1193 visitWildcard(JCWildcard tree) argument
1204 visitTypeBoundKind(TypeBoundKind tree) argument
1212 visitErroneous(JCErroneous tree) argument
1220 visitLetExpr(LetExpr tree) argument
1237 visitAnnotation(JCAnnotation tree) argument
1249 visitTree(JCTree tree) argument
[all...]
/openjdk7/langtools/src/share/classes/com/sun/source/tree/
H A Dpackage-info.java34 package com.sun.source.tree;
H A DArrayTypeTree.java26 package com.sun.source.tree;
29 * A tree node for an array type.
H A DEmptyStatementTree.java26 package com.sun.source.tree;
29 * A tree node for an empty (skip) statement.
H A DExpressionStatementTree.java26 package com.sun.source.tree;
29 * A tree node for an expression statement.
H A DExpressionTree.java26 package com.sun.source.tree;
29 * A tree node used as the base class for the different types of
H A DLiteralTree.java26 package com.sun.source.tree;
29 * A tree node for a literal expression.
H A DParenthesizedTree.java26 package com.sun.source.tree;
29 * A tree node for a parenthesized expression. Note: parentheses
H A DReturnTree.java26 package com.sun.source.tree;
29 * A tree node for a 'return' statement.
H A DStatementTree.java26 package com.sun.source.tree;
29 * A tree node used as the base class for the different kinds of
H A DThrowTree.java26 package com.sun.source.tree;
29 * A tree node for a 'throw' statement.
H A DUnaryTree.java26 package com.sun.source.tree;
29 * A tree node for postfix and unary expressions.
H A DWildcardTree.java26 package com.sun.source.tree;
29 * A tree node for a wildcard type argument.
/openjdk7/jdk/src/share/classes/sun/reflect/generics/tree/
H A DTree.java26 package sun.reflect.generics.tree;
28 /** Root of the abstract syntax tree hierarchy for generic signatures */
H A DBaseType.java26 package sun.reflect.generics.tree;
H A DFieldTypeSignature.java26 package sun.reflect.generics.tree;
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/jvm/
H A DCRTable.java30 import com.sun.tools.javac.tree.*;
33 import com.sun.tools.javac.tree.JCTree.*;
61 /** The tree of the method this table is intended for.
62 * We should traverse this tree to get source ranges.
68 public CRTable(JCTree.JCMethodDecl tree, Map<JCTree, Integer> endPositions) { argument
69 this.methodTree = tree;
74 * @param tree The tree or the list of trees for which
80 public void put(Object tree, int flags, int startPc, int endPc) { argument
81 entries.append(new CRTEntry(tree, flag
196 csp(JCTree tree) argument
243 visitMethodDef(JCMethodDecl tree) argument
249 visitVarDef(JCVariableDecl tree) argument
256 visitSkip(JCSkip tree) argument
262 visitBlock(JCBlock tree) argument
268 visitDoLoop(JCDoWhileLoop tree) argument
275 visitWhileLoop(JCWhileLoop tree) argument
282 visitForLoop(JCForLoop tree) argument
291 visitForeachLoop(JCEnhancedForLoop tree) argument
299 visitLabelled(JCLabeledStatement tree) argument
305 visitSwitch(JCSwitch tree) argument
312 visitCase(JCCase tree) argument
319 visitSynchronized(JCSynchronized tree) argument
326 visitTry(JCTry tree) argument
335 visitCatch(JCCatch tree) argument
342 visitConditional(JCConditional tree) argument
350 visitIf(JCIf tree) argument
358 visitExec(JCExpressionStatement tree) argument
364 visitBreak(JCBreak tree) argument
369 visitContinue(JCContinue tree) argument
374 visitReturn(JCReturn tree) argument
380 visitThrow(JCThrow tree) argument
386 visitAssert(JCAssert tree) argument
393 visitApply(JCMethodInvocation tree) argument
400 visitNewClass(JCNewClass tree) argument
409 visitNewArray(JCNewArray tree) argument
417 visitParens(JCParens tree) argument
423 visitAssign(JCAssign tree) argument
430 visitAssignop(JCAssignOp tree) argument
437 visitUnary(JCUnary tree) argument
443 visitBinary(JCBinary tree) argument
450 visitTypeCast(JCTypeCast tree) argument
457 visitTypeTest(JCInstanceOf tree) argument
464 visitIndexed(JCArrayAccess tree) argument
471 visitSelect(JCFieldAccess tree) argument
477 visitIdent(JCIdent tree) argument
482 visitLiteral(JCLiteral tree) argument
487 visitTypeIdent(JCPrimitiveTypeTree tree) argument
492 visitTypeArray(JCArrayTypeTree tree) argument
498 visitTypeApply(JCTypeApply tree) argument
505 visitTypeParameter(JCTypeParameter tree) argument
511 visitWildcard(JCWildcard tree) argument
515 visitErroneous(JCErroneous tree) argument
519 visitTree(JCTree tree) argument
525 startPos(JCTree tree) argument
533 endPos(JCTree tree) argument
550 Object tree; field in class:CRTable.CRTEntry
565 CRTEntry(Object tree, int flags, int startPc, int endPc) argument
[all...]
/openjdk7/langtools/src/share/classes/com/sun/source/util/
H A DSourcePositions.java28 import com.sun.source.tree.*;
41 * Gets the starting position of tree within file. If tree is not found within
44 * The returned position must be at the start of the yield of this tree, that
45 * is for any sub-tree of this tree, the following must hold:
48 * {@code tree.getStartPosition() <= subtree.getStartPosition()} or <br>
49 * {@code tree.getStartPosition() == NOPOS} or <br>
53 * @param file CompilationUnit in which to find tree.
54 * @param tree tre
57 getStartPosition(CompilationUnitTree file, Tree tree) argument
84 getEndPosition(CompilationUnitTree file, Tree tree) argument
[all...]
/openjdk7/langtools/test/tools/javac/6199662/
H A DTreeInfo.java30 public static void declarationFor(final Tree tree) { argument
32 public void scan(Tree tree) {
36 tree.accept(s);
H A DTreeScanner.java32 public void scan(Tree tree) throws E { argument
33 if(tree!=null) tree.accept(this);
/openjdk7/jdk/src/share/classes/javax/swing/tree/
H A DRowMapper.java26 package javax.swing.tree;
28 import javax.swing.tree.TreePath;
32 * the tree into display rows.
/openjdk7/jdk/src/share/classes/javax/swing/plaf/
H A DTreeUI.java30 import javax.swing.tree.TreePath;
45 public abstract Rectangle getPathBounds(JTree tree, TreePath path); argument
51 public abstract TreePath getPathForRow(JTree tree, int row); argument
58 public abstract int getRowForPath(JTree tree, TreePath path); argument
63 public abstract int getRowCount(JTree tree); argument
72 public abstract TreePath getClosestPathForLocation(JTree tree, int x, argument
76 * Returns true if the tree is being edited. The item that is being
79 public abstract boolean isEditing(JTree tree); argument
83 * tree isn't being edited. Returns true if the editor allows the
86 public abstract boolean stopEditing(JTree tree); argument
93 cancelEditing(JTree tree) argument
99 startEditingAtPath(JTree tree, TreePath path) argument
104 getEditingPath(JTree tree) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/tools/tree/
H A DConditionVars.java26 package sun.tools.tree;

Completed in 65 milliseconds

1234567891011>>