Package | Description |
---|---|
com.google.gwt.dev.javac | |
com.google.gwt.dev.javac.asm | |
com.google.gwt.dev.javac.typemodel |
Type-introspection support classes used by generators.
|
Modifier and Type | Method and Description |
---|---|
static JClassType |
JavaSourceParser.getTopmostType(JClassType type) |
Modifier and Type | Method and Description |
---|---|
void |
Resolver.addImplementedInterface(JRealClassType type,
JClassType intf) |
void |
JavaSourceParser.addSourceForType(JClassType topType,
Resource source)
Add a source file associated with the outermost enclosing class.
|
void |
Resolver.addThrows(JAbstractMethod method,
JClassType exception) |
static JClassType |
JavaSourceParser.getTopmostType(JClassType type) |
JMethod |
Resolver.newMethod(JClassType type,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
JTypeParameter[] typeParams) |
void |
TypeParameterLookup.pushEnclosingScopes(JClassType type) |
void |
Resolver.setSuperClass(JRealClassType type,
JClassType superType) |
Constructor and Description |
---|
ResolveTypeSignature(Resolver resolver,
TreeLogger logger,
JType[] returnTypeRef,
TypeParameterLookup lookup,
JClassType enclosingClass)
Resolve a parameterized type.
|
ResolveTypeSignature(Resolver resovler,
TreeLogger logger,
JType[] returnTypeRef,
TypeParameterLookup lookup,
JClassType enclosingClass,
char wildcardMatch) |
Modifier and Type | Class and Description |
---|---|
class |
JAnnotationType
Type representing an annotation type.
|
class |
JArrayType
Type representing a Java array.
|
class |
JEnumType
Type representing a Java enumerated type.
|
class |
JGenericType
Type declaration that has type parameters.
|
class |
JParameterizedType
Represents a parameterized type in a declaration.
|
class |
JRawType
Represents a raw type; that is a generic type with no type arguments.
|
class |
JRealClassType
Type representing a Java class or interface type that a user would declare.
|
class |
JTypeParameter
Represents one of the type parameters in a generic type.
|
class |
JWildcardType
Represents a wildcard type argument to a parameterized type.
|
Modifier and Type | Method and Description |
---|---|
JClassType |
JRealClassType.findNestedType(String typeName) |
JClassType |
JRawType.findNestedType(String typeName) |
JClassType |
JParameterizedType.findNestedType(String typeName) |
abstract JClassType |
JClassType.findNestedType(String typeName) |
JClassType |
JArrayType.findNestedType(String typeName) |
protected JClassType |
JRealClassType.findNestedTypeImpl(String[] typeName,
int index) |
protected JClassType |
JParameterizedType.findNestedTypeImpl(String[] typeName,
int index) |
JClassType |
TypeOracle.findType(String name)
Finds a type (even nested ones) given its fully-qualified name.
|
JClassType |
LibraryTypeOracle.findType(String typeSourceName) |
JClassType |
JPackage.findType(String typeName) |
JClassType |
JPackage.findType(String[] typeName) |
JClassType |
TypeOracle.findType(String pkgName,
String typeName)
Finds a type (even nested ones) given its package-relative name.
|
JClassType |
LibraryTypeOracle.findType(String pkgName,
String shortName) |
JClassType[] |
JTypeParameter.getBounds() |
JClassType |
JTypeParameter.getEnclosingType() |
JClassType |
JRealClassType.getEnclosingType() |
JClassType |
JParameterizedType.getEnclosingType() |
JClassType |
JMethod.getEnclosingType() |
JClassType |
JField.getEnclosingType() |
JClassType |
JConstructor.getEnclosingType() |
abstract JClassType |
JClassType.getEnclosingType() |
JClassType |
JArrayType.getEnclosingType() |
abstract JClassType |
JAbstractMethod.getEnclosingType()
Gets the type in which this method or constructor was declared.
|
JClassType |
JWildcardType.getErasedType() |
JClassType |
JRealClassType.getErasedType() |
JClassType |
JGenericType.getErasedType() |
abstract JClassType |
JClassType.getErasedType() |
JClassType |
JArrayType.getErasedType() |
JClassType |
JWildcardType.getFirstBound() |
JClassType |
JTypeParameter.getFirstBound() |
JClassType[] |
JRealClassType.getImplementedInterfaces() |
JClassType[] |
JRawType.getImplementedInterfaces() |
JClassType[] |
JParameterizedType.getImplementedInterfaces() |
abstract JClassType[] |
JClassType.getImplementedInterfaces() |
JClassType[] |
JArrayType.getImplementedInterfaces() |
JClassType |
TypeOracle.getJavaLangObject()
Gets a reference to the type object representing
java.lang.Object . |
JClassType |
TypeOracle.getJavaScriptObject()
Gets a reference to the type object representing
com.google.gwt.core.client.JavaScriptObject . |
JClassType[] |
JWildcardType.getLowerBounds()
Returns the lower bounds of this wildcard type.
|
JClassType |
JRealClassType.getNestedType(String typeName) |
JClassType |
JRawType.getNestedType(String typeName) |
JClassType |
JParameterizedType.getNestedType(String typeName) |
abstract JClassType |
JClassType.getNestedType(String typeName) |
JClassType |
JArrayType.getNestedType(String typeName) |
JClassType[] |
JRealClassType.getNestedTypes() |
JClassType[] |
JRawType.getNestedTypes() |
JClassType[] |
JParameterizedType.getNestedTypes() |
abstract JClassType[] |
JClassType.getNestedTypes() |
JClassType[] |
JArrayType.getNestedTypes() |
JClassType |
JParameterizedType.getRawType() |
JClassType |
TypeOracle.getSingleJsoImpl(JClassType intf)
Returns the single implementation type for an interface returned via
TypeOracle.getSingleJsoImplInterfaces() or null if no JSO
implementation is defined. |
JClassType[] |
JWildcardType.getSubtypes() |
JClassType[] |
JTypeParameter.getSubtypes() |
JClassType[] |
JRealClassType.getSubtypes() |
JClassType[] |
JRawType.getSubtypes() |
JClassType[] |
JParameterizedType.getSubtypes() |
abstract JClassType[] |
JClassType.getSubtypes()
Returns all subtypes for this type.
|
JClassType |
JWildcardType.getSuperclass() |
JClassType |
JRealClassType.getSuperclass() |
JClassType |
JRawType.getSuperclass() |
JClassType |
JParameterizedType.getSuperclass() |
abstract JClassType |
JClassType.getSuperclass() |
JClassType |
JArrayType.getSuperclass() |
JClassType[] |
JAbstractMethod.getThrows() |
JClassType |
TypeOracle.getType(String name)
Finds a type given its fully qualified name.
|
JClassType |
JPackage.getType(String typeName) |
JClassType |
TypeOracle.getType(String pkgName,
String topLevelTypeSimpleName)
Finds a type given its package-relative name.
|
JClassType[] |
JParameterizedType.getTypeArgs() |
JClassType[] |
TypeOracle.getTypes()
Gets all types, both top-level and nested.
|
JClassType[] |
JPackage.getTypes() |
JClassType |
JWildcardType.getUpperBound() |
JClassType[] |
JWildcardType.getUpperBounds()
Returns the upper bounds of this wildcard type.
|
JClassType |
JRealClassType.isClass() |
abstract JClassType |
JClassType.isClass() |
JClassType |
JArrayType.isClass() |
JClassType |
JClassType.isClassOrInterface() |
JClassType |
JRealClassType.isInterface() |
abstract JClassType |
JClassType.isInterface() |
JClassType |
JArrayType.isInterface() |
Modifier and Type | Method and Description |
---|---|
Set<JClassType> |
JClassType.getFlattenedSupertypeHierarchy()
Returns all of the superclasses and superinterfaces for a given type
including the type itself.
|
protected static Set<JClassType> |
JClassType.getFlattenedSuperTypeHierarchy(JClassType type)
Returns all of the superclasses and superinterfaces for a given type
including the type itself.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JRealClassType.acceptSubtype(JClassType me) |
protected abstract void |
JClassType.acceptSubtype(JClassType me) |
protected void |
JArrayType.acceptSubtype(JClassType me) |
protected void |
TypeOracleUpdater.addImplementedInterface(JRealClassType type,
JClassType intf) |
protected void |
JRealClassType.addNestedType(JClassType type) |
protected void |
TypeOracleUpdater.addThrows(JAbstractMethod method,
JClassType exception) |
protected static Set<JClassType> |
JClassType.getFlattenedSuperTypeHierarchy(JClassType type)
Returns all of the superclasses and superinterfaces for a given type
including the type itself.
|
protected JMethod |
TypeOracleUpdater.newMethod(JClassType type,
String name,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations,
JTypeParameter[] typeParams) |
protected void |
JRealClassType.notifySuperTypesOf(JClassType me)
Tells this type's superclasses and superinterfaces about it.
|
protected abstract void |
JClassType.notifySuperTypesOf(JClassType me)
Tells this type's superclasses and superinterfaces about it.
|
protected void |
JArrayType.notifySuperTypesOf(JClassType me) |
protected void |
JRealClassType.removeSubtype(JClassType me) |
protected abstract void |
JClassType.removeSubtype(JClassType me) |
protected void |
JArrayType.removeSubtype(JClassType me) |
void |
JTypeParameter.setBounds(JClassType[] bounds) |
protected void |
TypeOracleUpdater.setEnclosingType(JRealClassType type,
JClassType enclosingType) |
protected void |
TypeOracleUpdater.setSuperClass(JRealClassType type,
JClassType superType) |
static void |
TypeOracle.sort(JClassType[] types)
Convenience method to sort class types in a consistent way.
|
Copyright © 2016. All rights reserved.