Package | Description |
---|---|
com.google.gwt.core.ext.typeinfo |
Type-introspection support classes used by generators.
|
com.google.gwt.dev.javac | |
com.google.gwt.dev.javac.typemodel |
Type-introspection support classes used by generators.
|
Modifier and Type | Interface and Description |
---|---|
interface |
JAnnotationType
Type representing an annotation type.
|
interface |
JArrayType
Type representing a Java array.
|
interface |
JEnumType
Type representing a Java enumerated type.
|
interface |
JGenericType
Type declaration that has type parameters.
|
interface |
JParameterizedType
Represents a parameterized type in a declaration.
|
interface |
JRawType
Represents a raw type; that is a generic type with no type arguments.
|
interface |
JRealClassType
Type representing a Java class or interface type that a user would declare.
|
interface |
JTypeParameter
Represents one of the type parameters in a generic type.
|
interface |
JWildcardType
Represents a wildcard type argument to a parameterized type.
|
Modifier and Type | Method and Description |
---|---|
JClassType |
JClassType.findNestedType(String typeName) |
abstract JClassType |
TypeOracle.findType(String name)
Finds a class or interface given its fully-qualified name.
|
JClassType |
JPackage.findType(String typeName)
Finds a type in this package.
|
JClassType |
JPackage.findType(String[] typeName)
Deprecated.
|
abstract JClassType |
TypeOracle.findType(String pkgName,
String typeName)
Finds a type given its package-relative name.
|
JClassType |
JWildcardType.getBaseType() |
JClassType |
JTypeParameter.getBaseType() |
JClassType[] |
JTypeParameter.getBounds() |
JClassType |
JField.getEnclosingType() |
JClassType |
JClassType.getEnclosingType()
Returns the enclosing type, or null if none.
|
JClassType |
JAbstractMethod.getEnclosingType()
Gets the type in which this method or constructor was declared.
|
JClassType |
JClassType.getErasedType() |
JClassType |
JWildcardType.getFirstBound() |
JClassType |
JTypeParameter.getFirstBound() |
JClassType[] |
JClassType.getImplementedInterfaces() |
abstract JClassType |
TypeOracle.getJavaLangObject()
Gets a reference to the type object representing
java.lang.Object . |
JClassType[] |
JWildcardType.getLowerBounds()
Returns the lower bounds of this wildcard type.
|
JClassType |
JClassType.getNestedType(String typeName) |
JClassType[] |
JClassType.getNestedTypes() |
JClassType |
JParameterizedType.getRawType() |
abstract 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[] |
JClassType.getSubtypes()
Returns all subtypes of this type, recursively, not including this type.
|
JClassType |
JClassType.getSuperclass()
Returns the superclass of this type, or
null if none. |
JClassType[] |
JAbstractMethod.getThrows() |
abstract JClassType |
TypeOracle.getType(String name)
Finds a type given its fully qualified name.
|
JClassType |
JPackage.getType(String typeName)
Finds a type in this package.
|
abstract JClassType |
TypeOracle.getType(String pkgName,
String topLevelTypeSimpleName)
Finds a type given its package-relative name.
|
JClassType[] |
JParameterizedType.getTypeArgs() |
abstract JClassType[] |
TypeOracle.getTypes()
Gets all types, both top-level and nested.
|
JClassType[] |
JPackage.getTypes()
Returns all top-level types in this package.
|
JClassType |
JWildcardType.getUpperBound() |
JClassType[] |
JWildcardType.getUpperBounds()
Returns the upper bounds of this wildcard type.
|
JClassType |
JType.isClass()
Returns this instance if the erased version of this type is a class (as opposed to a primitive,
array, or interface) or
null if it is not. |
JClassType |
JPrimitiveType.isClass() |
JClassType |
JType.isClassOrInterface()
Returns this instance if the erased version of this type is a class or interface (as opposed to
a primitive or array array) or
null if it is not. |
JClassType |
JPrimitiveType.isClassOrInterface() |
JClassType |
JType.isInterface()
Returns this instance if it is an interface or
null if it is not. |
JClassType |
JPrimitiveType.isInterface() |
Modifier and Type | Method and Description |
---|---|
Set<? extends JClassType> |
JClassType.getFlattenedSupertypeHierarchy()
Returns all of the superclasses and superinterfaces for a given type
including the type itself.
|
abstract Set<? extends JClassType> |
TypeOracle.getSingleJsoImplInterfaces()
Returns an unmodifiable, live view of all interface types that are
implemented by exactly one JSO subtype.
|
Modifier and Type | Method and Description |
---|---|
abstract JParameterizedType |
TypeOracle.getParameterizedType(JGenericType genericType,
JClassType[] typeArgs)
Gets the parameterized type object that represents the combination of a
specified raw type and a set of type arguments.
|
abstract JParameterizedType |
TypeOracle.getParameterizedType(JGenericType genericType,
JClassType enclosingType,
JClassType[] typeArgs)
Gets the parameterized type object that represents the combination of a
specified raw type and a set of type arguments.
|
abstract JParameterizedType |
TypeOracle.getParameterizedType(JGenericType genericType,
JClassType enclosingType,
JClassType[] typeArgs)
Gets the parameterized type object that represents the combination of a
specified raw type and a set of type arguments.
|
abstract 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. |
abstract JWildcardType |
TypeOracle.getWildcardType(JWildcardType.BoundType boundType,
JClassType typeBound) |
boolean |
JClassType.isAssignableFrom(JClassType possibleSubtype)
|
boolean |
JClassType.isAssignableTo(JClassType possibleSupertype)
|
static void |
TypeOracle.sort(JClassType[] types)
Convenience method to sort class types in a consistent way.
|
Modifier and Type | Field and Description |
---|---|
static JClassType[] |
Shared.NO_JCLASSES |
Modifier and Type | Class and Description |
---|---|
class |
JAnnotationType
Type representing an annotation type.
|
class |
JArrayType
Type representing a Java array.
|
class |
JClassType
Type used to represent any non-primitive type.
|
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 |
---|---|
Set<? extends JClassType> |
TypeOracle.getDualJsoImplInterfaces()
Returns an unmodifiable, live view of all interface types that are
implemented by both a JSO subtype and at least one Object subtype.
|
Set<? extends JClassType> |
TypeOracle.getSingleJsoImplInterfaces()
Returns an unmodifiable, live view of all interface types that are
implemented by exactly one JSO subtype.
|
Modifier and Type | Method and Description |
---|---|
JParameterizedType |
TypeOracle.getParameterizedType(JGenericType genericType,
JClassType[] typeArgs)
Gets the parameterized type object that represents the combination of a
specified raw type and a set of type arguments.
|
JParameterizedType |
TypeOracle.getParameterizedType(JGenericType extGenericType,
JClassType extEnclosingType,
JClassType[] extTypeArgs)
Gets the parameterized type object that represents the combination of a
specified raw type and a set of type arguments.
|
JParameterizedType |
TypeOracle.getParameterizedType(JGenericType extGenericType,
JClassType extEnclosingType,
JClassType[] extTypeArgs)
Gets the parameterized type object that represents the combination of a
specified raw type and a set of type arguments.
|
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. |
JWildcardType |
TypeOracle.getWildcardType(JWildcardType.BoundType boundType,
JClassType extTypeBound) |
boolean |
JClassType.isAssignableFrom(JClassType possibleSubtype)
|
boolean |
JClassType.isAssignableTo(JClassType possibleSupertype)
|
Copyright © 2016. All rights reserved.