public class NumberInfo extends PrimitiveInfo implements ClassInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberInfo.Phase
The phase enum
|
| Modifier and Type | Field and Description |
|---|---|
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
|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, name, ordinal, SHORT, type, typeInfoFactory, VOIDABSTRACT, 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| Modifier | Constructor and Description |
|---|---|
protected |
NumberInfo(int ordinal,
Class<? extends Object> type)
Create a new number info
|
| Modifier and Type | Method and Description |
|---|---|
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
|
NumberInfo.Phase |
getPhase()
Get the phase.
|
ClassInfo |
getRawType()
Get the raw type
|
ClassInfo |
getSuperclass()
Get the super class
|
<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
|
void |
initializing()
Are we currently initializing delegate.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
Test whether an annotation is present
|
boolean |
isAnnotationPresent(String name)
Test whether an annotation is present
|
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
|
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
|
canProgress, convertValue, convertValue, convertValue, getArrayType, getName, getPrimativeArrayComponentType, getPrimativeArrayType, getPrimativeType, getSimpleName, getType, getTypeInfoFactory, hashCode, isAssignableFrom, isInstance, newArrayInstance, ordinal, toShortString, toStringgetAttachment, getAttachment, isAnnotation, isArray, isCollection, isEnum, isMap, setAttachmentcacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitconvertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, newArrayInstance, setAttachmentpublic 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
public static NumberInfo valueOf(String name)
name - the namepublic void setDelegate(TypeInfo info)
info - the delegate infoIllegalArgumentException - if the delegate is null or not a class infopublic NumberInfo.Phase getPhase()
public void initializing()
public boolean equals(Object obj)
equals in class PrimitiveInfopublic 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 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 boolean isPrimitive()
TypeInfoisPrimitive in interface TypeInfoisPrimitive in class PrimitiveInfopublic 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 ClassInfopublic Object clone()
clone in interface org.jboss.util.JBossInterfaceclone 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.