Class SInvocation.FallBackInvoker

  • All Implemented Interfaces:
    IMethodInvoker
    Enclosing class:
    SInvocation

    protected static class SInvocation.FallBackInvoker
    extends java.lang.Object
    implements IMethodInvoker
    Fallback invoker using reflection in case a byte-engineered variant is not available.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Method method
      The method.
    • Constructor Summary

      Constructors 
      Constructor Description
      FallBackInvoker​(java.lang.reflect.Method method)
      Creates the invoker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object object, java.lang.Object... args)
      Invokes a method on an object.
      • Methods inherited from class java.lang.Object

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

      • method

        protected java.lang.reflect.Method method
        The method.
    • Constructor Detail

      • FallBackInvoker

        public FallBackInvoker​(java.lang.reflect.Method method)
        Creates the invoker.
        Parameters:
        method - Method to invoke.
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object object,
                                       java.lang.Object... args)
        Invokes a method on an object.
        Specified by:
        invoke in interface IMethodInvoker
        Parameters:
        object - The object
        methodid - The ID of the method.
        args - The method arguments.
        Returns:
        The result, null if void.