Class OptimizedAccessorFactory


  • public abstract class OptimizedAccessorFactory
    extends java.lang.Object
    Author:
    Kohsuke Kawaguchi
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <B,​V>
      Accessor<B,​V>
      get​(java.lang.reflect.Field field)
      Gets the optimized Accessor that accesses the given field.
      static <B,​V>
      Accessor<B,​V>
      get​(java.lang.reflect.Method getter, java.lang.reflect.Method setter)
      Gets the optimized Accessor that accesses the given getter/setter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public static final <B,​V> Accessor<B,​V> get​(java.lang.reflect.Method getter,
                                                                java.lang.reflect.Method setter)
        Gets the optimized Accessor that accesses the given getter/setter.
        Returns:
        null if for some reason it fails to create an optimized version.
      • get

        public static final <B,​V> Accessor<B,​V> get​(java.lang.reflect.Field field)
        Gets the optimized Accessor that accesses the given field.
        Returns:
        null if for some reason it fails to create an optimized version.