Modifier and Type | Method and Description |
---|---|
JDeclaredType |
ClassDescriptor.getTypeReference() |
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
DependencyGraphRecorder.classDescriptorFrom(JDeclaredType classType)
Returns a class descriptor from a JDeclaredType.
|
static ClassDescriptor |
ClassDescriptor.from(JDeclaredType classType)
Creates a class descriptor from a JDeclaredType.
|
Modifier and Type | Method and Description |
---|---|
StandardClassMember |
MemberFactory.get(JDeclaredType type) |
Constructor and Description |
---|
StandardClassMember(MemberFactory factory,
JDeclaredType type)
Constructed by
MemberFactory#get(JReferenceType) . |
Modifier and Type | Method and Description |
---|---|
List<JDeclaredType> |
CompilationUnit.getTypes()
Returns a copy of the GWT AST types in this unit.
Callers are free to modify the returned type instances without worrying about modifying the original CompilationUnit instances. |
Modifier and Type | Method and Description |
---|---|
static void |
JsInteropUtil.maybeSetJsInteropProperties(JDeclaredType type,
org.eclipse.jdt.internal.compiler.ast.Annotation[] annotations) |
static void |
JdtUtil.setClassDispositionFromBinding(org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding binding,
JDeclaredType type) |
Modifier and Type | Method and Description |
---|---|
protected abstract CompilationUnit |
CompilationUnitBuilder.makeUnit(List<CompiledClass> compiledClasses,
List<JDeclaredType> types,
com.google.gwt.dev.javac.Dependencies dependencies,
Collection<? extends JsniMethod> jsniMethods,
MethodArgNamesLookup methodArgs,
org.eclipse.jdt.core.compiler.CategorizedProblem[] errors) |
CompilationUnitBuilder |
CompilationUnitBuilder.setTypes(List<JDeclaredType> types) |
Modifier and Type | Method and Description |
---|---|
JDeclaredType |
Correlation.getType() |
Modifier and Type | Method and Description |
---|---|
abstract Correlation |
CorrelationFactory.by(JDeclaredType type) |
Correlation |
CorrelationFactory.DummyCorrelationFactory.by(JDeclaredType type) |
Correlation |
CorrelationFactory.RealCorrelationFactory.by(JDeclaredType type) |
Modifier and Type | Class and Description |
---|---|
class |
JClassType
Java class type reference expression.
|
class |
JEnumType
Java enum type reference expression.
|
class |
JInterfaceType
Java interface type definition.
|
Modifier and Type | Method and Description |
---|---|
JDeclaredType |
JDeclaredType.findSubtype(Iterable<JDeclaredType> types)
Determines whether a subclass of this type is in the collection
types . |
JDeclaredType |
JThisRef.getClassType() |
JDeclaredType |
JDeclaredType.getClinitTarget()
Returns the class that must be initialized to use this class.
|
JDeclaredType |
JField.getEnclosingType() |
JDeclaredType |
JDeclaredType.getEnclosingType()
Returns the type which encloses this type.
|
JDeclaredType |
JFieldRef.getEnclosingType() |
JDeclaredType |
JMethod.getEnclosingType() |
JDeclaredType |
HasEnclosingType.getEnclosingType() |
JDeclaredType |
JProgram.getFromTypeMap(String qualifiedBinaryOrSourceName) |
JDeclaredType |
JProgram.getIndexedType(String string) |
Modifier and Type | Method and Description |
---|---|
static List<JDeclaredType> |
JProgram.deserializeTypes(ObjectInputStream stream) |
List<JDeclaredType> |
JProgram.getDeclaredTypes() |
Collection<JDeclaredType> |
JProgram.getIndexedTypes() |
List<JDeclaredType> |
JProgram.getModuleDeclaredTypes() |
Modifier and Type | Method and Description |
---|---|
void |
JProgram.addReferenceOnlyType(JDeclaredType type) |
void |
JProgram.addType(JDeclaredType type) |
boolean |
JDeclaredType.checkClinitTo(JDeclaredType targetType)
Returns
true if a static field access of
targetType from within this type should generate a clinit
call. |
void |
JVisitor.endVisit(JDeclaredType x,
Context ctx) |
boolean |
JTypeOracle.isInstantiatedType(JDeclaredType type)
Determine whether a type is instantiated.
|
boolean |
JProgram.isReferenceOnly(JDeclaredType type) |
boolean |
JTypeOracle.isSubType(JDeclaredType type,
JDeclaredType possibleSubType) |
void |
JProgram.putIntoTypeMap(String qualifiedBinaryName,
JDeclaredType type) |
void |
JProgram.removeReferenceOnlyType(JDeclaredType type) |
void |
JDeclaredType.resolve(List<JInterfaceType> resolvedInterfaces,
JDeclaredType pkgInfo)
Resolves external references during AST stitching.
|
void |
JDeclaredType.setEnclosingType(JDeclaredType enclosingType)
Sets the type which encloses this types.
|
T |
JTransformer.transformDeclaredType(JDeclaredType x) |
boolean |
JVisitor.visit(JDeclaredType x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
JTypeOracle.computeBeforeAST(JTypeOracle.StandardTypes standardTypes,
Collection<JDeclaredType> declaredTypes,
Collection<JDeclaredType> moduleDeclaredTypes,
Collection<String> deletedTypeNames) |
void |
JTypeOracle.computeBeforeAST(JTypeOracle.StandardTypes standardTypes,
Collection<JDeclaredType> declaredTypes,
Collection<JDeclaredType> moduleDeclaredTypes,
Collection<String> deletedTypeNames) |
void |
JTypeOracle.computeBeforeAST(JTypeOracle.StandardTypes standardTypes,
Collection<JDeclaredType> declaredTypes,
List<JDeclaredType> moduleDeclaredTypes) |
void |
JTypeOracle.computeBeforeAST(JTypeOracle.StandardTypes standardTypes,
Collection<JDeclaredType> declaredTypes,
List<JDeclaredType> moduleDeclaredTypes) |
JDeclaredType |
JDeclaredType.findSubtype(Iterable<JDeclaredType> types)
Determines whether a subclass of this type is in the collection
types . |
void |
JTypeOracle.recomputeAfterOptimizations(Collection<JDeclaredType> declaredTypes)
This method should be called after altering the types that are live in the
associated JProgram.
|
static void |
JProgram.serializeTypes(List<JDeclaredType> types,
ObjectOutputStream stream) |
Constructor and Description |
---|
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) |
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.
|
JThisRef(SourceInfo info,
JDeclaredType type) |
Constructor and Description |
---|
JsniFieldRef(SourceInfo info,
String ident,
JField field,
JDeclaredType enclosingType,
boolean isLvalue) |
Modifier and Type | Method and Description |
---|---|
JDeclaredType |
UnifyAst.findType(String typeName,
com.google.gwt.dev.jjs.impl.UnifyAst.NameBasedTypeLocator nameBasedTypeLocator) |
JDeclaredType |
JavaToJavaScriptMapImpl.typeForStatement(JsStatement statement) |
JDeclaredType |
JavaToJavaScriptMap.typeForStatement(JsStatement statement)
If
statement is used to set up the definition of some type, return
that class. |
Modifier and Type | Method and Description |
---|---|
static Set<JDeclaredType> |
JjsUtils.getSupertypes(JDeclaredType type)
Gets all the supertypes of
type . |
static List<JDeclaredType> |
GwtAstBuilder.process(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration cud,
String sourceMapPath,
Map<org.eclipse.jdt.internal.compiler.ast.MethodDeclaration,JsniMethod> jsniMethods,
Map<String,org.eclipse.jdt.internal.compiler.lookup.Binding> jsniRefs,
CompilerContext compilerContext)
Builds all the GWT AST nodes that correspond to one Java source file.
|
Modifier and Type | Method and Description |
---|---|
static void |
JjsUtils.addAllSuperTypes(JDeclaredType type,
Set<JDeclaredType> types)
Adds all the supertypes of
type to types . |
static JMethod |
JjsUtils.createForwardingMethod(JDeclaredType type,
JMethod methodToDelegateTo)
Creates a synthetic forwarding stub in
type with the same signature as
superTypeMethod that dispatchs to that method. |
static JMethod |
JjsUtils.createSyntheticAbstractStub(JDeclaredType type,
JMethod superTypeMethod)
Creates a synthetic abstract stub in
type with the same signature as
superTypeMethod . |
void |
JsInteropExportsGenerator.exportType(JDeclaredType x)
Makes sure the type is exported even there are no exported constructors for the type but is
still marked with JsType.
|
static JConstructor |
JjsUtils.getJsConstructor(JDeclaredType type)
Returns the JsConstructor for a class or null if it does not have any.
|
static JClassType |
JjsUtils.getNativeSuperClassOrNull(JDeclaredType type)
Returns the nearest native superclass of
type if any, null otherwise. |
static JConstructor |
JjsUtils.getPrimaryConstructor(JDeclaredType type)
Returns the constructor which all others delegate to if any, otherwise null.
|
static Set<JDeclaredType> |
JjsUtils.getSupertypes(JDeclaredType type)
Gets all the supertypes of
type . |
JsName |
JavaToJavaScriptMapImpl.nameForType(JDeclaredType type) |
JsName |
JavaToJavaScriptMap.nameForType(JDeclaredType type)
Return the JavaScript name corresponding to a Java type.
|
void |
ReferenceMapper.setSourceType(org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding binding,
JDeclaredType type) |
void |
ControlFlowAnalyzer.traverseFromInstantiationOf(JDeclaredType type)
Assume
type is instantiated, and find out what else will
execute as a result. |
void |
ControlFlowAnalyzer.traverseFromReferenceTo(JDeclaredType type) |
boolean |
ToStringGenerationVisitor.visit(JDeclaredType x,
Context ctx) |
boolean |
ControlFlowRecorder.visit(JDeclaredType x,
Context ctx) |
boolean |
TypeReferencesRecorder.visit(JDeclaredType x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
static void |
JjsUtils.addAllSuperTypes(JDeclaredType type,
Set<JDeclaredType> types)
Adds all the supertypes of
type to types . |
Constructor and Description |
---|
JavaToJavaScriptMapImpl(List<JDeclaredType> types,
Map<HasName,JsName> names,
Map<JsStatement,JDeclaredType> typeForStatement,
Map<JsStatement,JMethod> methodForStatement) |
JavaToJavaScriptMapImpl(List<JDeclaredType> types,
Map<HasName,JsName> names,
Map<JsStatement,JDeclaredType> typeForStatement,
Map<JsStatement,JMethod> methodForStatement) |
Modifier and Type | Method and Description |
---|---|
boolean |
NothingAlivePredicate.isLive(JDeclaredType type) |
boolean |
CfaLivenessPredicate.isLive(JDeclaredType type) |
boolean |
LivenessPredicate.isLive(JDeclaredType type)
Subclasses should return true if
type is deemed live and false otherwise. |
Copyright © 2018. All rights reserved.