|
GWT 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.ext.typeinfo.JType
com.google.gwt.core.ext.typeinfo.JClassType
com.google.gwt.core.ext.typeinfo.JWildcardType
public class JWildcardType
Represents a wildcard type argument to a parameterized type.
Nested Class Summary | |
---|---|
static class |
JWildcardType.BoundType
Type of wildcard bound. |
Method Summary | ||
---|---|---|
protected void |
acceptSubtype(JClassType me)
|
|
void |
addImplementedInterface(JClassType intf)
|
|
void |
addModifierBits(int bits)
|
|
JConstructor |
findConstructor(JType[] paramTypes)
Delegating types generally cannot be constructed. |
|
JField |
findField(java.lang.String name)
Subclasses will generally need to echo modified fields. |
|
JMethod |
findMethod(java.lang.String name,
JType[] paramTypes)
Subclasses will generally need to echo modified methods. |
|
JClassType |
findNestedType(java.lang.String typeName)
|
|
|
getAnnotation(java.lang.Class<T> annotationClass)
Returns an instance of the specified annotation type if it is present on this element or null if it is not. |
|
JClassType |
getBaseType()
|
|
JWildcardType.BoundType |
getBoundType()
|
|
JConstructor |
getConstructor(JType[] paramTypes)
Delegating types generally cannot be constructed. |
|
JConstructor[] |
getConstructors()
Delegating types generally cannot be constructed. |
|
JClassType |
getEnclosingType()
|
|
JClassType |
getErasedType()
|
|
JField |
getField(java.lang.String name)
Subclasses will generally need to echo modified fields. |
|
JField[] |
getFields()
Subclasses will generally need to echo modified fields. |
|
JClassType |
getFirstBound()
|
|
JClassType[] |
getImplementedInterfaces()
|
|
JMethod[] |
getInheritableMethods()
Iterates over the most-derived declaration of each unique inheritable method available in the type hierarchy of the specified type, including those found in superclasses and superinterfaces. |
|
protected void |
getInheritableMethodsOnSuperclassesAndThisClass(java.util.Map<java.lang.String,JMethod> methodsBySignature)
|
|
protected void |
getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface(java.util.Map<java.lang.String,JMethod> methodsBySignature)
Gets the methods declared in interfaces that this type extends. |
|
java.lang.String |
getJNISignature()
|
|
JClassType[] |
getLowerBounds()
Returns the lower bounds of this wildcard type. |
|
JMethod |
getMethod(java.lang.String name,
JType[] paramTypes)
Subclasses will generally need to echo modified methods. |
|
JMethod[] |
getMethods()
Subclasses will generally need to echo modified methods. |
|
protected int |
getModifierBits()
|
|
java.lang.String |
getName()
|
|
JClassType |
getNestedType(java.lang.String typeName)
|
|
JClassType[] |
getNestedTypes()
|
|
TypeOracle |
getOracle()
|
|
JMethod[] |
getOverloads(java.lang.String name)
|
|
JMethod[] |
getOverridableMethods()
Iterates over the most-derived declaration of each unique overridable method available in the type hierarchy of the specified type, including those found in superclasses and superinterfaces. |
|
JPackage |
getPackage()
|
|
java.lang.String |
getQualifiedBinaryName()
TODO(scottb): remove if we can resolve param names differently. |
|
java.lang.String |
getQualifiedSourceName()
|
|
java.lang.String |
getSimpleSourceName()
|
|
JClassType[] |
getSubtypes()
|
|
JClassType |
getSuperclass()
|
|
JClassType |
getUpperBound()
|
|
JClassType[] |
getUpperBounds()
Returns the upper bounds of this wildcard type. |
|
boolean |
isAbstract()
|
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
Returns true if this item has an annotation of the specified
type. |
|
JArrayType |
isArray()
|
|
JClassType |
isClass()
|
|
JClassType |
isClassOrInterface()
|
|
boolean |
isDefaultInstantiable()
Determines if the class can be constructed using a simple new
operation. |
|
JEnumType |
isEnum()
Returns this instance if it is an enumeration or null if it
is not. |
|
boolean |
isFinal()
|
|
JGenericType |
isGenericType()
|
|
JClassType |
isInterface()
|
|
boolean |
isMemberType()
Tests if this type is contained within another type. |
|
JParameterizedType |
isParameterized()
|
|
JPrimitiveType |
isPrimitive()
|
|
boolean |
isPrivate()
|
|
boolean |
isProtected()
|
|
boolean |
isPublic()
|
|
JRawType |
isRawType()
|
|
boolean |
isStatic()
|
|
JWildcardType |
isWildcard()
|
|
protected void |
notifySuperTypesOf(JClassType me)
Tells this type's superclasses and superinterfaces about it. |
|
protected void |
removeSubtype(JClassType me)
|
|
void |
setSuperclass(JClassType type)
|
|
java.lang.String |
toString()
|
Methods inherited from class com.google.gwt.core.ext.typeinfo.JClassType |
---|
asParameterizationOf, findAnnotationInTypeHierarchy, getFlattenedSupertypeHierarchy, getFlattenedSuperTypeHierarchy, getMetaData, getMetaDataTags, isAssignableFrom, isAssignableTo, isEnhanced, isLocalType, isMaybeParameterizedType, setEnhanced |
Methods inherited from class com.google.gwt.core.ext.typeinfo.JType |
---|
equals, getLeafType, getParameterizedQualifiedSourceName, hashCode, isAnnotation, isTypeParameter |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public JField findField(java.lang.String name)
public JMethod findMethod(java.lang.String name, JType[] paramTypes)
public JWildcardType.BoundType getBoundType()
public JClassType getErasedType()
public JField getField(java.lang.String name)
public JField[] getFields()
public JClassType getFirstBound()
public JClassType[] getLowerBounds()
public JMethod getMethod(java.lang.String name, JType[] paramTypes) throws NotFoundException
NotFoundException
public JMethod[] getMethods()
public java.lang.String getQualifiedBinaryName()
JType
getQualifiedBinaryName
in class JType
public java.lang.String getQualifiedSourceName()
getQualifiedSourceName
in class JType
public java.lang.String getSimpleSourceName()
getSimpleSourceName
in class JType
public JClassType[] getSubtypes()
public JClassType getSuperclass()
public JClassType getUpperBound()
public JClassType[] getUpperBounds()
Object
is returned.
public JGenericType isGenericType()
isGenericType
in class JClassType
public JParameterizedType isParameterized()
isParameterized
in class JType
public JRawType isRawType()
isRawType
in class JType
public JWildcardType isWildcard()
isWildcard
in class JType
public final void addImplementedInterface(JClassType intf)
public final void addModifierBits(int bits)
public JConstructor findConstructor(JType[] paramTypes)
findConstructor
in class JClassType
public JClassType findNestedType(java.lang.String typeName)
findNestedType
in class JClassType
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
HasAnnotations
null
if it is not.
getAnnotation
in interface HasAnnotations
getAnnotation
in class JClassType
annotationClass
- annotation type to search for
null
if it is notpublic JClassType getBaseType()
public JConstructor getConstructor(JType[] paramTypes) throws NotFoundException
getConstructor
in class JClassType
NotFoundException
public JConstructor[] getConstructors()
getConstructors
in class JClassType
public JClassType getEnclosingType()
getEnclosingType
in class JClassType
public JClassType[] getImplementedInterfaces()
getImplementedInterfaces
in class JClassType
public JMethod[] getInheritableMethods()
JClassType
public
, protected
, or
package protected.
This method offers a convenient way for Generators to find candidate
methods to call from a subclass.
getInheritableMethods
in class JClassType
JMethod
objects representing inheritable
methodspublic java.lang.String getJNISignature()
getJNISignature
in class JType
public java.lang.String getName()
getName
in class JClassType
public JClassType getNestedType(java.lang.String typeName) throws NotFoundException
getNestedType
in class JClassType
NotFoundException
public JClassType[] getNestedTypes()
getNestedTypes
in class JClassType
public TypeOracle getOracle()
getOracle
in class JClassType
public JMethod[] getOverloads(java.lang.String name)
getOverloads
in class JClassType
public JMethod[] getOverridableMethods()
JClassType
final
and its accessibility is public
,
protected
, or package protected.
Deferred binding generators often need to generate method implementations;
this method offers a convenient way to find candidate methods to implement.
Note that the behavior does not match
Class.getMethod(String, Class[])
, which does not return the most
derived method in some cases.
getOverridableMethods
in class JClassType
JMethod
objects representing overridable
methodspublic JPackage getPackage()
getPackage
in class JClassType
public boolean isAbstract()
isAbstract
in class JClassType
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
HasAnnotations
true
if this item has an annotation of the specified
type.
isAnnotationPresent
in interface HasAnnotations
isAnnotationPresent
in class JClassType
true
if this item has an annotation of the specified
typepublic final JArrayType isArray()
isArray
in class JType
public JClassType isClass()
isClass
in class JType
public JClassType isClassOrInterface()
isClassOrInterface
in class JType
public boolean isDefaultInstantiable()
JClassType
new
operation. Specifically, the class must
isDefaultInstantiable
in class JClassType
true
if the type is default instantiable, or
false
otherwisepublic final JEnumType isEnum()
JType
null
if it
is not.
isEnum
in class JType
null
if it
is notpublic boolean isFinal()
isFinal
in class JClassType
public JClassType isInterface()
isInterface
in class JClassType
public boolean isMemberType()
JClassType
isMemberType
in class JClassType
public final JPrimitiveType isPrimitive()
isPrimitive
in class JType
public boolean isPrivate()
isPrivate
in class JClassType
public boolean isProtected()
isProtected
in class JClassType
public boolean isPublic()
isPublic
in class JClassType
public boolean isStatic()
isStatic
in class JClassType
public void setSuperclass(JClassType type)
public java.lang.String toString()
toString
in class JClassType
protected void acceptSubtype(JClassType me)
acceptSubtype
in class JClassType
protected void getInheritableMethodsOnSuperclassesAndThisClass(java.util.Map<java.lang.String,JMethod> methodsBySignature)
getInheritableMethodsOnSuperclassesAndThisClass
in class JClassType
protected void getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface(java.util.Map<java.lang.String,JMethod> methodsBySignature)
JClassType
JClassType.getOverridableMethods()
.
getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface
in class JClassType
protected int getModifierBits()
getModifierBits
in class JClassType
protected void notifySuperTypesOf(JClassType me)
JClassType
notifySuperTypesOf
in class JClassType
protected void removeSubtype(JClassType me)
removeSubtype
in class JClassType
|
GWT 2.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |