Class GroovyCallSiteSelector

java.lang.Object
org.kohsuke.groovy.sandbox.impl.GroovyCallSiteSelector

public class GroovyCallSiteSelector extends Object
  • Method Details

    • findConstructor

      public static Constructor<?> findConstructor(Class<?> type, Object[] args, Class<?> expectedConstructorWrapper)
      Find the Constructor that 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

      public static String formatConstructor(Class<?> c, Object... args)
    • getName

      public static String getName(Object o)