Class TransformMetaMethod

  • All Implemented Interfaces:

    public class TransformMetaMethod
    extends MetaMethod
    A MetaMethod implementation useful for implementing coercion based invocations
    • Constructor Detail

      • TransformMetaMethod

        public TransformMetaMethod​(MetaMethod metaMethod)
    • Method Detail

      • getModifiers

        public int getModifiers()
        Description copied from class: MetaMethod
        Returns the modifiers for this method
        Specified by:
        getModifiers in class MetaMethod
        modifiers as an int.
      • getName

        public java.lang.String getName()
        Description copied from class: MetaMethod
        Returns the name of the method represented by this class
        Specified by:
        getName in class MetaMethod
        name of this method
      • getReturnType

        public java.lang.Class getReturnType()
        Description copied from class: MetaMethod
        Access the return type for this method
        Specified by:
        getReturnType in class MetaMethod
        the return type of this method
      • invoke

        public java.lang.Object invoke​(java.lang.Object object,
                                       java.lang.Object[] arguments)
        Description copied from class: MetaMethod
        Invoke this method
        Specified by:
        invoke in class MetaMethod
        object - The object this method should be invoked on
        arguments - The arguments for the method if applicable
        The return value of the invocation