Interface MethodDescriptor

All Known Implementing Classes:
MethodDescriptorBase, MethodDescriptorCollection, MethodDescriptorMap, MethodDescriptorSimple

public interface MethodDescriptor
  • Method Details

    • getMethod

      Method getMethod()
      The method described by this descriptor
      Returns:
    • isGetter

      boolean isGetter()
    • isSetter

      default boolean isSetter()
      If a method is not a getter, it is by default assumed to be setter
      Returns:
    • isCollectionValued

      boolean isCollectionValued()
    • isDynamicCollection

      boolean isDynamicCollection()
      For signatures where the item type is dynamic based on a given class: Collection get(Class clazz) Only applies if isCollectionValued is true
      Returns:
    • getType

      Class<?> getType()
    • getItemType

      Class<?> getItemType()
    • getCollectionType

      Class<?> getCollectionType()
    • isMapType

      boolean isMapType()
    • getKeyType

      Class<?> getKeyType()
    • getValueType

      Class<?> getValueType()
    • isFluentCompatible

      boolean isFluentCompatible()
      Only applicable to setters - is the method's return type assignable from the method's declaring class?
      Returns:
    • simpleGetter

      static MethodDescriptor simpleGetter(Method method, Class<?> type)
    • simpleSetter

      static MethodDescriptor simpleSetter(Method method, boolean fluentCapable, Class<?> type)
    • collectionGetter

      static MethodDescriptor collectionGetter(Method method, Class<?> collectionType, Class<?> itemType)
    • collectionSetter

      static MethodDescriptor collectionSetter(Method method, boolean fluentCapable, Class<?> collectionType, Class<?> itemType)
    • dynamicCollectionGetter

      static MethodDescriptor dynamicCollectionGetter(Method method, Class<?> collectionType, Class<?> boundedItemType)
    • mapGetter

      static MethodDescriptor mapGetter(Method method, Map.Entry<Class<?>,Class<?>> mapTypes)
    • mapGetter

      static MethodDescriptor mapGetter(Method method, Class<?> keyType, Class<?> valueType)
    • mapSetter

      static MethodDescriptor mapSetter(Method method, boolean fluentCapable, Class<?> keyType, Class<?> valueType)