public class FieldDescriptor extends Descriptor
| Modifier and Type | Field and Description |
|---|---|
static FieldDescriptor[] |
EMPTY_ARRAY |
protected java.lang.reflect.Field |
field |
protected MapperFunction |
mapperFunction |
protected java.lang.Class |
rawComponentType |
protected java.lang.Class |
rawKeyComponentType |
protected java.lang.Class |
rawType |
protected java.lang.reflect.Type |
type |
classDescriptor, isPublic| Constructor and Description |
|---|
FieldDescriptor(ClassDescriptor classDescriptor,
java.lang.reflect.Field field)
Creates new field descriptor and resolve all additional field data.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Field |
getField()
Returns field.
|
java.lang.String |
getName()
Returns field name.
|
java.lang.Class |
getRawComponentType()
Returns fields raw component type.
|
java.lang.Class |
getRawKeyComponentType()
Returns fields raw component type.
|
java.lang.Class |
getRawType()
Returns fields raw type.
|
java.lang.Class[] |
resolveRawComponentTypes()
Resolves raw component type for given index.
|
java.lang.String |
toString() |
getClassDescriptor, isPublic, matchDeclaredpublic static final FieldDescriptor[] EMPTY_ARRAY
protected final java.lang.reflect.Field field
protected final java.lang.reflect.Type type
protected final java.lang.Class rawType
protected final java.lang.Class rawComponentType
protected final java.lang.Class rawKeyComponentType
protected final MapperFunction mapperFunction
public FieldDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Field field)
public java.lang.String getName()
getName in class Descriptorpublic java.lang.reflect.Field getField()
public java.lang.Class getRawType()
public java.lang.Class getRawComponentType()
null
if field has no component type.public java.lang.Class getRawKeyComponentType()
null
if field has no component type.public java.lang.Class[] resolveRawComponentTypes()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-present Jodd Team