| 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.
|
Method Summary | |
public void | addEntryMethod(JMethod entryPoint) | public JExpressionStatement | createAssignmentStmt(SourceInfo info, JExpression lhs, JExpression rhs) Helper to create an assignment, used to initalize fields, etc. | public JClassType | createClass(SourceInfo info, char[][] name, boolean isAbstract, boolean isFinal) | public JEnumType | createEnum(SourceInfo info, char[][] name) | public JField | createEnumField(SourceInfo info, char[] name, JEnumType enclosingType, JClassType type, int ordinal) | public JField | createField(SourceInfo info, char[] name, JReferenceType enclosingType, JType type, boolean isStatic, boolean isFinal, boolean hasInitializer) | public JInterfaceType | createInterface(SourceInfo info, char[][] name) | public JLocal | createLocal(SourceInfo info, char[] name, JType type, boolean isFinal, JMethodBody enclosingMethodBody) | public JMethod | createMethod(SourceInfo info, char[] name, JReferenceType enclosingType, JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, boolean isPrivate, boolean isNative) | public JParameter | createParameter(SourceInfo info, char[] name, JType type, boolean isFinal, boolean isThis, JMethod enclosingMethod) | public JReferenceType | generalizeTypes(Collection<JReferenceType> types) | JReferenceType | generalizeTypes(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 JThisRef | getExprThisRef(SourceInfo info, JClassType enclosingType) | public JReferenceType | getFromTypeMap(String qualifiedBinaryOrSourceName) | public JField | getIndexedField(String string) | public JMethod | getIndexedMethod(String string) | public JReferenceType | getIndexedType(String string) | public JClassType | getJavaScriptObject() | public List<JsonObject> | getJsonTypeTable() | public JAbsentArrayDimension | getLiteralAbsentArrayDimension() | public JBooleanLiteral | getLiteralBoolean(boolean z) | public JCharLiteral | getLiteralChar(char c) | public JClassLiteral | getLiteralClass(JType type) | public JClassSeed | getLiteralClassSeed(JClassType type) | public JDoubleLiteral | getLiteralDouble(double d) | public JFloatLiteral | getLiteralFloat(float f) | public JIntLiteral | getLiteralInt(int i) | public JLongLiteral | getLiteralLong(long l) | public JNullLiteral | getLiteralNull() | public JStringLiteral | getLiteralString(char[] s) | public JStringLiteral | getLiteralString(String s) | public JField | getNullField() | public JMethod | getNullMethod() | public int | getQueryId(JReferenceType elementType) | public JMethod | getRebindCreateMethod() | public JMethod | getStaticImpl(JMethod method) | public JArrayType | getTypeArray(JType leafType, int dimensions) | public int | getTypeId(JClassType classType) | public JClassType | getTypeJavaLangClass() | public JClassType | getTypeJavaLangEnum() | public JClassType | getTypeJavaLangObject() | public JClassType | getTypeJavaLangString() | public JNullType | getTypeNull() | public JPrimitiveType | getTypePrimitiveBoolean() | public JPrimitiveType | getTypePrimitiveByte() | public JPrimitiveType | getTypePrimitiveChar() | public JPrimitiveType | getTypePrimitiveDouble() | public JPrimitiveType | getTypePrimitiveFloat() | public JPrimitiveType | getTypePrimitiveInt() | public JPrimitiveType | getTypePrimitiveLong() | public JPrimitiveType | getTypePrimitiveShort() | public JType | getTypeVoid() | public void | initTypeInfo(List<JClassType> classes, List<JsonObject> jsonObjects) | public boolean | isClinit(JMethod method) | public boolean | isJavaScriptObject(JType type) | public boolean | isStaticImpl(JMethod method) | public static boolean | methodsDoMatch(JMethod method1, JMethod method2) | public void | putIntoTypeMap(String qualifiedBinaryName, JReferenceType type) | public void | putStaticImpl(JMethod method, JMethod staticImpl) | public JClassType | rebind(JType type) | public void | recordQueryIds(Map<JReferenceType, Integer> queryIds) | public JMethod | staticImplFor(JMethod method) If method is a static impl method, returns the instance
method that method is the implementation of. | public JReferenceType | strongerType(JReferenceType type1, JReferenceType type2) | public void | traverse(JVisitor visitor, Context ctx) |
addEntryMethod | public void addEntryMethod(JMethod entryPoint)(Code) | | |
createMethod | public JMethod createMethod(SourceInfo info, char[] name, JReferenceType enclosingType, JType returnType, boolean isAbstract, boolean isStatic, boolean isFinal, boolean isPrivate, boolean isNative)(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.
|
getRebindCreateMethod | public JMethod getRebindCreateMethod()(Code) | | |
isJavaScriptObject | public boolean isJavaScriptObject(JType type)(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 .
|
|
|