Package jodd.introspector
Class FieldDescriptor
- java.lang.Object
-
- jodd.introspector.Descriptor
-
- jodd.introspector.FieldDescriptor
-
public class FieldDescriptor extends Descriptor
Field descriptor. Holds additional field data, that might be specific to implementation class.
-
-
Field Summary
Fields Modifier and Type Field Description static FieldDescriptor[]EMPTY_ARRAYprotected java.lang.reflect.Fieldfieldprotected MapperFunctionmapperFunctionprotected java.lang.ClassrawComponentTypeprotected java.lang.ClassrawKeyComponentTypeprotected java.lang.ClassrawTypeprotected java.lang.reflect.Typetype-
Fields inherited from class jodd.introspector.Descriptor
classDescriptor, isPublic
-
-
Constructor Summary
Constructors Constructor Description FieldDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Field field)Creates new field descriptor and resolve all additional field data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.FieldgetField()Returns field.java.lang.StringgetName()Returns field name.java.lang.ClassgetRawComponentType()Returns fields raw component type.java.lang.ClassgetRawKeyComponentType()Returns fields raw component type.java.lang.ClassgetRawType()Returns fields raw type.java.lang.Class[]resolveRawComponentTypes()Resolves raw component type for given index.java.lang.StringtoString()-
Methods inherited from class jodd.introspector.Descriptor
getClassDescriptor, isPublic, matchDeclared
-
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final FieldDescriptor[] EMPTY_ARRAY
-
field
protected final java.lang.reflect.Field field
-
type
protected final java.lang.reflect.Type type
-
rawType
protected final java.lang.Class rawType
-
rawComponentType
protected final java.lang.Class rawComponentType
-
rawKeyComponentType
protected final java.lang.Class rawKeyComponentType
-
mapperFunction
protected final MapperFunction mapperFunction
-
-
Constructor Detail
-
FieldDescriptor
public FieldDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Field field)
Creates new field descriptor and resolve all additional field data. Also, forces access to a field.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns field name.- Specified by:
getNamein classDescriptor
-
getField
public java.lang.reflect.Field getField()
Returns field.
-
getRawType
public java.lang.Class getRawType()
Returns fields raw type.
-
getRawComponentType
public java.lang.Class getRawComponentType()
Returns fields raw component type. Returnsnullif field has no component type.
-
getRawKeyComponentType
public java.lang.Class getRawKeyComponentType()
Returns fields raw component type. Returnsnullif field has no component type.
-
resolveRawComponentTypes
public java.lang.Class[] resolveRawComponentTypes()
Resolves raw component type for given index. This value is NOT cached.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-