|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Type<T>
The interface Type
is similar in function to the class
Class
. It represents a type of the Java programming
language and provides access to its properties (e.g., name, members).
In contrast to Class
, an instance of Type
does not necessarily represent a compiled class (available as byte-code),
it may also represent an object which provides functionality similar
to real classes.
Field Summary | |
---|---|
static Type<java.lang.Boolean> |
BOOLEAN
Represents the primitive type boolean . |
static Type<java.lang.Byte> |
BYTE
Represents the primitive type byte . |
static Type<java.lang.Character> |
CHAR
Represents the primitive type char . |
static Type<java.lang.Class> |
CLASS
Represents the class Class . |
static Type<java.lang.Double> |
DOUBLE
Represents the primitive type double . |
static Type<java.lang.Float> |
FLOAT
Represents the primitive type float . |
static Type<java.lang.Number> |
FLOATING_POINT
Direct supertype for primitive floating-point types. |
static Type<java.lang.Integer> |
INT
Represents the primitive type int . |
static Type<java.lang.Number> |
INTEGRAL
Direct supertype for primitive integral types. |
static Type |
INVALID
Represents an invalid type. |
static int |
LOCAL_CLASS_MODIFIERS
Mask representing the valid modifiers for local classes. |
static Type<java.lang.Long> |
LONG
Represents the primitive type long . |
static int |
MEMBER_CLASS_MODIFIERS
Mask representing the valid modifiers for member classes. |
static int |
MEMBER_INTERFACE_MODIFIERS
Mask representing the valid modifiers for member interfaces. |
static Type<?> |
NULL
Represents the null type of the Java programming language. |
static Type<java.lang.Number> |
NUMBER
Represents the class Number . |
static Type<java.lang.Number> |
NUMERIC
Base type for all primitive numeric types. |
static Type<java.lang.Object> |
OBJECT
Represents the class Object . |
static Type<java.lang.Short> |
SHORT
Represents the primitive type short . |
static Type<java.lang.String> |
STRING
Represents the class String . |
static int |
TOP_LEVEL_CLASS_MODIFIERS
Mask representing the valid modifiers for top-level classes. |
static int |
TOP_LEVEL_INTERFACE_MODIFIERS
Mask representing the valid modifiers for top-level interfaces. |
static Type<Type> |
TYPE
Represents the interface Type . |
static Type[] |
TYPE_0
Immutable array of length 0. |
static Type<java.lang.Void> |
VOID
Represents the primitive type void . |
Fields inherited from interface de.grogra.reflect.Member |
---|
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
Method Summary | |
---|---|
T |
cloneObject(T o,
boolean deep)
|
java.lang.Object |
createArray(int length)
|
Type<?> |
getArrayType()
|
java.lang.String |
getBinaryName()
|
Type<?> |
getComponentType()
|
Field |
getDeclaredField(int index)
|
int |
getDeclaredFieldCount()
|
Type<?> |
getDeclaredInterface(int index)
|
int |
getDeclaredInterfaceCount()
|
Method |
getDeclaredMethod(int index)
|
int |
getDeclaredMethodCount()
|
Type<?> |
getDeclaredType(int index)
|
int |
getDeclaredTypeCount()
|
java.lang.Object |
getDefaultElementValue(java.lang.String name)
|
java.lang.Class<T> |
getImplementationClass()
|
Lookup |
getLookup()
|
java.lang.String |
getPackage()
|
Type<? super T> |
getSupertype()
|
int |
getTypeId()
Returns the type id of this type. |
TypeLoader |
getTypeLoader()
|
boolean |
isInstance(java.lang.Object object)
|
boolean |
isStringSerializable()
|
T |
newInstance()
|
T |
valueOf(java.lang.String s)
|
Methods inherited from interface de.grogra.reflect.Member |
---|
getDeclaredAnnotation, getDeclaredAnnotationCount, getDeclaringType, getDescriptor, getModifiers, getName, getSimpleName |
Field Detail |
---|
static final Type<java.lang.Boolean> BOOLEAN
boolean
.
static final Type<java.lang.Byte> BYTE
byte
. The direct
supertype is INTEGRAL
.
static final Type<java.lang.Character> CHAR
char
. The direct
supertype is INTEGRAL
.
static final Type<java.lang.Class> CLASS
Class
.
static final Type<java.lang.Double> DOUBLE
double
. The direct
supertype is FLOATING_POINT
.
static final Type<java.lang.Float> FLOAT
float
. The direct
supertype is FLOATING_POINT
.
static final Type<java.lang.Number> FLOATING_POINT
static final Type<java.lang.Integer> INT
int
. The direct
supertype is INTEGRAL
.
static final Type<java.lang.Number> INTEGRAL
static final Type INVALID
static final int LOCAL_CLASS_MODIFIERS
static final Type<java.lang.Long> LONG
long
. The direct
supertype is INTEGRAL
.
static final int MEMBER_CLASS_MODIFIERS
static final int MEMBER_INTERFACE_MODIFIERS
static final Type<?> NULL
static final Type<java.lang.Number> NUMBER
Number
.
static final Type<java.lang.Number> NUMERIC
static final Type<java.lang.Object> OBJECT
Object
.
static final Type<java.lang.Short> SHORT
short
. The direct
supertype is INTEGRAL
.
static final Type<java.lang.String> STRING
String
.
static final int TOP_LEVEL_CLASS_MODIFIERS
static final int TOP_LEVEL_INTERFACE_MODIFIERS
static final Type<Type> TYPE
Type
.
static final Type[] TYPE_0
static final Type<java.lang.Void> VOID
void
.
Method Detail |
---|
T cloneObject(T o, boolean deep) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
java.lang.Object createArray(int length)
Type<?> getArrayType()
java.lang.String getBinaryName()
Type<?> getComponentType()
Field getDeclaredField(int index)
int getDeclaredFieldCount()
Type<?> getDeclaredInterface(int index)
int getDeclaredInterfaceCount()
Method getDeclaredMethod(int index)
int getDeclaredMethodCount()
Type<?> getDeclaredType(int index)
int getDeclaredTypeCount()
java.lang.Object getDefaultElementValue(java.lang.String name)
java.lang.Class<T> getImplementationClass()
Lookup getLookup()
java.lang.String getPackage()
Type<? super T> getSupertype()
int getTypeId()
TypeId
TypeLoader getTypeLoader()
boolean isInstance(java.lang.Object object)
boolean isStringSerializable()
T newInstance() throws java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
java.lang.IllegalAccessException
T valueOf(java.lang.String s)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |