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 Details

    • EMPTY_ARRAY

      public static final FieldDescriptor[] EMPTY_ARRAY
    • field

      protected final Field field
    • type

      protected final Type type
    • rawType

      protected final Class rawType
    • rawComponentType

      protected final Class rawComponentType
    • rawKeyComponentType

      protected final Class rawKeyComponentType
    • mapperFunction

      protected final MapperFunction mapperFunction
  • Constructor Details

    • FieldDescriptor

      public FieldDescriptor(ClassDescriptor classDescriptor, Field field)
      Creates new field descriptor and resolve all additional field data. Also, forces access to a field.
  • Method Details

    • getName

      public String getName()
      Returns field name.
      Specified by:
      getName in class Descriptor
    • getField

      public Field getField()
      Returns field.
    • getRawType

      public Class getRawType()
      Returns fields raw type.
    • getRawComponentType

      public Class getRawComponentType()
      Returns fields raw component type. Returns null if field has no component type.
    • getRawKeyComponentType

      public Class getRawKeyComponentType()
      Returns fields raw component type. Returns null if field has no component type.
    • resolveRawComponentTypes

      public Class[] resolveRawComponentTypes()
      Resolves raw component type for given index. This value is NOT cached.
    • toString

      public String toString()
      Overrides:
      toString in class Object