Package | Description |
---|---|
com.google.gwt.dev.jjs.ast | |
com.google.gwt.dev.jjs.ast.js | |
com.google.gwt.dev.jjs.impl |
Modifier and Type | Class and Description |
---|---|
class |
JArrayType
Instances are shared.
|
class |
JClassType
Java class type reference expression.
|
class |
JDeclaredType
Base class for any declared type.
|
class |
JEnumType
Java enum type reference expression.
|
class |
JInterfaceType
Java interface type definition.
|
class |
JNonNullType
A type including all the values in some other type except for
null . |
class |
JNullType
Java null reference type.
|
class |
JPrimitiveType
Base class for all Java primitive types.
|
class |
JReferenceType
Base class for any reference type.
|
Modifier and Type | Field and Description |
---|---|
static com.google.gwt.thirdparty.guava.common.base.Function<JType,String> |
JTypeOracle.TYPE_TO_NAME |
Modifier and Type | Method and Description |
---|---|
JType |
JCastOperation.getCastType() |
JType |
JArrayType.getElementType() |
JType |
JArrayType.getLeafType() |
JType |
JMethod.getOriginalReturnType() |
JType |
JClassLiteral.getRefType() |
JType |
JMethod.Specialization.getReturns() |
JType |
JInstanceOf.getType() |
JType |
JConditional.getType() |
JType |
JAbsentArrayDimension.getType() |
JType |
JVariableRef.getType() |
JType |
JNumericEntry.getType() |
JType |
JRuntimeTypeReference.getType() |
JType |
JBinaryOperation.getType() |
JType |
JDoubleLiteral.getType() |
JType |
JCastOperation.getType() |
JType |
JCharLiteral.getType() |
JType |
JArrayRef.getType() |
JType |
JVariable.getType() |
JType |
JMethodCall.getType() |
JType |
HasType.getType()
Returns the type of this expression.
|
JType |
JUnaryOperation.getType() |
JType |
JNullLiteral.getType() |
JType |
JCastMap.getType() |
JType |
JBooleanLiteral.getType() |
JType |
JFieldRef.getType() |
JType |
JGwtCreate.getType() |
JType |
JArrayLength.getType() |
JType |
JFloatLiteral.getType() |
JType |
JIntLiteral.getType() |
JType |
JLongLiteral.getType() |
JType |
JRunAsync.getType() |
JType |
JMethod.getType() |
JType |
JClassLiteral.getType() |
JType |
JProgram.getTypeByClassLiteralField(JField field) |
JType |
JProgram.getTypeFromJsniRef(String className)
Returns the JType corresponding to a JSNI type reference.
|
JType |
JType.getUnderlyingType()
If this type is a non-null type, returns the underlying (original) type.
|
JType |
JProgram.normalizeJsoType(JType type)
If the type is a JSO or an array of JSOs it returns cggcc.JavaScriptObject or an array of
cggcc.JavaScriptObject respectively; otherwise returns
type . |
Modifier and Type | Method and Description |
---|---|
List<JType> |
JMethod.getOriginalParamTypes() |
List<JType> |
JMethod.Specialization.getParams() |
Collection<JType> |
JProgram.getSubclasses(JType type) |
List<JType> |
JTryStatement.CatchClause.getTypes() |
Modifier and Type | Method and Description |
---|---|
boolean |
JTypeOracle.canBeInstantiatedInJavascript(JType type)
True if the type is a JSO or interface implemented by a JSO, or a JsType.
|
boolean |
JTypeOracle.canBeJavaScriptObject(JType type)
True if the type is a JSO or interface implemented by JSO or a JsType without
prototype.
|
boolean |
JTypeOracle.canCrossCastLikeJso(JType type)
True if the type is a JSO or interface implemented by JSO or a JsType without prototype.
|
boolean |
JTypeOracle.canTriviallyCast(JType type,
JType qType) |
static JParameter |
JParameter.create(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
static JLocal |
JProgram.createLocal(SourceInfo info,
String name,
JType type,
boolean isFinal,
JMethodBody enclosingMethodBody) |
static JParameter |
JProgram.createParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
void |
JVisitor.endVisit(JType x,
Context ctx) |
JField |
JProgram.getClassLiteralField(JType type) |
JDeclaredType |
JTypeOracle.getNearestJsType(JType type,
boolean mustHavePrototype)
Get the nearest JS type.
|
JArrayType |
JProgram.getOrCreateArrayType(JType leafType,
int dimensions) |
JArrayType |
ArrayTypeCreator.getOrCreateArrayType(JType leafType,
int dimensions) |
Collection<JType> |
JProgram.getSubclasses(JType type) |
JArrayType |
JProgram.getTypeArray(JType elementType) |
boolean |
JTypeOracle.hasLiveImplementors(JType type) |
boolean |
JTypeOracle.isDualJsoInterface(JType maybeDualImpl) |
boolean |
JTypeOracle.isEffectivelyJavaScriptObject(JType type)
True if either a JSO, or is an interface that is ONLY implemented by a JSO.
|
boolean |
JProgram.isJavaLangString(JType type) |
boolean |
JTypeOracle.isJavaScriptObject(JType type) |
boolean |
JTypeOracle.isJsType(JType type)
Whether the type is a JS interface (does not check supertypes).
|
boolean |
JTypeOracle.isOrExtendsJsType(JType type,
boolean mustHavePrototype)
Whether the type or any supertypes is a JS type, optionally, only return true if
one of the types has a js prototype.
|
boolean |
JTypeOracle.isSingleJsoImpl(JType type) |
JType |
JProgram.normalizeJsoType(JType type)
If the type is a JSO or an array of JSOs it returns cggcc.JavaScriptObject or an array of
cggcc.JavaScriptObject respectively; otherwise returns
type . |
boolean |
JReferenceType.replaces(JType originalType) |
boolean |
JArrayType.replaces(JType originalType) |
void |
JCastOperation.resolve(JType newType)
Resolve an external reference during AST stitching.
|
void |
JClassLiteral.resolve(JType newType)
Resolve an external reference during AST stitching.
|
void |
JMethod.resolve(JType originalReturnType,
List<JType> originalParamTypes,
JType returnType,
List<JClassType> thrownExceptions)
Resolve an external references during AST stitching.
|
void |
JMethod.Specialization.resolve(List<JType> resolvedParams,
JType resolvedReturn,
JMethod targetMethod) |
void |
JMethod.setOriginalTypes(JType returnType,
List<JType> paramTypes) |
void |
JMethod.setSpecialization(List<JType> paramTypes,
JType returnsType,
String targetMethod) |
void |
JConditional.setType(JType newType) |
void |
JBinaryOperation.setType(JType newType) |
void |
JVariable.setType(JType newType) |
void |
JGwtCreate.setType(JType newType) |
void |
JMethod.setType(JType newType) |
boolean |
JVisitor.visit(JType x,
Context ctx) |
boolean |
JTypeOracle.willCrossCastLikeJso(JType type)
True if the type is a JSO or JSO Interface that is not dually implemented, or is a JsType
without the prototype that is not implemented by a Java class.
|
Modifier and Type | Method and Description |
---|---|
void |
JProgram.recordClassLiteralFields(Map<JType,JField> classLiteralFields) |
void |
JMethod.resolve(JType originalReturnType,
List<JType> originalParamTypes,
JType returnType,
List<JClassType> thrownExceptions)
Resolve an external references during AST stitching.
|
void |
JMethod.Specialization.resolve(List<JType> resolvedParams,
JType resolvedReturn,
JMethod targetMethod) |
void |
JMethod.setOriginalTypes(JType returnType,
List<JType> paramTypes) |
void |
JMethod.setSpecialization(List<JType> paramTypes,
JType returnsType,
String targetMethod) |
Constructor and Description |
---|
JArrayType(JType elementType) |
JBinaryOperation(SourceInfo info,
JType type,
JBinaryOperator op,
JExpression lhs,
JExpression rhs) |
JCastOperation(SourceInfo info,
JType castType,
JExpression expr) |
JClassLiteral(SourceInfo sourceInfo,
JType type) |
JConditional(SourceInfo info,
JType type,
JExpression ifTest,
JExpression thenExpr,
JExpression elseExpr) |
JField(SourceInfo info,
String name,
JDeclaredType enclosingType,
JType type,
boolean isStatic,
JField.Disposition disposition) |
JFieldRef(SourceInfo info,
JExpression instance,
JField field,
JDeclaredType enclosingType,
JType overriddenType) |
JGwtCreate(SourceInfo info,
String sourceType,
List<String> resultTypes,
JType type,
ArrayList<JExpression> instantiationExpressions)
Constructor used for cloning an existing node.
|
JMethod(SourceInfo info,
String name,
JDeclaredType enclosingType,
JType returnType,
boolean isAbstract,
boolean isStatic,
boolean isFinal,
AccessModifier access)
These are only supposed to be constructed by JProgram.
|
JMethodCall(SourceInfo info,
JExpression instance,
JMethod method,
JType overrideReturnType,
JExpression... args)
Create a method call whose type is overridden to the specified type,
ignoring the return type of the target method.
|
JParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isThis,
JMethod enclosingMethod) |
JRuntimeTypeReference(SourceInfo info,
JType expressionType,
JReferenceType typeReference) |
Specialization(List<JType> params,
JType returns,
String target) |
Constructor and Description |
---|
CatchClause(List<JType> catchTypes,
JLocalRef arg,
JBlock block) |
Specialization(List<JType> params,
JType returns,
String target) |
Modifier and Type | Method and Description |
---|---|
JType |
JMultiExpression.getType()
Returns the multi expression type, i.e.
|
Constructor and Description |
---|
JsniClassLiteral(SourceInfo info,
JType type) |
JsniClassLiteral(SourceInfo info,
String ident,
JType type) |
Modifier and Type | Method and Description |
---|---|
JType |
ReferenceMapper.get(org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding) |
protected abstract JType |
TypeRemapper.remap(JType type)
Override to return a possibly-different type.
|
Modifier and Type | Method and Description |
---|---|
static JExpression |
Simplifier.cast(JType type,
JExpression exp)
Simplify cast operations.
|
protected JLocal |
JModVisitorWithTemporaryVariableCreation.createTempLocal(SourceInfo info,
JType type) |
T |
ResolveRuntimeTypeReferences.TypeMapper.get(JType type) |
Integer |
ResolveRuntimeTypeReferences.IntTypeMapper.get(JType type) |
String |
ResolveRuntimeTypeReferences.StringTypeMapper.get(JType type) |
T |
ResolveRuntimeTypeReferences.TypeMapper.getOrCreateTypeId(JType type) |
Integer |
ResolveRuntimeTypeReferences.IntTypeMapper.getOrCreateTypeId(JType type) |
String |
ResolveRuntimeTypeReferences.StringTypeMapper.getOrCreateTypeId(JType type) |
static boolean |
Devirtualizer.isGetClassDevirtualized(JProgram program,
JType type)
Returns true if getClass() is devirtualized for
type ; used in
ReplaceGetClassOverrides to avoid replacing getClass() methods that need
trampolines. |
protected String |
CompoundAssignmentNormalizer.newTemporaryLocalName(SourceInfo info,
JType type,
JMethodBody methodBody)
Gets a new temporary local variable name in
methodBody . |
protected abstract String |
JModVisitorWithTemporaryVariableCreation.newTemporaryLocalName(SourceInfo info,
JType type,
JMethodBody methodBody) |
protected void |
ToStringGenerationVisitor.printTypeName(JType type) |
protected void |
ImplicitUpcastAnalyzer.processImplicitUpcast(JType fromType,
JType destType,
SourceInfo info)
An overriding method will be called for each detected implicit upcast.
|
protected abstract JType |
TypeRemapper.remap(JType type)
Override to return a possibly-different type.
|
static TypeCategory |
TypeCategory.typeCategoryForType(JType type,
JProgram program)
Determines the type category for a specific type.
|
Copyright © 2018. All rights reserved.