Java Doc for JProgram.java in  » Ajax » GWT » com » google » gwt » dev » jjs » ast » 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 » Ajax » GWT » com.google.gwt.dev.jjs.ast 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.gwt.dev.jjs.ast.JNode
      com.google.gwt.dev.jjs.ast.JProgram

JProgram
public class JProgram extends JNode (Code)
Root for the AST representing an entire Java program.


Field Summary
final public  List<JClassType>codeGenTypes
    
final public  List<JMethod>entryMethods
    
final public  Map<String, HasEnclosingType>jsniMap
    
final public  JTypeOracletypeOracle
    

Constructor Summary
public  JProgram(TreeLogger logger, RebindOracle rebindOracle)
    

Method Summary
public  voidaddEntryMethod(JMethod entryPoint)
    
public  JExpressionStatementcreateAssignmentStmt(SourceInfo info, JExpression lhs, JExpression rhs)
     Helper to create an assignment, used to initalize fields, etc.
public  JClassTypecreateClass(SourceInfo info, char[][] name, boolean isAbstract, boolean isFinal)
    
public  JEnumTypecreateEnum(SourceInfo info, char[][] name)
    
public  JFieldcreateEnumField(SourceInfo info, char[] name, JEnumType enclosingType, JClassType type, int ordinal)
    
public  JFieldcreateField(SourceInfo info, char[] name, JReferenceType enclosingType, JType type, boolean isStatic, boolean isFinal, boolean hasInitializer)
    
public  JInterfaceTypecreateInterface(SourceInfo info, char[][] name)
    
public  JLocalcreateLocal(SourceInfo info, char[] name, JType type, boolean isFinal, JMethodBody enclosingMethodBody)
    
public  JMethodcreateMethod(SourceInfo info, char[] name, JReferenceType enclosingType, JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, boolean isPrivate, boolean isNative)
    
public  JParametercreateParameter(SourceInfo info, char[] name, JType type, boolean isFinal, boolean isThis, JMethod enclosingMethod)
    
public  JReferenceTypegeneralizeTypes(Collection<JReferenceType> types)
    
 JReferenceTypegeneralizeTypes(JReferenceType type1, JReferenceType type2)
    
public  Set<JArrayType>getAllArrayTypes()
     Returns a sorted set of array types, so the returned set can be iterated over without introducing nondeterminism.
public  List<JReferenceType>getDeclaredTypes()
    
public  JThisRefgetExprThisRef(SourceInfo info, JClassType enclosingType)
    
public  JReferenceTypegetFromTypeMap(String qualifiedBinaryOrSourceName)
    
public  JFieldgetIndexedField(String string)
    
public  JMethodgetIndexedMethod(String string)
    
public  JReferenceTypegetIndexedType(String string)
    
public  JClassTypegetJavaScriptObject()
    
public  List<JsonObject>getJsonTypeTable()
    
public  JAbsentArrayDimensiongetLiteralAbsentArrayDimension()
    
public  JBooleanLiteralgetLiteralBoolean(boolean z)
    
public  JCharLiteralgetLiteralChar(char c)
    
public  JClassLiteralgetLiteralClass(JType type)
    
public  JClassSeedgetLiteralClassSeed(JClassType type)
    
public  JDoubleLiteralgetLiteralDouble(double d)
    
public  JFloatLiteralgetLiteralFloat(float f)
    
public  JIntLiteralgetLiteralInt(int i)
    
public  JLongLiteralgetLiteralLong(long l)
    
public  JNullLiteralgetLiteralNull()
    
public  JStringLiteralgetLiteralString(char[] s)
    
public  JStringLiteralgetLiteralString(String s)
    
public  JFieldgetNullField()
    
public  JMethodgetNullMethod()
    
public  intgetQueryId(JReferenceType elementType)
    
public  JMethodgetRebindCreateMethod()
    
public  JMethodgetStaticImpl(JMethod method)
    
public  JArrayTypegetTypeArray(JType leafType, int dimensions)
    
public  intgetTypeId(JClassType classType)
    
public  JClassTypegetTypeJavaLangClass()
    
public  JClassTypegetTypeJavaLangEnum()
    
public  JClassTypegetTypeJavaLangObject()
    
public  JClassTypegetTypeJavaLangString()
    
public  JNullTypegetTypeNull()
    
public  JPrimitiveTypegetTypePrimitiveBoolean()
    
