Class TypeUtil.FieldInfo

  • Enclosing class:
    TypeUtil

    public static class TypeUtil.FieldInfo
    extends java.lang.Object
    Inner class to hold info on a field.
    Author:
    Matthew Wakeling, Andrew Varley
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldInfo​(java.lang.String name, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.reflect.Method proxySetter, java.lang.reflect.Method proxyGetter, java.lang.reflect.Method adder)
      Construct a new FieldInfo object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method getAdder()
      Returns the adder Method.
      java.lang.Class<? extends FastPathObject> getElementType()
      Returns the collection element type of the field.
      java.lang.reflect.Method getGetter()
      Returns the getter Method.
      java.lang.String getName()
      Returns the field name
      java.lang.reflect.Method getProxyGetter()
      Returns the proxyGetter Method.
      java.lang.reflect.Method getProxySetter()
      Returns the proxySetter Method.
      java.lang.reflect.Method getSetter()
      Returns the setter Method.
      java.lang.Class<?> getType()
      Returns the type of the field.
      • Methods inherited from class java.lang.Object

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

      • FieldInfo

        public FieldInfo​(java.lang.String name,
                         java.lang.reflect.Method getter,
                         java.lang.reflect.Method setter,
                         java.lang.reflect.Method proxySetter,
                         java.lang.reflect.Method proxyGetter,
                         java.lang.reflect.Method adder)
        Construct a new FieldInfo object.
        Parameters:
        name - the field name
        getter - the getter Method to retrieve the value
        setter - the setter Method to alter the value
        proxySetter - the setter Method to set the value to a ProxyReference
        proxyGetter - the getter Method to get the value without dereferencing ProxyReferences
        adder - the adder Method to add elements to a collection
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the field name
        Returns:
        a String
      • getGetter

        public java.lang.reflect.Method getGetter()
        Returns the getter Method.
        Returns:
        a getter Method
      • getSetter

        public java.lang.reflect.Method getSetter()
        Returns the setter Method.
        Returns:
        a setter Method
      • getProxySetter

        public java.lang.reflect.Method getProxySetter()
        Returns the proxySetter Method.
        Returns:
        a proxySetter Method
      • getProxyGetter

        public java.lang.reflect.Method getProxyGetter()
        Returns the proxyGetter Method.
        Returns:
        a proxyGetter Method
      • getAdder

        public java.lang.reflect.Method getAdder()
        Returns the adder Method.
        Returns:
        an adder Method
      • getType

        public java.lang.Class<?> getType()
        Returns the type of the field.
        Returns:
        a Class object
      • getElementType

        public java.lang.Class<? extends FastPathObject> getElementType()
        Returns the collection element type of the field.
        Returns:
        a Class