Java Doc for TreeInfo.java in  » 6.0-JDK-Modules-sun » javac-compiler » com » sun » tools » javac » tree » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules sun » javac compiler » com.sun.tools.javac.tree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.javac.tree.TreeInfo

TreeInfo
public class TreeInfo (Code)
Utility class containing inspector methods for trees.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.



Field Summary
final public static  intnotExpressionnoPrecassignPrecassignopPreccondPrecorPrecandPrecbitorPrecbitxorPrecbitandPreceqPrecordPrecshiftPrecaddPrecmulPrecprefixPrecpostfixPrecprecCount
     Operator precedences values.
final protected static  Context.Key<TreeInfo>treeInfoKey
    


Method Summary
public static  NamecalledMethodName(JCTree tree)
     If the expression is a method call, return the method name, null otherwise.
public static  JCTreedeclarationFor(Symbol sym, JCTree tree)
     Find the declaration for a symbol, where that symbol is defined somewhere in the given tree.
public static  DiagnosticPositiondiagEndPos(JCTree tree)
     A DiagnosticPosition with the preferred position set to the end position of given tree, if it is a block with defined endpos.
public static  DiagnosticPositiondiagnosticPositionFor(Symbol sym, JCTree tree)
     Find the position for reporting an error about a symbol, where that symbol is defined somewhere in the given tree.
public static  intendPos(JCTree tree)
     The end position of given tree, if it is a block with defined endpos.
public static  intfinalizerPos(JCTree tree)
     The position of the finalizer of given try/synchronized statement.
public static  JCMethodInvocationfirstConstructorCall(JCTree tree)
     Return the first call in a constructor definition.
public static  longfirstFlag(long flags)
    
public static  intfirstStatPos(JCTree tree)
     The position of the first statement in a block, or the position of the block itself if it is empty.
public static  StringflagNames(long flags)
     Return flags as a string, separated by " ".
public static  longflags(JCTree tree)
     If this tree is a declaration or a block, return its flags field, otherwise return 0.
public static  NamefullName(JCTree tree)
     If this tree is a qualified identifier, its return fully qualified name, otherwise return null.
public static  intgetEndPos(JCTree tree, Map<JCTree, Integer> endPositions)
    
public static  intgetStartPos(JCTree tree)
     Get the start position for a tree node.
public static  booleanhasConstructors(List<JCTree> trees)
    
public static  TreeInfoinstance(Context context)
    
public static  booleanisConstructor(JCTree tree)
    
public static  booleanisInitialConstructor(JCTree tree)
    
public static  booleanisNull(JCTree tree)
     Return true if a tree represents the null literal.
public static  booleanisSelfCall(JCTree tree)
    
public static  booleanisSuperCall(JCTree tree)
    
public static  booleanisSyntheticInit(JCTree stat)
    
public static  Namename(JCTree tree)
     If this tree is an identifier or a field or a parameterized type, return its name, otherwise return null.
public static  booleannonstaticSelect(JCTree tree)
     Return true if this is a nonstatic selection.
public static  intopPrec(int op)
     Map operators to their precedence levels.
public  NameoperatorName(int tag)
     Return name of operator with given tree tag.
public static  List<JCTree>pathFor(JCTree node, JCCompilationUnit unit)
    
public static  intpositionFor(Symbol sym, JCTree tree)
     Find the position for reporting an error about a symbol, where that symbol is defined somewhere in the given tree.
public static  JCTreereferencedStatement(JCLabeledStatement tree)
     Return the statement referenced by a label.
public static  Env<AttrContext>scopeFor(JCTree node, JCCompilationUnit unit)
    
public static  Env<AttrContext>scopeFor(List<JCTree> path)
    
public static  voidsetSymbol(JCTree tree, Symbol sym)
     If this tree is an identifier or a field, set its symbol, otherwise skip.
public static  JCExpressionskipParens(JCExpression tree)
    
public static  JCTreeskipParens(JCTree tree)
    
public static  Symbolsymbol(JCTree tree)
     If this tree is an identifier or a field, return its symbol, otherwise return null.
public static  SymbolsymbolFor(JCTree node)
    
static  Tree.KindtagToKind(int tag)
    
public static  List<Type>types(List<? extends JCTree> trees)
     Return the types of a list of trees.

Field Detail
notExpressionnoPrecassignPrecassignopPreccondPrecorPrecandPrecbitorPrecbitxorPrecbitandPreceqPrecordPrecshiftPrecaddPrecmulPrecprefixPrecpostfixPrecprecCount
final public static int notExpressionnoPrecassignPrecassignopPreccondPrecorPrecandPrecbitorPrecbitxorPrecbitandPreceqPrecordPrecshiftPrecaddPrecmulPrecprefixPrecpostfixPrecprecCount(Code)
Operator precedences values.



treeInfoKey
final protected static Context.Key<TreeInfo> treeInfoKey(Code)





