|
|||||||||
| 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.JParameterizedType
public class JParameterizedType
Represents a parameterized type in a declaration.
| Constructor Summary | |
|---|---|
JParameterizedType(JGenericType baseType,
JClassType enclosingType,
JClassType[] typeArgs)
|
|
| Method Summary | ||
|---|---|---|
protected void |
acceptSubtype(JClassType me)
|
|
void |
addImplementedInterface(JClassType intf)
|
|
void |
addMetaData(java.lang.String tagName,
java.lang.String[] values)
Adds additional metadata. |
|
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)
|
|
protected JClassType |
findNestedTypeImpl(java.lang.String[] typeName,
int index)
|
|
|
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. |
|
JGenericType |
getBaseType()
|
|
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[] |
getImplementedInterfaces()
|
|
java.lang.String |
getJNISignature()
|
|
java.lang.String[][] |
getMetaData(java.lang.String tagName)
Gets each list of metadata for the specified tag name. |
|
java.lang.String[] |
getMetaDataTags()
Gets the name of available metadata tags. |
|
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()
|
|
java.lang.String |
getNonParameterizedQualifiedSourceName()
Deprecated. see getQualifiedSourceName() |
|
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. |
|
protected void |
getOverridableMethodsOnSuperclassesAndThisClass(java.util.Map<java.lang.String,JMethod> methodsBySignature)
|
|
protected void |
getOverridableMethodsOnSuperinterfacesAndMaybeThisInterface(java.util.Map<java.lang.String,JMethod> methodsBySignature)
Gets the methods declared in interfaces that this type extends. |
|
JPackage |
getPackage()
|
|
java.lang.String |
getParameterizedQualifiedSourceName()
|
|
java.lang.String |
getQualifiedSourceName()
Everything is fully qualified and includes the < and > in the signature. |
|
JClassType |
getRawType()
|
|
java.lang.String |
getSimpleSourceName()
In this case, the raw type name. |
|
JClassType[] |
getSubtypes()
|
|
JClassType |
getSuperclass()
|
|
JClassType[] |
getTypeArgs()
|
|
int |
hashCode()
|
|
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 |
isLocalType()
Tests if this type is a local type (within a method). |
|
protected com.google.gwt.core.ext.typeinfo.JMaybeParameterizedType |
isMaybeParameterizedType()
|
|
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)
|
|
void |
setTypeArguments(JClassType[] typeArgs)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class com.google.gwt.core.ext.typeinfo.JClassType |
|---|
asParameterizationOf, getFlattenedSuperTypeHierarchy, isAssignableFrom, isAssignableTo, makeCompoundName |
| Methods inherited from class com.google.gwt.core.ext.typeinfo.JType |
|---|
getLeafType, isAnnotation, isTypeParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JParameterizedType(JGenericType baseType,
JClassType enclosingType,
JClassType[] typeArgs)
| Method Detail |
|---|
public JConstructor findConstructor(JType[] paramTypes)
public JField findField(java.lang.String name)
public JMethod findMethod(java.lang.String name,
JType[] paramTypes)
public JClassType findNestedType(java.lang.String typeName)
public JConstructor getConstructor(JType[] paramTypes)
throws NotFoundException
NotFoundExceptionpublic JConstructor[] getConstructors()
public JClassType getEnclosingType()
public JField getField(java.lang.String name)
public JField[] getFields()
public JClassType[] getImplementedInterfaces()
public JMethod getMethod(java.lang.String name,
JType[] paramTypes)
throws NotFoundException
NotFoundExceptionpublic JMethod[] getMethods()
public JClassType getNestedType(java.lang.String typeName)
throws NotFoundException
NotFoundExceptionpublic JClassType[] getNestedTypes()
@Deprecated public java.lang.String getNonParameterizedQualifiedSourceName()
getQualifiedSourceName()
public JMethod[] getOverloads(java.lang.String name)
public JMethod[] getOverridableMethods()
JClassTypefinal 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.
JMethod objects representing overridable
methodspublic java.lang.String getParameterizedQualifiedSourceName()
getParameterizedQualifiedSourceName in class JTypepublic java.lang.String getQualifiedSourceName()
getQualifiedSourceName in class JTypepublic JClassType getRawType()
public java.lang.String getSimpleSourceName()
getSimpleSourceName in class JTypepublic JClassType[] getSubtypes()
public JClassType getSuperclass()
public JClassType[] getTypeArgs()
public JGenericType isGenericType()
isGenericType in class JClassTypepublic JParameterizedType isParameterized()
isParameterized in class JTypepublic JRawType isRawType()
isRawType in class JTypepublic JWildcardType isWildcard()
isWildcard in class JTypepublic void setTypeArguments(JClassType[] typeArgs)
public java.lang.String toString()
protected JClassType findNestedTypeImpl(java.lang.String[] typeName,
int index)
protected void getOverridableMethodsOnSuperclassesAndThisClass(java.util.Map<java.lang.String,JMethod> methodsBySignature)
protected void getOverridableMethodsOnSuperinterfacesAndMaybeThisInterface(java.util.Map<java.lang.String,JMethod> methodsBySignature)
getOverridableMethods().
methodsBySignature - public JGenericType getBaseType()
protected com.google.gwt.core.ext.typeinfo.JMaybeParameterizedType isMaybeParameterizedType()
isMaybeParameterizedType in class JClassTypepublic final void addImplementedInterface(JClassType intf)
addImplementedInterface in class JClassType
public final void addMetaData(java.lang.String tagName,
java.lang.String[] values)
HasMetaData
addMetaData in interface HasMetaDataaddMetaData in class JClassTypepublic final void addModifierBits(int bits)
addModifierBits in class JClassTypepublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
HasAnnotationsnull if it is not.
getAnnotation in interface HasAnnotationsgetAnnotation in class JClassTypeannotationClass - annotation type to search for
null if it is notpublic JClassType getErasedType()
getErasedType in class JClassTypepublic java.lang.String getJNISignature()
getJNISignature in class JTypepublic java.lang.String[][] getMetaData(java.lang.String tagName)
HasMetaData
getMetaData in interface HasMetaDatagetMetaData in class JClassTypepublic java.lang.String[] getMetaDataTags()
HasMetaData
getMetaDataTags in interface HasMetaDatagetMetaDataTags in class JClassTypepublic java.lang.String getName()
getName in class JClassTypepublic TypeOracle getOracle()
getOracle in class JClassTypepublic JPackage getPackage()
getPackage in class JClassTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isAbstract()
isAbstract in class JClassTypepublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
HasAnnotationstrue if this item has an annotation of the specified
type.
isAnnotationPresent in interface HasAnnotationsisAnnotationPresent in class JClassTypetrue if this item has an annotation of the specified
typepublic final JArrayType isArray()
isArray in class JTypepublic JClassType isClass()
isClass in class JTypepublic JClassType isClassOrInterface()
isClassOrInterface in class JTypepublic boolean isDefaultInstantiable()
JClassTypenew
operation. Specifically, the class must
isDefaultInstantiable in class JClassTypetrue if the type is default instantiable, or
false otherwisepublic final JEnumType isEnum()
JTypenull if it
is not.
isEnum in class JTypenull if it
is notpublic boolean isFinal()
isFinal in class JClassTypepublic JClassType isInterface()
isInterface in class JClassTypepublic boolean isLocalType()
JClassType
isLocalType in class JClassTypepublic boolean isMemberType()
JClassType
isMemberType in class JClassTypepublic final JPrimitiveType isPrimitive()
isPrimitive in class JTypepublic boolean isPrivate()
isPrivate in class JClassTypepublic boolean isProtected()
isProtected in class JClassTypepublic boolean isPublic()
isPublic in class JClassTypepublic boolean isStatic()
isStatic in class JClassTypepublic void setSuperclass(JClassType type)
setSuperclass in class JClassTypeprotected void acceptSubtype(JClassType me)
acceptSubtype in class JClassTypeprotected int getModifierBits()
getModifierBits in class JClassTypeprotected void notifySuperTypesOf(JClassType me)
JClassType
notifySuperTypesOf in class JClassTypeprotected void removeSubtype(JClassType me)
removeSubtype in class JClassType
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||