public interface ObjectType<T> extends AnyType<T>
Modifier and Type | Method and Description |
---|---|
<E> FieldType<E> |
findField(java.lang.String name)
Get field type.
|
AnyType |
getAdapterArgument(int index)
Get generic argument for the processed class.
For a class A<E> extending B<T> where only B have adapter, this methods return the generic argument know for B ( the adapter type ). To known the generic arguments of A ( this type ), use getGenericArgument(int) |
AnyType[] |
getAdapterArguments()
Get generic arguments for the processed class.
For a class A<E> extending B<T> where only B have adapter, this methods return the generic arguments know for B ( the adapter type ). To known the generic arguments of A ( this type ), use getGenericArguments() |
<E> FieldType<E> |
getField(java.lang.String name)
Get field type.
|
<E> FieldType<E> |
getField(java.lang.String name,
int index)
Get field type.
|
FieldType[] |
getFields()
Get all fields of this
AnyType.getType() class, this method does not return field of super classThe result only contains fields that matching the filter defined by Odin.setFieldFilter(Predicate) |
AnyType |
getGenericArgument(int index)
Get generic argument in given index, if this type does not have generic type arguments, this method return an unknown type instance.
Else this methods load all arguments during the first call to getAdapterArguments() or this method.For a class A<E> extending B<T> where only B have adapter, this methods return the generic argument know for A ( this type ). To known the generic arguments of B ( the adapter type ), use getAdapterArgument(int) |
AnyType[] |
getGenericArguments()
Get generic arguments array, if this type does not have generic type arguments, this method return an empty type array.
Else this methods load all arguments during the first call to getAdapterArguments() or this method.For a class A<E> extending B<T> where only B have adapter, this methods return the generic argument know for A ( this type ). To known the generic arguments of B ( the adapter type ), use getAdapterArguments() |
ObjectType<? super T> |
getSuperClass()
Get the type representing the
Class.getGenericSuperclass() |
ObjectType<? super T> |
getSuperClass(java.lang.Class<? super T> target)
Get a super class of this type, the target can be class or interface
|
T |
newInstance()
Create new object instance.
|
T newInstance()
ObjectType<? super T> getSuperClass()
Class.getGenericSuperclass()
ObjectType<? super T> getSuperClass(java.lang.Class<? super T> target)
target
- target classAnyType getAdapterArgument(int index)
getGenericArgument(int)
index
- argument indexAnyType[] getAdapterArguments()
getGenericArguments()
AnyType getGenericArgument(int index)
getAdapterArguments()
or this method.getAdapterArgument(int)
index
- argument indexAnyType[] getGenericArguments()
getAdapterArguments()
or this method.getAdapterArguments()
<E> FieldType<E> findField(java.lang.String name)
AnyType.getType()
class and then in all superclass recursively while no field is found for this name.Odin.setFieldFilter(Predicate)
E
- field content typename
- field name<E> FieldType<E> getField(java.lang.String name)
AnyType.getType()
class.Odin.setFieldFilter(Predicate)
E
- field content typename
- field name<E> FieldType<E> getField(java.lang.String name, int index)
Odin.setFieldFilter(Predicate)
E
- field content typename
- field nameindex
- field indexFieldType[] getFields()
AnyType.getType()
class, this method does not return field of super classOdin.setFieldFilter(Predicate)