Method Detail
calledMethodName
public static Name calledMethodName(JCTree tree)(Code)
If the expression is a method call, return the method name, null otherwise.



declarationFor
public static JCTree declarationFor(Symbol sym, JCTree tree)(Code)
Find the declaration for a symbol, where that symbol is defined somewhere in the given tree.



diagEndPos
public static DiagnosticPosition diagEndPos(JCTree tree)(Code)
A DiagnosticPosition with the preferred position set to the end position of given tree, if it is a block with defined endpos.



diagnosticPositionFor
public static DiagnosticPosition diagnosticPositionFor(Symbol sym, JCTree tree)(Code)
Find the position for reporting an error about a symbol, where that symbol is defined somewhere in the given tree.



endPos
public static int endPos(JCTree tree)(Code)
The end position of given tree, if it is a block with defined endpos.



finalizerPos
public static int finalizerPos(JCTree tree)(Code)
The position of the finalizer of given try/synchronized statement.



firstConstructorCall
public static JCMethodInvocation firstConstructorCall(JCTree tree)(Code)
Return the first call in a constructor definition.



firstFlag
public static long firstFlag(long flags)(Code)
Return first (smallest) flag in `flags': pre: flags != 0



firstStatPos
public static int firstStatPos(JCTree tree)(Code)
The position of the first statement in a block, or the position of the block itself if it is empty.



flagNames
public static String flagNames(long flags)(Code)
Return flags as a string, separated by " ".



flags
public static long flags(JCTree tree)(Code)
If this tree is a declaration or a block, return its flags field, otherwise return 0.



fullName
public static Name fullName(JCTree tree)(Code)
If this tree is a qualified identifier, its return fully qualified name, otherwise return null.



getEndPos
public static int getEndPos(JCTree tree, Map<JCTree, Integer> endPositions)(Code)
The end position of given tree, given a table of end positions generated by the parser



getStartPos
public static int getStartPos(JCTree tree)(Code)
Get the start position for a tree node. The start position is defined to be the position of the first character of the first token of the node's source text.
Parameters:
  tree - The tree node



hasConstructors
public static boolean hasConstructors(List<JCTree> trees)(Code)
Is there a constructor declaration in the given list of trees?



instance
public static TreeInfo instance(Context context)(Code)



isConstructor
public static boolean isConstructor(JCTree tree)(Code)
Is tree a constructor declaration?



isInitialConstructor
public static boolean isInitialConstructor(JCTree tree)(Code)
Is this a constructor whose first (non-synthetic) statement is not of the form this(...)?



isNull
public static boolean isNull(JCTree tree)(Code)
Return true if a tree represents the null literal.



isSelfCall
public static boolean isSelfCall(JCTree tree)(Code)
Is this a call to this or super?



isSuperCall
public static boolean isSuperCall(JCTree tree)(Code)
Is this a call to super?



isSyntheticInit
public static boolean isSyntheticInit(JCTree stat)(Code)
Is statement an initializer for a synthetic field?



name
public static Name name(JCTree tree)(Code)
If this tree is an identifier or a field or a parameterized type, return its name, otherwise return null.



nonstaticSelect
public static boolean nonstaticSelect(JCTree tree)(Code)
Return true if this is a nonstatic selection.



opPrec
public static int opPrec(int op)(Code)
Map operators to their precedence levels.



operatorName
public Name operatorName(int tag)(Code)
Return name of operator with given tree tag.



pathFor
public static List<JCTree> pathFor(JCTree node, JCCompilationUnit unit)(Code)



positionFor
public static int positionFor(Symbol sym, JCTree tree)(Code)
Find the position for reporting an error about a symbol, where that symbol is defined somewhere in the given tree.



referencedStatement
public static JCTree referencedStatement(JCLabeledStatement tree)(Code)
Return the statement referenced by a label. If the label refers to a loop or switch, return that switch otherwise return the labelled statement itself



scopeFor
public static Env<AttrContext> scopeFor(JCTree node, JCCompilationUnit unit)(Code)



scopeFor
public static Env<AttrContext> scopeFor(List<JCTree> path)(Code)



setSymbol
public static void setSymbol(JCTree tree, Symbol sym)(Code)
If this tree is an identifier or a field, set its symbol, otherwise skip.



skipParens
public static JCExpression skipParens(JCExpression tree)(Code)
Skip parens and return the enclosed expression



skipParens
public static JCTree skipParens(JCTree tree)(Code)
Skip parens and return the enclosed expression



symbol
public static Symbol symbol(JCTree tree)(Code)
If this tree is an identifier or a field, return its symbol, otherwise return null.



symbolFor
public static Symbol symbolFor(JCTree node)(Code)



tagToKind
static Tree.Kind tagToKind(int tag)(Code)



types
public static List<Type> types(List<? extends JCTree> trees)(Code)
Return the types of a list of trees.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.