|
JBoss Reflection 2.2.1.SP1 | |||||||||
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
Nested Class Summary | |
---|---|
static class |
NumberInfo.Phase
The phase enum |
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 annotationName)
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 fieldName)
Get the declared field |
|
FieldInfo[] |
getDeclaredFields()
Get the declared fields |
|
MethodInfo |
getDeclaredMethod(String methodName,
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 |
|
NumberInfo.Phase |
getPhase()
Get the phase. |
|
ClassInfo |
getRawType()
Get the raw type |
|
ClassInfo |
getSuperclass()
Get the super class |
|
String |
getTypeVariable()
Gets the type variable if we are a parameterized type which is part of a parameterized type and there is a type variable for this type. |
|
|
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 |
|
void |
initializing()
Are we currently initializing delegate. |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Test whether an annotation is present |
|
boolean |
isAnnotationPresent(String annotationName)
Test whether an annotation is present |
|
boolean |
isInterface()
Whether it is an interface |
|
boolean |
isPrimitive()
Whether this type is a primitive |
|
boolean |
isPublic()
|
|
boolean |
isStatic()
Whether it is static |
|
boolean |
isVolatile()
Whether it is volatile |
|
void |
setDelegate(TypeInfo info)
Set the delegate |
|
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
|
protected void |
toString(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 |
---|
canProgress, convertValue, convertValue, convertValue, getArrayType, getClassLoader, getName, getPrimativeArrayComponentType, getPrimativeArrayType, getPrimativeType, getSimpleName, getType, getTypeInfoFactory, hashCode, isAssignableFrom, isInstance, newArrayInstance, ordinal, toShortString, 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, 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.util.JBossInterface |
---|
toShortString |
Methods inherited from interface org.jboss.reflect.spi.TypeInfo |
---|
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getClassLoader, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, 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 classMethod 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 NumberInfo.Phase getPhase()
public void initializing()
public boolean equals(Object obj)
equals
in class PrimitiveInfo
public ConstructorInfo getDeclaredConstructor(TypeInfo... parameters)
ClassInfo
getDeclaredConstructor
in interface ClassInfo
parameters
- the parameters
public ConstructorInfo[] getDeclaredConstructors()
ClassInfo
getDeclaredConstructors
in interface ClassInfo
public FieldInfo getDeclaredField(String fieldName)
ClassInfo
getDeclaredField
in interface ClassInfo
fieldName
- the field name
public FieldInfo[] getDeclaredFields()
ClassInfo
getDeclaredFields
in interface ClassInfo
public MethodInfo getDeclaredMethod(String methodName, TypeInfo... parameters)
ClassInfo
getDeclaredMethod
in interface ClassInfo
methodName
- the method nameparameters
- the parameters
public MethodInfo[] getDeclaredMethods()
ClassInfo
getDeclaredMethods
in interface ClassInfo
public InterfaceInfo[] getGenericInterfaces()
ClassInfo
getGenericInterfaces
in interface ClassInfo
public ClassInfo getGenericSuperclass()
ClassInfo
getGenericSuperclass
in interface ClassInfo
public InterfaceInfo[] getInterfaces()
ClassInfo
getInterfaces
in interface ClassInfo
public ClassInfo getSuperclass()
ClassInfo
getSuperclass
in interface ClassInfo
public boolean isInterface()
ClassInfo
isInterface
in interface ClassInfo
public AnnotationValue getAnnotation(String annotationName)
AnnotatedInfo
getAnnotation
in interface AnnotatedInfo
annotationName
- the name
public AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations
in interface AnnotatedInfo
public boolean isAnnotationPresent(String annotationName)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
annotationName
- the name
public <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotatedInfo
getUnderlyingAnnotation
in interface AnnotatedInfo
T
- the annotation typeannotationType
- the annotationType
public Annotation[] getUnderlyingAnnotations()
AnnotatedInfo
getUnderlyingAnnotations
in interface AnnotatedInfo
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
public int getModifiers()
ModifierInfo
getModifiers
in interface ModifierInfo
public boolean isPublic()
isPublic
in interface ModifierInfo
public boolean isStatic()
ModifierInfo
isStatic
in interface ModifierInfo
public boolean isVolatile()
ModifierInfo
isVolatile
in interface ModifierInfo
public boolean isPrimitive()
TypeInfo
isPrimitive
in interface TypeInfo
isPrimitive
in class PrimitiveInfo
public TypeInfo[] getActualTypeArguments()
ClassInfo
getActualTypeArguments
in interface ClassInfo
public TypeInfo getOwnerType()
ClassInfo
getOwnerType
in interface ClassInfo
public ClassInfo getRawType()
ClassInfo
getRawType
in interface ClassInfo
public TypeInfo getComponentType()
ClassInfo
getComponentType
in interface ClassInfo
public TypeInfo getKeyType()
ClassInfo
getKeyType
in interface ClassInfo
public TypeInfo getValueType()
ClassInfo
getValueType
in interface ClassInfo
public PackageInfo getPackage()
ClassInfo
getPackage
in interface ClassInfo
public Object clone()
clone
in interface org.jboss.util.JBossInterface
clone
in class org.jboss.util.JBossObject
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public String getTypeVariable()
ClassInfo
getTypeVariable
in interface ClassInfo
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |