All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
addEntryMethod(JMethod entryPoint) |
void |
addType(JDeclaredType type) |
static JExpressionStatement |
createAssignmentStmt(SourceInfo info,
JExpression lhs,
JExpression rhs)
Helper to create an assignment, used to initalize fields, etc.
|
static JLocal |
createLocal(SourceInfo info,
String name,
JType type,
boolean isFinal,
JMethodBody enclosingMethodBody) |
static JParameter |
createParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
static List<JDeclaredType> |
deserializeTypes(ObjectInputStream stream) |
JReferenceType |
generalizeTypes(Collection<? extends JReferenceType> types)
Return a minimal upper bound of a set of types.
|
JReferenceType |
generalizeTypes(JReferenceType type1,
JReferenceType type2)
Return the least upper bound of two types.
|
List<JArrayType> |
getAllArrayTypes()
Returns a sorted list of array types, so the returned set can be iterated
over without introducing nondeterminism.
|
JsCastMap |
getCastMap(JReferenceType referenceType) |
JField |
getClassLiteralField(JType type) |
String |
getClassLiteralName(JType type) |
int |
getCommonAncestorFragmentId(int thisFragmentId,
int thatFragmentId) |
List<JDeclaredType> |
getDeclaredTypes() |
List<JMethod> |
getEntryMethods() |
int |
getFragmentCount() |
FragmentPartitioningResult |
getFragmentPartitioningResult() |
JDeclaredType |
getFromTypeMap(String qualifiedBinaryOrSourceName) |
static String |
getFullName(JMethod method) |
JField |
getIndexedField(String string) |
Collection<JField> |
getIndexedFields() |
JMethod |
getIndexedMethod(String string) |
Collection<JMethod> |
getIndexedMethods() |
JDeclaredType |
getIndexedType(String string) |
LinkedHashSet<JRunAsync> |
getInitialAsyncSequence() |
List<Integer> |
getInitialFragmentIdSequence() |
JClassType |
getJavaScriptObject() |
static String |
getJsniSig(JMethod method) |
static String |
getJsniSig(JMethod method,
boolean addReturnType) |
JBooleanLiteral |
getLiteralBoolean(boolean value) |
JCharLiteral |
getLiteralChar(char value) |
JDoubleLiteral |
getLiteralDouble(double d) |
JFloatLiteral |
getLiteralFloat(float f) |
JIntLiteral |
getLiteralInt(int value) |
JLongLiteral |
getLiteralLong(long value) |
JNullLiteral |
getLiteralNull() |
JStringLiteral |
getLiteralString(SourceInfo sourceInfo,
char[] s) |
JStringLiteral |
getLiteralString(SourceInfo sourceInfo,
String s) |
JField |
getNullField() |
JMethod |
getNullMethod() |
int |
getQueryId(JReferenceType elementType) |
List<JRunAsync> |
getRunAsyncs() |
JMethod |
getStaticImpl(JMethod method) |
JArrayType |
getTypeArray(JType elementType) |
JArrayType |
getTypeArray(JType leafType,
int dimensions) |
JClassType |
getTypeClassLiteralHolder() |
JType |
getTypeFromJsniRef(String className)
Returns the JType corresponding to a JSNI type reference.
|
JClassType |
getTypeJavaLangClass() |
JClassType |
getTypeJavaLangEnum() |
JClassType |
getTypeJavaLangObject() |
JClassType |
getTypeJavaLangString() |
JNullType |
getTypeNull() |
JPrimitiveType |
getTypePrimitiveBoolean() |
JPrimitiveType |
getTypePrimitiveByte() |
JPrimitiveType |
getTypePrimitiveChar() |
JPrimitiveType |
getTypePrimitiveDouble() |
JPrimitiveType |
getTypePrimitiveFloat() |
JPrimitiveType |
getTypePrimitiveInt() |
JPrimitiveType |
getTypePrimitiveLong() |
JPrimitiveType |
getTypePrimitiveShort() |
List<JReferenceType> |
getTypesByQueryId() |
JPrimitiveType |
getTypeVoid() |
void |
initTypeInfo(IdentityHashMap<JReferenceType,JsCastMap> instantiatedCastableTypesMap) |
static boolean |
isClinit(JMethod method) |
boolean |
isJavaLangString(JType type) |
boolean |
isJavaScriptObject(JType type) |
boolean |
isStaticImpl(JMethod method) |
static boolean |
isTracingEnabled() |
void |
putIntoTypeMap(String qualifiedBinaryName,
JDeclaredType type) |
void |
putStaticImpl(JMethod method,
JMethod staticImpl) |
void |
recordClassLiteralFields(Map<JType,JField> classLiteralFields) |
void |
recordQueryIds(Map<JReferenceType,Integer> queryIdsByType,
List<JReferenceType> typesByQueryId) |
void |
removeStaticImplMapping(JMethod staticImpl) |
static void |
serializeTypes(List<JDeclaredType> types,
ObjectOutputStream stream) |
void |
setFragmentPartitioningResult(FragmentPartitioningResult result) |
void |
setInitialAsyncSequence(LinkedHashSet<JRunAsync> initialAsyncSequence) |
void |
setInitialFragmentIdSequence(List<Integer> initialFragmentIdSequence) |
void |
setRunAsyncs(List<JRunAsync> runAsyncs) |
JMethod |
staticImplFor(JMethod method)
If method is a static impl method, returns the instance method
that method is the implementation of.
|
JReferenceType |
strongerType(JReferenceType type1,
JReferenceType type2)
Return the greatest lower bound of two types.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|