Class ResourceDMBean.FieldAccessor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Field field  
      protected static java.lang.invoke.MethodHandles.Lookup LOOKUP  
      protected java.lang.invoke.MethodHandle mh  
      protected java.lang.Object target  
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldAccessor​(java.lang.reflect.Field field, java.lang.Object target)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Field getField()  
      java.lang.Object invoke​(java.lang.Object new_val)
      Invokes a getter or setter.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • field

        protected final java.lang.reflect.Field field
      • target

        protected final java.lang.Object target
      • LOOKUP

        protected static final java.lang.invoke.MethodHandles.Lookup LOOKUP
      • mh

        protected java.lang.invoke.MethodHandle mh
    • Constructor Detail

      • FieldAccessor

        public FieldAccessor​(java.lang.reflect.Field field,
                             java.lang.Object target)
    • Method Detail

      • getField

        public java.lang.reflect.Field getField()
      • invoke

        public java.lang.Object invoke​(java.lang.Object new_val)
                                throws java.lang.Exception
        Description copied from interface: ResourceDMBean.Accessor
        Invokes a getter or setter. For the getter, new_val must be ignored (null)
        Specified by:
        invoke in interface ResourceDMBean.Accessor
        Throws:
        java.lang.Exception
      • toString

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