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 |
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 |
JUnsafeTypeCoercion.getCoercionType() |
JType |
JArrayType.getElementType() |
JType |
JArrayType.getLeafType() |
JType |
JMethod.getOriginalReturnType() |
JType |
JClassLiteral.getRefType() |
JType |
JMethod.Specialization.getReturns() |
JType |
JInstanceOf.getType() |
JType |
JConditional.getType() |
JType |
JThisRef.getType() |
JType |
JVariableRef.getType() |
JType |
JPermutationDependentValue.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 |
JArrayLength.getType() |
JType |
JFloatLiteral.getType() |
JType |
JIntLiteral.getType() |
JType |
JLongLiteral.getType() |
JType |
JRunAsync.getType() |
JType |
JMethod.getType() |
JType |
JClassLiteral.getType() |
JType |
JUnsafeTypeCoercion.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 . |
abstract JType |
JType.strengthenToNonNull()
Returns a non nullable version of this type if possible.
|
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.canBeJavaScriptObject(JType type)
True if the type is a JSO or interface implemented by JSO or a JsType without
prototype.
|
boolean |
JTypeOracle.castSucceedsTrivially(JType fromType,
JType toType) |
JParameter |
JMethod.createFinalParameter(SourceInfo info,
String name,
JType type)
Adds a new final parameter to this method.
|
static JLocal |
JProgram.createLocal(SourceInfo info,
String name,
JType type,
boolean isFinal,
JMethodBody enclosingMethodBody) |
JParameter |
JMethod.createParameter(SourceInfo info,
String name,
JType type)
Adds a new parameter to this method.
|
JParameter |
JMethod.createParameter(SourceInfo info,
String name,
JType type,
boolean isFinal,
boolean isVarargs)
Adds a new parameter to this method.
|
JParameter |
JMethod.createThisParameter(SourceInfo info,
JType type)
Creates a parameter to hold the value of this in devirtualized methods.
|
void |
JVisitor.endVisit(JType x,
Context ctx) |
JField |
JProgram.getClassLiteralField(JType 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.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.isJavaLangObject(JType type) |
boolean |
JProgram.isJavaLangString(JType type) |
static boolean |
JTypeOracle.isNoOpCast(JType type) |
boolean |
JProgram.isRepresentedAsNativeJsPrimitive(JType type) |
boolean |
JTypeOracle.isSingleJsoImpl(JType type) |
boolean |
JProgram.isUntypedArrayType(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 . |
void |
JMethodCall.overrideReturnType(JType overridenReturnType)
Override the return type.
|
boolean |
JReferenceType.replaces(JType originalType) |
boolean |
JType.replaces(JType originalType)
Checks type replacement from an external type to a resolved canonical type.
|
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 |
JUnsafeTypeCoercion.resolve(JType coercionType)
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 type) |
void |
JPermutationDependentValue.setType(JType newType) |
void |
JBinaryOperation.setType(JType newType) |
void |
JVariable.setType(JType newType) |
void |
JMethod.setType(JType newType) |
T |
JTransformer.transformType(JType x) |
boolean |
JVisitor.visit(JType x,
Context ctx) |
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) |
JField(SourceInfo info,
String name,
JDeclaredType enclosingType,
JType type,
boolean isStatic,
JField.Disposition disposition,
AccessModifier access) |
JFieldRef(SourceInfo info,
JExpression instance,
JField field,
JDeclaredType enclosingType,
JType overriddenType) |
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.
|
JParameter(SourceInfo info,
String name,
JType type,
boolean isFinal) |
JRuntimeTypeReference(SourceInfo info,
JType expressionType,
JReferenceType typeReference) |
JUnsafeTypeCoercion(SourceInfo info,
JType coercionType,
JExpression expression) |
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.
|
JType |
JsonArray.getType() |
Modifier and Type | Method and Description |
---|---|
void |
JsonArray.resolve(JType arrayType)
Resolve an external references during AST stitching.
|
Constructor and Description |
---|
JsniClassLiteral(SourceInfo info,
JType type) |
JsniClassLiteral(SourceInfo info,
String ident,
JType type) |
JsonArray(SourceInfo sourceInfo,
JType arrayType,
JExpression... expressions) |
JsonArray(SourceInfo sourceInfo,
JType arrayType,
List<JExpression> expressions) |
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.
|
static String |
JjsUtils.computeSignature(String name,
List<JType> params,
JType returnType,
boolean isCtor) |
protected JLocal |
JModVisitorWithTemporaryVariableCreation.createTempLocal(SourceInfo info,
JType type,
String temporaryLocalName)
Gets a new temporary local variable name in the current method body.
|
T |
ResolveRuntimeTypeReferences.TypeMapper.get(JType type) |
JIntLiteral |
ResolveRuntimeTypeReferences.IntTypeMapper.get(JType type) |
JStringLiteral |
ResolveRuntimeTypeReferences.StringTypeMapper.get(JType type) |
JMethodCall |
ResolveRuntimeTypeReferences.ClosureUniqueIdTypeMapper.get(JType type) |
static JConstructor |
JjsUtils.getJsNativeConstructorOrNull(JType type)
Returns a native constructor of a native JsType class.
|
T |
ResolveRuntimeTypeReferences.TypeMapper.getOrCreateTypeId(JType type) |
JIntLiteral |
ResolveRuntimeTypeReferences.IntTypeMapper.getOrCreateTypeId(JType type) |
JStringLiteral |
ResolveRuntimeTypeReferences.StringTypeMapper.getOrCreateTypeId(JType type) |
JMethodCall |
ResolveRuntimeTypeReferences.ClosureUniqueIdTypeMapper.getOrCreateTypeId(JType type) |
static String |
JjsUtils.getReadableDescription(JType type)
Returns a description for a type suitable for reporting errors to the users.
|
protected void |
AbstractRestrictionChecker.logError(String format,
JType type) |
static JStatement |
JjsUtils.makeMethodEndStatement(JType returnType,
JExpression expression)
Returns the ending statement for a method based on an expression.
|
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 JStatement |
Simplifier.simplifyIfStatement(JIfStatement ifStatement,
JType methodReturnType)
Simplifies an if then else statement.
|
static TypeCategory |
TypeCategory.typeCategoryForType(JType type,
JProgram program)
Determines the type category for a specific type.
|
boolean |
ToStringGenerationVisitor.visit(JType x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
static String |
JjsUtils.computeSignature(String name,
List<JType> params,
JType returnType,
boolean isCtor) |
Copyright © 2018. All rights reserved.