Class MixedInMetaClass

    • Constructor Detail

      • MixedInMetaClass

        public MixedInMetaClass​(Object instance,
                                Object owner)
    • Method Detail

      • invokeMethod

        public Object invokeMethod​(Class sender,
                                   Object receiver,
                                   String methodName,
                                   Object[] arguments,
                                   boolean isCallToSuper,
                                   boolean fromInsideClass)
        Description copied from interface: MetaClass

        Invokes a method on the given receiver for the specified arguments. The sender is the class that invoked the method on the object. The MetaClass will attempt to establish the method to invoke based on the name and arguments provided.

        The isCallToSuper and fromInsideClass help the Groovy runtime perform optimisations on the call to go directly to the super class if necessary

        Specified by:
        invokeMethod in interface MetaClass
        invokeMethod in class OwnedMetaClass
        sender - The java.lang.Class instance that invoked the method
        receiver - The object which the method was invoked on
        methodName - The name of the method
        arguments - The arguments to the method
        isCallToSuper - Whether the method is a call to a super class method
        fromInsideClass - Whether the call was invoked from the inside or the outside of the class
        The return value of the method