|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.codegen.meta.MetaClass
public abstract class MetaClass
Constructor Summary | |
---|---|
MetaClass()
|
Method Summary | |
---|---|
abstract MetaClass |
asArrayOf(int dimensions)
|
abstract MetaClass |
asBoxed()
|
abstract Class<?> |
asClass()
|
abstract MetaClass |
asUnboxed()
|
abstract BeanDescriptor |
getBeanDescriptor()
|
abstract MetaConstructor |
getBestMatchingConstructor(Class... parameters)
|
abstract MetaConstructor |
getBestMatchingConstructor(MetaClass... parameters)
|
abstract MetaMethod |
getBestMatchingMethod(String name,
Class... parameters)
|
abstract MetaMethod |
getBestMatchingMethod(String name,
MetaClass... parameters)
|
abstract MetaMethod |
getBestMatchingStaticMethod(String name,
Class... parameters)
|
abstract MetaMethod |
getBestMatchingStaticMethod(String name,
MetaClass... parameters)
|
abstract String |
getCanonicalName()
|
abstract MetaClass |
getComponentType()
|
abstract MetaConstructor |
getConstructor(Class... parameters)
|
abstract MetaConstructor |
getConstructor(MetaClass... parameters)
|
abstract MetaConstructor[] |
getConstructors()
|
abstract MetaClass[] |
getDeclaredClasses()
|
abstract MetaConstructor |
getDeclaredConstructor(Class... parameters)
|
abstract MetaConstructor[] |
getDeclaredConstructors()
|
abstract MetaField |
getDeclaredField(String name)
|
abstract MetaField[] |
getDeclaredFields()
|
abstract MetaMethod |
getDeclaredMethod(String name,
Class... parameters)
|
abstract MetaMethod |
getDeclaredMethod(String name,
MetaClass... parameters)
|
abstract MetaMethod[] |
getDeclaredMethods()
|
abstract MetaClass |
getErased()
Returns a MetaClass that represents the same class as this one, but guaranteed to have no type parameters. |
abstract MetaField |
getField(String name)
|
abstract MetaField[] |
getFields()
|
abstract List<MetaField> |
getFieldsAnnotatedWith(Class<? extends Annotation> annotation)
Returns all declared and inherited fields on this class that have the given annotation targeting them. |
abstract List<MetaField> |
getFieldsWithMetaAnnotations(Class<? extends Annotation> annotations)
|
abstract String |
getFullyQualifiedName()
|
abstract String |
getFullyQualifiedNameWithTypeParms()
|
abstract MetaParameterizedType |
getGenericSuperClass()
|
abstract MetaField |
getInheritedField(String name)
Searches for the named field in this type, its superinterfaces, and its superclasses. |
abstract MetaClass[] |
getInterfaces()
|
abstract String |
getInternalName()
|
abstract MetaMethod |
getMethod(String name,
Class... parameters)
|
abstract MetaMethod |
getMethod(String name,
MetaClass... parameters)
|
abstract MetaMethod[] |
getMethods()
Returns all declared and inherited public, protected, and package-private methods available on this class. |
abstract List<MetaMethod> |
getMethodsAnnotatedWith(Class<? extends Annotation> annotation)
Returns all declared and inherited methods on this class that have the given annotation targeting them. |
abstract List<MetaMethod> |
getMethodsWithMetaAnnotations(Class<? extends Annotation> annotation)
|
abstract String |
getName()
Returns the name of this type as it was written in the original source code. |
abstract MetaClass |
getOuterComponentType()
|
abstract String |
getPackageName()
|
abstract MetaParameterizedType |
getParameterizedType()
|
abstract List<MetaParameter> |
getParametersAnnotatedWith(Class<? extends Annotation> annotation)
|
abstract MetaClass |
getSuperClass()
|
abstract boolean |
isAbstract()
|
abstract boolean |
isAnnotation()
|
abstract boolean |
isAnonymousClass()
|
abstract boolean |
isArray()
|
abstract boolean |
isAssignableFrom(Class clazz)
Reports if the type represented by this MetaClass is a supertype of (or the same class as) the given class. |
abstract boolean |
isAssignableFrom(MetaClass clazz)
Reports if the type represented by this MetaClass is a supertype of (or the same class as) the type represented by the given MetaClass. |
abstract boolean |
isAssignableTo(Class clazz)
|
abstract boolean |
isAssignableTo(MetaClass clazz)
|
boolean |
isConcrete()
|
abstract boolean |
isDefaultInstantiable()
|
abstract boolean |
isEnum()
|
abstract boolean |
isFinal()
|
abstract boolean |
isInterface()
|
abstract boolean |
isPrimitive()
|
abstract boolean |
isPrimitiveWrapper()
|
abstract boolean |
isPrivate()
|
abstract boolean |
isProtected()
|
abstract boolean |
isPublic()
|
abstract boolean |
isStatic()
|
abstract boolean |
isSynthetic()
|
abstract boolean |
isVoid()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.errai.codegen.meta.HasAnnotations |
---|
getAnnotation, getAnnotations, isAnnotationPresent |
Methods inherited from interface org.jboss.errai.codegen.meta.MetaGenericDeclaration |
---|
getTypeParameters |
Constructor Detail |
---|
public MetaClass()
Method Detail |
---|
public abstract String getName()
MetaType
getName
in interface MetaType
public abstract String getFullyQualifiedName()
public abstract String getFullyQualifiedNameWithTypeParms()
public abstract String getCanonicalName()
public abstract String getInternalName()
public abstract String getPackageName()
public abstract MetaMethod[] getMethods()
public abstract List<MetaMethod> getMethodsAnnotatedWith(Class<? extends Annotation> annotation)
TODO: the returned collection should not include overridden methods from superclasses.
annotation
- The annotation to scan this class's methods for. Must not be null.
NullPointerException
- if annotation
is null.public abstract List<MetaMethod> getMethodsWithMetaAnnotations(Class<? extends Annotation> annotation)
public abstract MetaMethod[] getDeclaredMethods()
public abstract MetaMethod getMethod(String name, Class... parameters)
public abstract MetaMethod getMethod(String name, MetaClass... parameters)
public abstract MetaMethod getBestMatchingMethod(String name, Class... parameters)
public abstract MetaMethod getBestMatchingMethod(String name, MetaClass... parameters)
public abstract MetaMethod getBestMatchingStaticMethod(String name, Class... parameters)
public abstract MetaMethod getBestMatchingStaticMethod(String name, MetaClass... parameters)
public abstract MetaMethod getDeclaredMethod(String name, Class... parameters)
public abstract MetaMethod getDeclaredMethod(String name, MetaClass... parameters)
public abstract MetaField[] getFields()
public abstract List<MetaField> getFieldsAnnotatedWith(Class<? extends Annotation> annotation)
annotation
- The annotation to scan this class's fields for. Must not be null.
NullPointerException
- if annotation
is null.public abstract List<MetaField> getFieldsWithMetaAnnotations(Class<? extends Annotation> annotations)
public abstract List<MetaParameter> getParametersAnnotatedWith(Class<? extends Annotation> annotation)
public abstract MetaField[] getDeclaredFields()
public abstract MetaField getField(String name)
public abstract MetaField getDeclaredField(String name)
public abstract MetaConstructor[] getConstructors()
public abstract MetaConstructor[] getDeclaredConstructors()
public abstract MetaClass[] getDeclaredClasses()
public abstract MetaConstructor getConstructor(Class... parameters)
public abstract MetaConstructor getConstructor(MetaClass... parameters)
public abstract MetaConstructor getBestMatchingConstructor(Class... parameters)
public abstract MetaConstructor getBestMatchingConstructor(MetaClass... parameters)
public abstract MetaConstructor getDeclaredConstructor(Class... parameters)
public abstract MetaParameterizedType getParameterizedType()
public abstract MetaParameterizedType getGenericSuperClass()
public abstract MetaClass[] getInterfaces()
public abstract MetaClass getSuperClass()
public abstract MetaClass getComponentType()
public abstract MetaClass getOuterComponentType()
public abstract boolean isAssignableFrom(MetaClass clazz)
GivenType given = ...; ThisType a = given;
clazz
- The type to check for assignability to this MetaClass's type.
public abstract boolean isAssignableTo(MetaClass clazz)
public abstract boolean isAssignableFrom(Class clazz)
GivenType given = ...; ThisType a = given;
clazz
- The type to check for assignability to this MetaClass's type.
public abstract boolean isAssignableTo(Class clazz)
public abstract boolean isPrimitive()
public abstract boolean isInterface()
public abstract boolean isAbstract()
public abstract boolean isArray()
public abstract boolean isEnum()
public abstract boolean isAnnotation()
public abstract boolean isPublic()
public abstract boolean isPrivate()
public abstract boolean isProtected()
public abstract boolean isFinal()
public abstract boolean isStatic()
public abstract boolean isVoid()
public abstract boolean isDefaultInstantiable()
public abstract boolean isSynthetic()
public abstract boolean isAnonymousClass()
public boolean isConcrete()
public abstract MetaClass asBoxed()
public abstract MetaClass asUnboxed()
public abstract MetaClass asArrayOf(int dimensions)
public abstract MetaClass getErased()
public abstract boolean isPrimitiveWrapper()
public abstract Class<?> asClass()
public abstract MetaField getInheritedField(String name)
The search proceeds as in getField(String)
, but includes all public, protected, default accessibility, and
private fields. Whether a field is static or not does not affect this search.
name
- The name of the field to search for. Not null.
public abstract BeanDescriptor getBeanDescriptor()
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |