Class SandboxedMethodClosure

java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure
org.codehaus.groovy.runtime.MethodClosure
org.kohsuke.groovy.sandbox.impl.SandboxedMethodClosure
All Implemented Interfaces:
groovy.lang.GroovyCallable, groovy.lang.GroovyObject, Serializable, Cloneable, Runnable, Callable

public class SandboxedMethodClosure extends org.codehaus.groovy.runtime.MethodClosure
MethodClosure that checks the call.
Author:
Kohsuke Kawaguchi
See Also:
  • Field Summary

    Fields inherited from class org.codehaus.groovy.runtime.MethodClosure

    ALLOW_RESOLVE

    Fields inherited from class groovy.lang.Closure

    DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
     
    protected Object
    doCall(Object arguments)
     
    protected Object
    doCall(Object[] arguments)
    Special logic needed to handle invocation due to not being an instance of MethodClosure itself.

    Methods inherited from class org.codehaus.groovy.runtime.MethodClosure

    getMethod, getProperty

    Methods inherited from class groovy.lang.Closure

    asWritable, call, call, call, clone, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline

    Methods inherited from class groovy.lang.GroovyObjectSupport

    getMetaClass, invokeMethod, setMetaClass

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SandboxedMethodClosure

      public SandboxedMethodClosure(Object owner, String method)
  • Method Details

    • doCall

      protected Object doCall(Object[] arguments)
      Special logic needed to handle invocation due to not being an instance of MethodClosure itself. See MetaClassImpl.invokeMethod(Class, Object, String, Object[], boolean, boolean) and its special handling of objectClass == MethodClosure.class.
    • doCall

      protected Object doCall()
    • doCall

      protected Object doCall(Object arguments)
      Overrides:
      doCall in class org.codehaus.groovy.runtime.MethodClosure