Package org.kohsuke.groovy.sandbox.impl
Class GroovyCallSiteSelector
java.lang.Object
org.kohsuke.groovy.sandbox.impl.GroovyCallSiteSelector
-
Method Summary
Modifier and TypeMethodDescriptionstatic Constructor<?>findConstructor(Class<?> type, Object[] args, Class<?> expectedConstructorWrapper) Find theConstructorthat Groovy will invoke at runtime for the given type and arguments.static StringformatConstructor(Class<?> c, Object... args) static Stringstatic booleanisMoreSpecific(org.codehaus.groovy.reflection.ParameterTypes paramsForCandidate, org.codehaus.groovy.reflection.ParameterTypes paramsForBaseline, Class<?>[] argTypes)
-
Method Details
-
findConstructor
public static Constructor<?> findConstructor(Class<?> type, Object[] args, Class<?> expectedConstructorWrapper) Find theConstructorthat Groovy will invoke at runtime for the given type and arguments.- Throws:
SecurityException- if no valid constructor is found, or if the constructor is a synthetic constructor added by SandboxTransformer and the constructor wrapper argument is invalid.
-
isMoreSpecific
public static boolean isMoreSpecific(org.codehaus.groovy.reflection.ParameterTypes paramsForCandidate, org.codehaus.groovy.reflection.ParameterTypes paramsForBaseline, Class<?>[] argTypes) -
formatConstructor
-
getName
-