public  JPrimitiveTypegetTypePrimitiveByte()
    
public  JPrimitiveTypegetTypePrimitiveChar()
    
public  JPrimitiveTypegetTypePrimitiveDouble()
    
public  JPrimitiveTypegetTypePrimitiveFloat()
    
public  JPrimitiveTypegetTypePrimitiveInt()
    
public  JPrimitiveTypegetTypePrimitiveLong()
    
public  JPrimitiveTypegetTypePrimitiveShort()
    
public  JTypegetTypeVoid()
    
public  voidinitTypeInfo(List<JClassType> classes, List<JsonObject> jsonObjects)
    
public  booleanisClinit(JMethod method)
    
public  booleanisJavaScriptObject(JType type)
    
public  booleanisStaticImpl(JMethod method)
    
public static  booleanmethodsDoMatch(JMethod method1, JMethod method2)
    
public  voidputIntoTypeMap(String qualifiedBinaryName, JReferenceType type)
    
public  voidputStaticImpl(JMethod method, JMethod staticImpl)
    
public  JClassTyperebind(JType type)
    
public  voidrecordQueryIds(Map<JReferenceType, Integer> queryIds)
    
public  JMethodstaticImplFor(JMethod method)
     If method is a static impl method, returns the instance method that method is the implementation of.
public  JReferenceTypestrongerType(JReferenceType type1, JReferenceType type2)
    
public  voidtraverse(JVisitor visitor, Context ctx)
    

Field Detail
codeGenTypes
final public List<JClassType> codeGenTypes(Code)



entryMethods
final public List<JMethod> entryMethods(Code)



jsniMap
final public Map<String, HasEnclosingType> jsniMap(Code)



typeOracle
final public JTypeOracle typeOracle(Code)




Constructor Detail
JProgram
public JProgram(TreeLogger logger, RebindOracle rebindOracle)(Code)




Method Detail
addEntryMethod
public void addEntryMethod(JMethod entryPoint)(Code)



createAssignmentStmt
public JExpressionStatement createAssignmentStmt(SourceInfo info, JExpression lhs, JExpression rhs)(Code)
Helper to create an assignment, used to initalize fields, etc.



createClass
public JClassType createClass(SourceInfo info, char[][] name, boolean isAbstract, boolean isFinal)(Code)



createEnum
public JEnumType createEnum(SourceInfo info, char[][] name)(Code)



createEnumField
public JField createEnumField(SourceInfo info, char[] name, JEnumType enclosingType, JClassType type, int ordinal)(Code)



createField
public JField createField(SourceInfo info, char[] name, JReferenceType enclosingType, JType type, boolean isStatic, boolean isFinal, boolean hasInitializer)(Code)



createInterface
public JInterfaceType createInterface(SourceInfo info, char[][] name)(Code)



createLocal
public JLocal createLocal(SourceInfo info, char[] name, JType type, boolean isFinal, JMethodBody enclosingMethodBody)(Code)



createMethod
public JMethod createMethod(SourceInfo info, char[] name, JReferenceType enclosingType, JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, boolean isPrivate, boolean isNative)(Code)



createParameter
public JParameter createParameter(SourceInfo info, char[] name, JType type, boolean isFinal, boolean isThis, JMethod enclosingMethod)(Code)



generalizeTypes
public JReferenceType generalizeTypes(Collection<JReferenceType> types)(Code)



generalizeTypes
JReferenceType generalizeTypes(JReferenceType type1, JReferenceType type2)(Code)



getAllArrayTypes
public Set<JArrayType> getAllArrayTypes()(Code)
Returns a sorted set of array types, so the returned set can be iterated over without introducing nondeterminism.



getDeclaredTypes
public List<JReferenceType> getDeclaredTypes()(Code)



getExprThisRef
public JThisRef getExprThisRef(SourceInfo info, JClassType enclosingType)(Code)



getFromTypeMap
public JReferenceType getFromTypeMap(String qualifiedBinaryOrSourceName)(Code)



getIndexedField
public JField getIndexedField(String string)(Code)



getIndexedMethod
public JMethod getIndexedMethod(String string)(Code)



getIndexedType
public JReferenceType getIndexedType(String string)(Code)



getJavaScriptObject
public JClassType getJavaScriptObject()(Code)



getJsonTypeTable
public List<JsonObject> getJsonTypeTable()(Code)



