Class ExtensionMethod


  • public final class ExtensionMethod
    extends java.lang.Object
    Holder for a Class and a Method that together define which extension method was invoked.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Method method  
      private java.lang.Class<?> type  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtensionMethod​(java.lang.Class<?> type, java.lang.reflect.Method method)
      Creates a new extension method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method getMethod()
      Returns the method invoked.
      java.lang.Class<?> getType()
      Returns the type the method was invoked on.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • type

        private final java.lang.Class<?> type
      • method

        private final java.lang.reflect.Method method
    • Constructor Detail

      • ExtensionMethod

        public ExtensionMethod​(java.lang.Class<?> type,
                               java.lang.reflect.Method method)
        Creates a new extension method.
        Parameters:
        type - the type the method was invoked on
        method - the method invoked
    • Method Detail

      • getType

        public java.lang.Class<?> getType()
        Returns the type the method was invoked on.
        Returns:
        the type the method was invoked on.
      • getMethod

        public java.lang.reflect.Method getMethod()
        Returns the method invoked.
        Returns:
        the method invoked.
      • toString

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