|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.spi.AbstractTypeInfo
org.jboss.reflect.spi.PrimitiveInfo
org.jboss.reflect.spi.NumberInfo
public class NumberInfo
Number info
| Field Summary | |
|---|---|
static NumberInfo |
ATOMIC_INT
The atomic int info |
static NumberInfo |
ATOMIC_LONG
The atomic long info |
static NumberInfo |
BYTE_OBJECT
The byte info |
static NumberInfo |
DOUBLE_OBJECT
The double info |
static NumberInfo |
FLOAT_OBJECT
The float info |
static NumberInfo |
INT_OBJECT
The int info |
static NumberInfo |
LONG_OBJECT
The long info |
static NumberInfo |
SHORT_OBJECT
The short info |
| Fields inherited from class org.jboss.reflect.spi.PrimitiveInfo |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, name, ordinal, SHORT, type, typeInfoFactory, VOID |
| Fields inherited from class org.jboss.util.JBossObject |
|---|
hashCode, log, toString |
| Fields inherited from interface org.jboss.reflect.spi.ModifierInfo |
|---|
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 Summary | |
|---|---|
protected |
NumberInfo(int ordinal,
Class<? extends Object> type)
Create a new number info |
| Method Summary | ||
|---|---|---|
Object |
clone()
|
|
boolean |
equals(Object obj)
|
|
TypeInfo[] |
getActualTypeArguments()
Get the actual type parameters |
|
AnnotationValue |
getAnnotation(String name)
Get an annotation |
|
AnnotationValue[] |
getAnnotations()
Get the annotations |
|
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 |
|
InterfaceInfo[] |
getInterfaces()
Get the interfaces |
|
TypeInfo |
getKeyType()
Get the key type if it is a map |
|
int |
getModifiers()
Get the modifiers |
|
TypeInfo |
getOwnerType()
Get the owner type |
|
PackageInfo |
getPackage()
Get the package |
|
ClassInfo |
getRawType()
Get the raw type |
|
ClassInfo |
getSuperclass()
Get the super class |
|
|
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 |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Test whether an annotation is present |
|
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present |
|
boolean |
isInitialized()
Whether the delegate is initialized |
|
boolean |
isInterface()
Whether it is an interface |
|
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 |
|
void |
setDelegate(TypeInfo info)
Set the delegate |
|
String |
toShortString()
|
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
|
static NumberInfo |
valueOf(String name)
Get the primitive info for a type |
|
| Methods inherited from class org.jboss.reflect.spi.PrimitiveInfo |
|---|
convertValue, convertValue, convertValue, getArrayType, getName, getPrimativeArrayComponentType, getPrimativeArrayType, getPrimativeType, getSimpleName, getType, getTypeInfoFactory, hashCode, isAssignableFrom, newArrayInstance, ordinal, toString |
| Methods inherited from class org.jboss.reflect.spi.AbstractTypeInfo |
|---|
getAttachment, getAttachment, isAnnotation, isArray, isCollection, isEnum, isMap, setAttachment |
| Methods inherited from class org.jboss.util.JBossObject |
|---|
cacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toString, toStringImplementation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.reflect.spi.ClassInfo |
|---|
getName |
| Methods inherited from interface org.jboss.reflect.spi.TypeInfo |
|---|
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isMap, newArrayInstance, setAttachment |
| Field Detail |
|---|
public static final NumberInfo BYTE_OBJECT
public static final NumberInfo DOUBLE_OBJECT
public static final NumberInfo FLOAT_OBJECT
public static final NumberInfo INT_OBJECT
public static final NumberInfo LONG_OBJECT
public static final NumberInfo SHORT_OBJECT
public static final NumberInfo ATOMIC_INT
public static final NumberInfo ATOMIC_LONG
| Constructor Detail |
|---|
protected NumberInfo(int ordinal,
Class<? extends Object> type)
ordinal - the oridinaltype - the class| Method Detail |
|---|
public static NumberInfo valueOf(String name)
name - the name
public void setDelegate(TypeInfo info)
info - the delegate info
IllegalArgumentException - if the delegate is null or not a class infopublic boolean isInitialized()
public boolean equals(Object obj)
equals in class PrimitiveInfopublic ConstructorInfo getDeclaredConstructor(TypeInfo[] parameters)
ClassInfo
getDeclaredConstructor in interface ClassInfoparameters - the parameters
public ConstructorInfo[] getDeclaredConstructors()
ClassInfo
getDeclaredConstructors in interface ClassInfopublic FieldInfo getDeclaredField(String name)
ClassInfo
getDeclaredField in interface ClassInfoname - the field name
public FieldInfo[] getDeclaredFields()
ClassInfo
getDeclaredFields in interface ClassInfo
public MethodInfo getDeclaredMethod(String name,
TypeInfo[] parameters)
ClassInfo
getDeclaredMethod in interface ClassInfoname - the method nameparameters - the parameters
public MethodInfo[] getDeclaredMethods()
ClassInfo
getDeclaredMethods in interface ClassInfopublic InterfaceInfo[] getGenericInterfaces()
ClassInfo
getGenericInterfaces in interface ClassInfopublic ClassInfo getGenericSuperclass()
ClassInfo
getGenericSuperclass in interface ClassInfopublic InterfaceInfo[] getInterfaces()
ClassInfo
getInterfaces in interface ClassInfopublic ClassInfo getSuperclass()
ClassInfo
getSuperclass in interface ClassInfopublic boolean isInterface()
ClassInfo
isInterface in interface ClassInfopublic AnnotationValue getAnnotation(String name)
AnnotatedInfo
getAnnotation in interface AnnotatedInfoname - the name
public AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations in interface AnnotatedInfopublic boolean isAnnotationPresent(String name)
AnnotatedInfo
isAnnotationPresent in interface AnnotatedInfoname - the name
public <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotatedInfo
getUnderlyingAnnotation in interface AnnotatedInfoT - the annotation typeannotationType - the annotationType
public Annotation[] getUnderlyingAnnotations()
AnnotatedInfo
getUnderlyingAnnotations in interface AnnotatedInfopublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedInfo
isAnnotationPresent in interface AnnotatedInfopublic int getModifiers()
ModifierInfo
getModifiers in interface ModifierInfopublic boolean isPublic()
ModifierInfo
isPublic in interface ModifierInfopublic boolean isStatic()
ModifierInfo
isStatic in interface ModifierInfopublic boolean isVolatile()
ModifierInfo
isVolatile in interface ModifierInfopublic boolean isPrimitive()
TypeInfo
isPrimitive in interface TypeInfoisPrimitive in class PrimitiveInfopublic TypeInfo[] getActualTypeArguments()
ClassInfo
getActualTypeArguments in interface ClassInfopublic TypeInfo getOwnerType()
ClassInfo
getOwnerType in interface ClassInfopublic ClassInfo getRawType()
ClassInfo
getRawType in interface ClassInfopublic TypeInfo getComponentType()
ClassInfo
getComponentType in interface ClassInfopublic TypeInfo getKeyType()
ClassInfo
getKeyType in interface ClassInfopublic TypeInfo getValueType()
ClassInfo
getValueType in interface ClassInfopublic PackageInfo getPackage()
ClassInfo
getPackage in interface ClassInfopublic Object clone()
clone in interface org.jboss.util.JBossInterfaceclone in class org.jboss.util.JBossObjectpublic String toShortString()
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class PrimitiveInfopublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||