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, VOID
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
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, toString
getAttachment, getAttachment, isAnnotation, isArray, isCollection, isEnum, isMap, setAttachment
cacheGetHashCode, cacheToString, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
convertValue, convertValue, convertValue, getArrayType, getAttachment, getAttachment, getSimpleName, getType, getTypeInfoFactory, isAnnotation, isArray, isAssignableFrom, isCollection, isEnum, isInstance, isMap, newArrayInstance, setAttachment
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
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 PrimitiveInfo
public ConstructorInfo getDeclaredConstructor(TypeInfo[] parameters)
ClassInfo
getDeclaredConstructor
in interface ClassInfo
parameters
- the parameterspublic ConstructorInfo[] getDeclaredConstructors()
ClassInfo
getDeclaredConstructors
in interface ClassInfo
public FieldInfo getDeclaredField(String name)
ClassInfo
getDeclaredField
in interface ClassInfo
name
- the field namepublic FieldInfo[] getDeclaredFields()
ClassInfo
getDeclaredFields
in interface ClassInfo
public MethodInfo getDeclaredMethod(String name, TypeInfo[] parameters)
ClassInfo
getDeclaredMethod
in interface ClassInfo
name
- the method nameparameters
- the parameterspublic 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 name)
AnnotatedInfo
getAnnotation
in interface AnnotatedInfo
name
- the namepublic AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations
in interface AnnotatedInfo
public boolean isAnnotationPresent(String name)
AnnotatedInfo
isAnnotationPresent
in interface AnnotatedInfo
name
- the namepublic <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
AnnotatedInfo
getUnderlyingAnnotation
in interface AnnotatedInfo
T
- the annotation typeannotationType
- the annotationTypepublic 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()
ModifierInfo
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
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.