Class FieldHandleImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      FieldHandleImpl​(java.lang.String className, java.lang.String fieldName, int fieldIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.Object instance)
      Gets the current value of the field.
      void set​(java.lang.Object instance, java.lang.Object newValue)
      Updates the current value of the field.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • FieldHandleImpl

        public FieldHandleImpl​(java.lang.String className,
                               java.lang.String fieldName,
                               int fieldIndex)
    • Method Detail

      • toString

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

        public java.lang.Object get​(java.lang.Object instance)
        Description copied from interface: FieldHandle
        Gets the current value of the field. If the field is a primitive value, then the primitive will be wrapped.
        Specified by:
        get in interface FieldHandle
      • set

        public void set​(java.lang.Object instance,
                        java.lang.Object newValue)
        Description copied from interface: FieldHandle
        Updates the current value of the field. If the field is a primitive value, then the newValue will be unwrapped automatically.
        Specified by:
        set in interface FieldHandle