|
GWT 2.1.0 | |||||||||
| 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.JRealClassType
public class JRealClassType
Type representing a Java class or interface type that a user would declare.
| Method Summary | ||
|---|---|---|
protected void |
acceptSubtype(JClassType me)
|
|
protected void |
addConstructor(JConstructor ctor)
|
|
protected void |
addField(JField field)
|
|
protected void |
addMethod(JMethod method)
|
|
void |
addModifierBits(int bits)
|
|
protected void |
addNestedType(JClassType type)
|
|
JConstructor |
findConstructor(JType[] paramTypes)
|
|
JField |
findField(java.lang.String name)
|
|
JMethod |
findMethod(java.lang.String name,
JType[] paramTypes)
|
|
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. |
|
JConstructor |
getConstructor(JType[] paramTypes)
|
|
JConstructor[] |
getConstructors()
|
|
JClassType |
getEnclosingType()
|
|
JClassType |
getErasedType()
|
|
JField |
getField(java.lang.String name)
|
|
JField[] |
getFields()
|
|
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()
|
|
JMethod |
getMethod(java.lang.String name,
JType[] paramTypes)
|
|
JMethod[] |
getMethods()
|
|
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()
|
|
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()
|
|
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)
|
|
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, isClassOrInterface, isTypeParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void addModifierBits(int bits)
public JConstructor findConstructor(JType[] paramTypes)
findConstructor in class JClassTypepublic JField findField(java.lang.String name)
findField in class JClassType
public JMethod findMethod(java.lang.String name,
JType[] paramTypes)
findMethod in class JClassTypepublic JClassType findNestedType(java.lang.String typeName)
findNestedType 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 not
public JConstructor getConstructor(JType[] paramTypes)
throws NotFoundException
getConstructor in class JClassTypeNotFoundExceptionpublic JConstructor[] getConstructors()
getConstructors in class JClassTypepublic JClassType getEnclosingType()
getEnclosingType in class JClassTypepublic JClassType getErasedType()
getErasedType in class JClassTypepublic JField getField(java.lang.String name)
getField in class JClassTypepublic JField[] getFields()
getFields in class JClassTypepublic JClassType[] getImplementedInterfaces()
getImplementedInterfaces in class JClassTypepublic JMethod[] getInheritableMethods()
JClassTypepublic, protected, or
package protected.
This method offers a convenient way for Generators to find candidate
methods to call from a subclass.
getInheritableMethods in class JClassTypeJMethod objects representing inheritable
methodspublic java.lang.String getJNISignature()
getJNISignature in class JType
public JMethod getMethod(java.lang.String name,
JType[] paramTypes)
throws NotFoundException
getMethod in class JClassTypeNotFoundExceptionpublic JMethod[] getMethods()
getMethods in class JClassTypepublic java.lang.String getName()
getName in class JClassType
public JClassType getNestedType(java.lang.String typeName)
throws NotFoundException
getNestedType in class JClassTypeNotFoundExceptionpublic JClassType[] getNestedTypes()
getNestedTypes in class JClassTypepublic TypeOracle getOracle()
getOracle in class JClassTypepublic JMethod[] getOverloads(java.lang.String name)
getOverloads in class JClassTypepublic 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.
getOverridableMethods in class JClassTypeJMethod objects representing overridable
methodspublic JPackage getPackage()
getPackage in class JClassTypepublic java.lang.String getQualifiedBinaryName()
JType
getQualifiedBinaryName in class JTypepublic java.lang.String getQualifiedSourceName()
getQualifiedSourceName in class JTypepublic java.lang.String getSimpleSourceName()
getSimpleSourceName in class JTypepublic JClassType[] getSubtypes()
getSubtypes in class JClassTypepublic JClassType getSuperclass()
getSuperclass in class JClassTypepublic 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 JArrayType isArray()
isArray in class JTypepublic JClassType isClass()
isClass in class JTypepublic boolean isDefaultInstantiable()
new
operation. Specifically, the class must
isDefaultInstantiable in class JClassTypetrue if the type is default instantiable, or
false otherwisepublic JEnumType isEnum()
JTypenull if it
is not.
isEnum in class JTypenull if it
is notpublic boolean isFinal()
isFinal in class JClassTypepublic JGenericType isGenericType()
isGenericType in class JClassTypepublic JClassType isInterface()
isInterface in class JClassTypepublic boolean isMemberType()
isMemberType in class JClassTypepublic JParameterizedType isParameterized()
isParameterized in class JTypepublic JPrimitiveType isPrimitive()
isPrimitive in class JTypepublic boolean isPrivate()
isPrivate in class JClassTypepublic boolean isProtected()
isProtected in class JClassTypepublic boolean isPublic()
isPublic in class JClassTypepublic JRawType isRawType()
isRawType in class JTypepublic boolean isStatic()
isStatic in class JClassTypepublic JWildcardType isWildcard()
isWildcard in class JTypepublic java.lang.String toString()
toString in class JClassTypeprotected void acceptSubtype(JClassType me)
acceptSubtype in class JClassTypeprotected void addConstructor(JConstructor ctor)
protected void addField(JField field)
protected void addMethod(JMethod method)
protected void addNestedType(JClassType type)
protected JClassType findNestedTypeImpl(java.lang.String[] typeName,
int index)
protected void getInheritableMethodsOnSuperclassesAndThisClass(java.util.Map<java.lang.String,JMethod> methodsBySignature)
getInheritableMethodsOnSuperclassesAndThisClass in class JClassTypeprotected void getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface(java.util.Map<java.lang.String,JMethod> methodsBySignature)
getOverridableMethods().
getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface in class JClassTypemethodsBySignature - protected int getModifierBits()
getModifierBits in class JClassTypeprotected void notifySuperTypesOf(JClassType me)
notifySuperTypesOf in class JClassTypeprotected void removeSubtype(JClassType me)
removeSubtype in class JClassType
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||