public class GWTClass extends AbstractMetaClass<com.google.gwt.core.ext.typeinfo.JType>
Modifier and Type | Field and Description |
---|---|
protected Annotation[] |
annotations |
protected com.google.gwt.core.ext.typeinfo.TypeOracle |
oracle |
genericSuperClass, parameterizedType
Modifier | Constructor and Description |
---|---|
protected |
GWTClass(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JType classType,
boolean erased) |
Modifier and Type | Method and Description |
---|---|
MetaClass |
asArrayOf(int dimensions) |
static MetaClass[] |
fromClassArray(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JClassType[] classes) |
Annotation[] |
getAnnotations() |
String |
getCanonicalName() |
MetaClass |
getComponentType() |
MetaConstructor[] |
getConstructors() |
MetaClass[] |
getDeclaredClasses() |
MetaConstructor[] |
getDeclaredConstructors() |
MetaField |
getDeclaredField(String name) |
MetaField[] |
getDeclaredFields() |
MetaMethod[] |
getDeclaredMethods() |
MetaClass |
getErased()
Returns a MetaClass that represents the same class as this one, but
guaranteed to have no type parameters.
|
MetaField |
getField(String name) |
MetaField[] |
getFields() |
String |
getFullyQualifiedName() |
MetaClass[] |
getInterfaces() |
String |
getInternalName() |
MetaMethod[] |
getMethods()
Returns all declared and inherited public, protected, and package-private methods
available on this class.
|
String |
getName()
Returns the name of this type as it was written in the original source code.
|
String |
getPackageName() |
static Class<?> |
getPrimitiveOrClass(com.google.gwt.core.ext.typeinfo.JParameter parm) |
MetaClass |
getSuperClass() |
MetaTypeVariable[] |
getTypeParameters()
Returns the array of type variables declared on this generic declaration
site, in the order they were declared in the source code.
|
boolean |
isAbstract() |
boolean |
isAnnotation() |
boolean |
isAnonymousClass() |
boolean |
isArray() |
boolean |
isEnum() |
boolean |
isFinal() |
boolean |
isInterface() |
boolean |
isPrimitive() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
boolean |
isVoid() |
static Class<?>[] |
jParmToClass(com.google.gwt.core.ext.typeinfo.JParameter[] parms) |
static MetaClass |
newInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JType type) |
static MetaClass |
newInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
String type) |
static MetaClass |
newUncachedInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JType type) |
static MetaClass |
newUncachedInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JType type,
boolean erased) |
_getConstructor, _getMethod, asBoxed, asClass, asUnboxed, equals, getAnnotation, getBeanDescriptor, getBestMatchingConstructor, getBestMatchingConstructor, getBestMatchingMethod, getBestMatchingMethod, getBestMatchingStaticMethod, getBestMatchingStaticMethod, getConstructor, getConstructor, getDeclaredConstructor, getDeclaredMethod, getDeclaredMethod, getEnclosedMetaObject, getFieldsAnnotatedWith, getFieldsWithMetaAnnotations, getFullyQualifiedNameWithTypeParms, getGenericSuperClass, getInheritedField, getInternalPrimitiveNameFrom, getMethod, getMethod, getMethodsAnnotatedWith, getMethodsWithMetaAnnotations, getOuterComponentType, getParameterizedType, getParametersAnnotatedWith, hashCode, hashContent, hashString, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isDefaultInstantiable, isPrimitiveWrapper, toString
isConcrete
isAnnotationPresent
protected final Annotation[] annotations
protected com.google.gwt.core.ext.typeinfo.TypeOracle oracle
protected GWTClass(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JType classType, boolean erased)
public static MetaClass newInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JType type)
public static MetaClass newInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, String type)
public static MetaClass newUncachedInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JType type)
public static MetaClass newUncachedInstance(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JType type, boolean erased)
public static MetaClass[] fromClassArray(com.google.gwt.core.ext.typeinfo.TypeOracle oracle, com.google.gwt.core.ext.typeinfo.JClassType[] classes)
public static Class<?>[] jParmToClass(com.google.gwt.core.ext.typeinfo.JParameter[] parms) throws ClassNotFoundException
ClassNotFoundException
public static Class<?> getPrimitiveOrClass(com.google.gwt.core.ext.typeinfo.JParameter parm) throws ClassNotFoundException
ClassNotFoundException
public String getName()
MetaType
public String getFullyQualifiedName()
getFullyQualifiedName
in class MetaClass
public String getCanonicalName()
getCanonicalName
in class MetaClass
public String getInternalName()
getInternalName
in class AbstractMetaClass<com.google.gwt.core.ext.typeinfo.JType>
public String getPackageName()
getPackageName
in class MetaClass
public MetaMethod[] getMethods()
MetaClass
getMethods
in class MetaClass
public MetaMethod[] getDeclaredMethods()
getDeclaredMethods
in class MetaClass
public MetaClass getErased()
MetaClass
public MetaField[] getDeclaredFields()
getDeclaredFields
in class MetaClass
public MetaField getDeclaredField(String name)
getDeclaredField
in class MetaClass
public MetaConstructor[] getConstructors()
getConstructors
in class MetaClass
public MetaConstructor[] getDeclaredConstructors()
getDeclaredConstructors
in class MetaClass
public MetaClass[] getDeclaredClasses()
getDeclaredClasses
in class MetaClass
public MetaClass[] getInterfaces()
getInterfaces
in class MetaClass
public MetaClass getSuperClass()
getSuperClass
in class MetaClass
public MetaClass getComponentType()
getComponentType
in class MetaClass
public Annotation[] getAnnotations()
public MetaTypeVariable[] getTypeParameters()
MetaGenericDeclaration
public boolean isPrimitive()
isPrimitive
in class MetaClass
public boolean isInterface()
isInterface
in class MetaClass
public boolean isAbstract()
isAbstract
in class MetaClass
public boolean isAnnotation()
isAnnotation
in class MetaClass
public boolean isProtected()
isProtected
in class MetaClass
public boolean isSynthetic()
isSynthetic
in class MetaClass
public boolean isAnonymousClass()
isAnonymousClass
in class MetaClass
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.