Package org.codehaus.groovy.reflection
Class ParameterTypes
- java.lang.Object
-
- org.codehaus.groovy.reflection.ParameterTypes
-
- Direct Known Subclasses:
CachedConstructor,MetaMethod
public class ParameterTypes extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisVargsMethodprotected Class[]nativeParamTypesprotected CachedClass[]parameterTypes
-
Constructor Summary
Constructors Constructor Description ParameterTypes()ParameterTypes(Class[] pt)ParameterTypes(String[] pt)ParameterTypes(CachedClass[] parameterTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]coerceArgumentsToClasses(Object[] argumentArray)Object[]correctArguments(Object[] argumentArray)Class[]getNativeParameterTypes()CachedClass[]getParameterTypes()protected Class[]getPT()booleanisValidExactMethod(Class[] args)booleanisValidExactMethod(Object[] args)booleanisValidMethod(Class[] arguments)booleanisValidMethod(Object[] arguments)booleanisVargsMethod()booleanisVargsMethod(Object[] arguments)protected voidsetParametersTypes(CachedClass[] pt)
-
-
-
Field Detail
-
nativeParamTypes
protected volatile Class[] nativeParamTypes
-
parameterTypes
protected volatile CachedClass[] parameterTypes
-
isVargsMethod
protected boolean isVargsMethod
-
-
Constructor Detail
-
ParameterTypes
public ParameterTypes()
-
ParameterTypes
public ParameterTypes(Class[] pt)
-
ParameterTypes
public ParameterTypes(String[] pt)
-
ParameterTypes
public ParameterTypes(CachedClass[] parameterTypes)
-
-
Method Detail
-
setParametersTypes
protected final void setParametersTypes(CachedClass[] pt)
-
getParameterTypes
public CachedClass[] getParameterTypes()
-
getNativeParameterTypes
public Class[] getNativeParameterTypes()
-
getPT
protected Class[] getPT()
-
isVargsMethod
public boolean isVargsMethod()
-
isVargsMethod
public boolean isVargsMethod(Object[] arguments)
-
isValidMethod
public boolean isValidMethod(Class[] arguments)
-
isValidExactMethod
public boolean isValidExactMethod(Object[] args)
-
isValidExactMethod
public boolean isValidExactMethod(Class[] args)
-
isValidMethod
public boolean isValidMethod(Object[] arguments)
-
-