Class JdkField

  • All Implemented Interfaces:
    ReflectField

    public class JdkField
    extends java.lang.Object
    implements ReflectField
    Reflection implementation for Field to map to JDK reflection.
    • Constructor Summary

      Constructors 
      Constructor Description
      JdkField​(Reflector reflector_, java.lang.reflect.Field field_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.Object onObject)  
      ReflectClass getFieldType()
      The ReflectClass returned by this method should have been provided by the parent reflector.
      java.lang.String getName()  
      java.lang.Object indexEntry​(java.lang.Object orig)  
      ReflectClass indexType()
      The ReflectClass returned by this method should have been provided by the parent reflector.
      boolean isPublic()  
      boolean isStatic()  
      boolean isTransient()  
      void set​(java.lang.Object onObject, java.lang.Object attribute)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JdkField

        public JdkField​(Reflector reflector_,
                        java.lang.reflect.Field field_)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface ReflectField
      • getFieldType

        public ReflectClass getFieldType()
        Description copied from interface: ReflectField
        The ReflectClass returned by this method should have been provided by the parent reflector.
        Specified by:
        getFieldType in interface ReflectField
        Returns:
        the ReflectClass representing the field type as provided by the parent reflector
      • get

        public java.lang.Object get​(java.lang.Object onObject)
        Specified by:
        get in interface ReflectField
      • set

        public void set​(java.lang.Object onObject,
                        java.lang.Object attribute)
        Specified by:
        set in interface ReflectField
      • indexEntry

        public java.lang.Object indexEntry​(java.lang.Object orig)
        Specified by:
        indexEntry in interface ReflectField
      • indexType

        public ReflectClass indexType()
        Description copied from interface: ReflectField
        The ReflectClass returned by this method should have been provided by the parent reflector.
        Specified by:
        indexType in interface ReflectField
        Returns:
        the ReflectClass representing the index type as provided by the parent reflector
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object