getLiteralAbsentArrayDimension
public JAbsentArrayDimension getLiteralAbsentArrayDimension()(Code)



getLiteralBoolean
public JBooleanLiteral getLiteralBoolean(boolean z)(Code)



getLiteralChar
public JCharLiteral getLiteralChar(char c)(Code)



getLiteralClass
public JClassLiteral getLiteralClass(JType type)(Code)



getLiteralClassSeed
public JClassSeed getLiteralClassSeed(JClassType type)(Code)



getLiteralDouble
public JDoubleLiteral getLiteralDouble(double d)(Code)



getLiteralFloat
public JFloatLiteral getLiteralFloat(float f)(Code)



getLiteralInt
public JIntLiteral getLiteralInt(int i)(Code)



getLiteralLong
public JLongLiteral getLiteralLong(long l)(Code)



getLiteralNull
public JNullLiteral getLiteralNull()(Code)



getLiteralString
public JStringLiteral getLiteralString(char[] s)(Code)



getLiteralString
public JStringLiteral getLiteralString(String s)(Code)



getNullField
public JField getNullField()(Code)



getNullMethod
public JMethod getNullMethod()(Code)



getQueryId
public int getQueryId(JReferenceType elementType)(Code)



getRebindCreateMethod
public JMethod getRebindCreateMethod()(Code)



getStaticImpl
public JMethod getStaticImpl(JMethod method)(Code)



getTypeArray
public JArrayType getTypeArray(JType leafType, int dimensions)(Code)



getTypeId
public int getTypeId(JClassType classType)(Code)



getTypeJavaLangClass
public JClassType getTypeJavaLangClass()(Code)



getTypeJavaLangEnum
public JClassType getTypeJavaLangEnum()(Code)



getTypeJavaLangObject
public JClassType getTypeJavaLangObject()(Code)



getTypeJavaLangString
public JClassType getTypeJavaLangString()(Code)



getTypeNull
public JNullType getTypeNull()(Code)



getTypePrimitiveBoolean
public JPrimitiveType getTypePrimitiveBoolean()(Code)



getTypePrimitiveByte
public JPrimitiveType getTypePrimitiveByte()(Code)



getTypePrimitiveChar
public JPrimitiveType getTypePrimitiveChar()(Code)



getTypePrimitiveDouble
public JPrimitiveType getTypePrimitiveDouble()(Code)



getTypePrimitiveFloat
public JPrimitiveType getTypePrimitiveFloat()(Code)



getTypePrimitiveInt
public JPrimitiveType getTypePrimitiveInt()(Code)



getTypePrimitiveLong
public JPrimitiveType getTypePrimitiveLong()(Code)



getTypePrimitiveShort
public JPrimitiveType getTypePrimitiveShort()(Code)



getTypeVoid
public JType getTypeVoid()(Code)



initTypeInfo
public void initTypeInfo(List<JClassType> classes, List<JsonObject> jsonObjects)(Code)



isClinit
public boolean isClinit(JMethod method)(Code)



isJavaScriptObject
public boolean isJavaScriptObject(JType type)(Code)



isStaticImpl
public boolean isStaticImpl(JMethod method)(Code)



methodsDoMatch
public static boolean methodsDoMatch(JMethod method1, JMethod method2)(Code)



putIntoTypeMap
public void putIntoTypeMap(String qualifiedBinaryName, JReferenceType type)(Code)



putStaticImpl
public void putStaticImpl(JMethod method, JMethod staticImpl)(Code)



rebind
public JClassType rebind(JType type)(Code)



recordQueryIds
public void recordQueryIds(Map<JReferenceType, Integer> queryIds)(Code)



staticImplFor
public JMethod staticImplFor(JMethod method)(Code)
If method is a static impl method, returns the instance method that method is the implementation of. Otherwise, returns null.



strongerType
public JReferenceType strongerType(JReferenceType type1, JReferenceType type2)(Code)



traverse
public void traverse(JVisitor visitor, Context ctx)(Code)



Fields inherited from com.google.gwt.dev.jjs.ast.JNode
final protected JProgram program(Code)(Java Doc)

Methods inherited from com.google.gwt.dev.jjs.ast.JNode
public SourceInfo getSourceInfo()(Code)(Java Doc)
final public String toSource()(Code)(Java Doc)
final public String toString()(Code)(Java Doc)

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.