public class GroovyCallSiteSelector extends Object
| Modifier and Type | Method and Description |
|---|---|
static Constructor<?> |
findConstructor(Class<?> type,
Object[] args,
Class<?> expectedConstructorWrapper)
Find the
Constructor that Groovy will invoke at runtime for the given type and arguments. |
static String |
formatConstructor(Class<?> c,
Object... args) |
static String |
getName(Object o) |
static boolean |
isMoreSpecific(org.codehaus.groovy.reflection.ParameterTypes paramsForCandidate,
org.codehaus.groovy.reflection.ParameterTypes paramsForBaseline,
Class<?>[] argTypes) |
public static Constructor<?> findConstructor(Class<?> type, Object[] args, Class<?> expectedConstructorWrapper)
Constructor that Groovy will invoke at runtime for the given type and arguments.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.public static boolean isMoreSpecific(org.codehaus.groovy.reflection.ParameterTypes paramsForCandidate,
org.codehaus.groovy.reflection.ParameterTypes paramsForBaseline,
Class<?>[] argTypes)
Copyright © 2004–2022. All rights reserved.