public class DelegateClassInfo extends AbstractTypeInfo implements ClassInfo, InterfaceInfo
| Modifier and Type | Field and Description |
|---|---|
protected ClassInfo |
delegate
The delegate
|
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC| Constructor and Description |
|---|
DelegateClassInfo(ClassInfo delegate)
Create delegate class info
|
DelegateClassInfo(ClassInfo delegate,
boolean allowNull)
Create delegate class info
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convertValue(Object value)
Convert a value
|
Object |
convertValue(Object value,
boolean replaceProperties)
Convert a value
|
Object |
convertValue(Object value,
boolean replaceProperties,
boolean trim)
Convert a value
|
boolean |
equals(Object obj) |
TypeInfo[] |
getActualTypeArguments()
Get the actual type parameters
|
AnnotationValue |
getAnnotation(String name)
Get an annotation
|
AnnotationValue[] |
getAnnotations()
Get the annotations
|
TypeInfo |
getArrayType()
Get an array type
|
TypeInfo |
getComponentType()
Get the component type if it is a collection or an array
|
ConstructorInfo |
getDeclaredConstructor(TypeInfo[] parameters)
Get a declared constructor
|
ConstructorInfo[] |
getDeclaredConstructors()
Get the declared constructors
|
FieldInfo |
getDeclaredField(String name)
Get the declared field
|
FieldInfo[] |
getDeclaredFields()
Get the declared fields
|
MethodInfo |
getDeclaredMethod(String name,
TypeInfo[] parameters)
Get the declared method
|
MethodInfo[] |
getDeclaredMethods()
Get the declared methods
|
InterfaceInfo[] |
getGenericInterfaces()
Get the generic interfaces
|
ClassInfo |
getGenericSuperclass()
Get the generic super class
|
protected int |
getHashCode() |
InterfaceInfo[] |
getInterfaces()
Get the interfaces
|
TypeInfo |
getKeyType()
Get the key type if it is a map
|
int |
getModifiers()
Get the modifiers
|
String |
getName()
Get the class name
|
TypeInfo |
getOwnerType()
Get the owner type
|
PackageInfo |
getPackage()
Get the package
|
ClassInfo |
getRawType()
Get the raw type
|
String |
getSimpleName()
Get the simple name
|
ClassInfo |
getSuperclass()
Get the super class
|
Class<?> |
getType()
Deprecated.
|
TypeInfoFactory |
getTypeInfoFactory()
Get the TypeInfoFactory that created this type info
|
<T extends Annotation> |
getUnderlyingAnnotation(Class<T> annotationType)
Get an underlying annotation
|
Annotation[] |
getUnderlyingAnnotations()
Get the underlying annotations
|
TypeInfo |
getValueType()
Get the value type if it is a map
|
boolean |
isAnnotation()
Whether this type is an annotation
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Test whether an annotation is present
|
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present
|
boolean |
isArray()
Whether this type is an array
|
boolean |
isAssignableFrom(TypeInfo info)
Mostly using
|
boolean |
isCollection()
Whether this type is a collection
|
boolean |
isEnum()
Whether this type is an enum
|
boolean |
isInitialized()
Whether the delegate is initialized
|
boolean |
isInstance(Object object)
Is object instance of this type info.
|
boolean |
isInterface()
Whether it is an interface
|
boolean |
isMap()
Whether this type is a map
|
boolean |
isPrimitive()
Whether this type is a primitive
|
boolean |
isPublic()
Whether it is public
|
boolean |
isStatic()
Whether it is static
|
boolean |
isVolatile()
Whether it is volatile
|
Object |
newArrayInstance(int size)
Create a new array
|
void |
setDelegate(ClassInfo delegate)
Set the delegate
|
void |
setDelegate(TypeInfo delegate)
Set the delegate
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer) |
protected void |
toString(org.jboss.util.JBossStringBuilder buffer) |
getAttachment, getAttachment, setAttachmentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetAttachment, getAttachment, setAttachmentprotected ClassInfo delegate
public DelegateClassInfo(ClassInfo delegate)
delegate - the raw array infoIllegalArgumentException - for a null delegatepublic DelegateClassInfo(ClassInfo delegate, boolean allowNull)
delegate - the raw array infoallowNull - whether to allow a null delegatepublic boolean isInitialized()
public void setDelegate(TypeInfo delegate)
delegate - the delegateIllegalArgumentException - for a null delegate or it is not a ClassInfopublic void setDelegate(ClassInfo delegate)
delegate - the delegateIllegalArgumentException - for a null delegatepublic TypeInfoFactory getTypeInfoFactory()
TypeInfogetTypeInfoFactory in interface TypeInfopublic ConstructorInfo getDeclaredConstructor(TypeInfo[] parameters)
ClassInfogetDeclaredConstructor in interface ClassInfoparameters - the parameterspublic ConstructorInfo[] getDeclaredConstructors()
ClassInfogetDeclaredConstructors in interface ClassInfopublic FieldInfo getDeclaredField(String name)
ClassInfogetDeclaredField in interface ClassInfoname - the field namepublic FieldInfo[] getDeclaredFields()
ClassInfogetDeclaredFields in interface ClassInfopublic MethodInfo getDeclaredMethod(String name, TypeInfo[] parameters)
ClassInfogetDeclaredMethod in interface ClassInfoname - the method nameparameters - the parameterspublic MethodInfo[] getDeclaredMethods()
ClassInfogetDeclaredMethods in interface ClassInfopublic InterfaceInfo[] getGenericInterfaces()
ClassInfogetGenericInterfaces in interface ClassInfopublic ClassInfo getGenericSuperclass()
ClassInfogetGenericSuperclass in interface ClassInfopublic InterfaceInfo[] getInterfaces()
ClassInfogetInterfaces in interface ClassInfopublic String getSimpleName()
TypeInfogetSimpleName in interface TypeInfopublic ClassInfo getSuperclass()
ClassInfogetSuperclass in interface ClassInfopublic boolean isInterface()
ClassInfoisInterface in interface ClassInfopublic AnnotationValue getAnnotation(String name)
AnnotatedInfogetAnnotation in interface AnnotatedInfoname - the namepublic AnnotationValue[] getAnnotations()
AnnotatedInfogetAnnotations in interface AnnotatedInfopublic boolean isAnnotationPresent(String name)
AnnotatedInfoisAnnotationPresent in interface AnnotatedInfoname - the namepublic <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotatedInfogetUnderlyingAnnotation in interface AnnotatedInfoT - the annotation typeannotationType - the annotationTypepublic Annotation[] getUnderlyingAnnotations()
AnnotatedInfogetUnderlyingAnnotations in interface AnnotatedInfopublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedInfoisAnnotationPresent in interface AnnotatedInfopublic int getModifiers()
ModifierInfogetModifiers in interface ModifierInfopublic boolean isPublic()
ModifierInfoisPublic in interface ModifierInfopublic boolean isStatic()
ModifierInfoisStatic in interface ModifierInfopublic boolean isVolatile()
ModifierInfoisVolatile in interface ModifierInfopublic Object convertValue(Object value) throws Throwable
TypeInfoconvertValue in interface TypeInfovalue - the original valueThrowable - for any errorpublic Object convertValue(Object value, boolean replaceProperties) throws Throwable
TypeInfoconvertValue in interface TypeInfovalue - the original valuereplaceProperties - whether to replace propertiesThrowable - for any errorpublic Object convertValue(Object value, boolean replaceProperties, boolean trim) throws Throwable
TypeInfoconvertValue in interface TypeInfovalue - the original valuereplaceProperties - whether to replace propertiestrim - do we trim before conversionThrowable - for any errorpublic TypeInfo getArrayType()
TypeInfogetArrayType in interface TypeInfo@Deprecated public Class<?> getType()
TypeInfopublic boolean isAnnotation()
TypeInfoisAnnotation in interface TypeInfoisAnnotation in class AbstractTypeInfopublic boolean isCollection()
TypeInfoisCollection in interface TypeInfoisCollection in class AbstractTypeInfopublic boolean isMap()
TypeInfoisMap in interface TypeInfoisMap in class AbstractTypeInfopublic boolean isArray()
TypeInfoisArray in interface TypeInfoisArray in class AbstractTypeInfopublic boolean isEnum()
TypeInfoisEnum in interface TypeInfoisEnum in class AbstractTypeInfopublic boolean isPrimitive()
TypeInfoisPrimitive in interface TypeInfoisPrimitive in class AbstractTypeInfopublic Object newArrayInstance(int size) throws Throwable
TypeInfonewArrayInstance in interface TypeInfosize - the sizeThrowable - for any errorpublic boolean isAssignableFrom(TypeInfo info)
TypeInfoisAssignableFrom in interface TypeInfoinfo - type infoPrimitiveInfo tests for progressionpublic boolean isInstance(Object object)
TypeInfoisInstance in interface TypeInfoobject - the object to checkobject is an instance of this classPrimitiveInfo tests for progressionpublic TypeInfo[] getActualTypeArguments()
ClassInfogetActualTypeArguments in interface ClassInfopublic TypeInfo getOwnerType()
ClassInfogetOwnerType in interface ClassInfopublic ClassInfo getRawType()
ClassInfogetRawType in interface ClassInfopublic TypeInfo getComponentType()
ClassInfogetComponentType in interface ClassInfopublic TypeInfo getKeyType()
ClassInfogetKeyType in interface ClassInfopublic TypeInfo getValueType()
ClassInfogetValueType in interface ClassInfopublic PackageInfo getPackage()
ClassInfogetPackage in interface ClassInfoprotected int getHashCode()
getHashCode in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.