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 |
---|---|
JDeclaredType |
CompilationUnit.getTypeByName(String typeName)
Returns the contained type with the given name.
|
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.maybeSetJsNamespace(JDeclaredType type,
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration x) |
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 |
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 |
JNewInstance.getEnclosingType() |
JDeclaredType |
HasEnclosingType.getEnclosingType() |
JDeclaredType |
JProgram.getFromTypeMap(String qualifiedBinaryOrSourceName) |
JDeclaredType |
JProgram.getIndexedType(String string) |
JDeclaredType |
JTypeOracle.getNearestJsType(JType type,
boolean mustHavePrototype)
Get the nearest JS type.
|
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. |
static JExpression |
JGwtCreate.createInstantiationExpression(SourceInfo info,
JClassType classType,
JDeclaredType enclosingType) |
void |
JVisitor.endVisit(JDeclaredType x,
Context ctx) |
boolean |
JTypeOracle.isInstantiatedType(JDeclaredType type)
Determine whether a type is instantiated.
|
boolean |
JProgram.isJsTypePrototype(JDeclaredType classType)
Returns whether a class is a synthetic Prototype class generated by APT or user.
|
boolean |
JProgram.isReferenceOnly(JDeclaredType type) |
static JInterfaceType |
JProgram.maybeGetJsTypeFromPrototype(JDeclaredType classType) |
void |
JProgram.putIntoTypeMap(String qualifiedBinaryName,
JDeclaredType type) |
void |
JProgram.removeReferenceOnlyType(JDeclaredType type) |
void |
JDeclaredType.setEnclosingType(JDeclaredType enclosingType)
Sets the type which encloses this types.
|
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) |
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.
|
JNewInstance(SourceInfo info,
JConstructor ctor,
JDeclaredType enclosingType) |
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) |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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 |
TypeRefDepsChecker.visit(JDeclaredType x,
Context ctx) |
boolean |
TypeReferencesRecorder.visit(JDeclaredType x,
Context ctx) |
Modifier and Type | Method and Description |
---|---|
static void |
ReboundTypeRecorder.exec(JNode node,
Set<JDeclaredType> reboundTypes)
Walks the AST from the provided node and records seen rebound types into the provided
reboundTypes set.
|
Constructor and Description |
---|
JavaToJavaScriptMapImpl(List<JDeclaredType> types,
Map<HasName,JsName> names,
Map<JsStatement,JClassType> typeForStatement,
Map<JsStatement,JMethod> vtableInitForMethod) |
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.