Package org.kohsuke.groovy.sandbox.impl
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_RESOLVEFields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.groovy.runtime.MethodClosure
getMethod, getPropertyMethods 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, trampolineMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass
-
Constructor Details
-
SandboxedMethodClosure
-
-
Method Details
-
doCall
Special logic needed to handle invocation due to not being an instance of MethodClosure itself. SeeMetaClassImpl.invokeMethod(Class, Object, String, Object[], boolean, boolean)and its special handling ofobjectClass == MethodClosure.class. -
doCall
-
doCall
- Overrides:
doCallin classorg.codehaus.groovy.runtime.MethodClosure
-