Package org.codehaus.groovy.ast.tools
Class ParameterUtils
- java.lang.Object
 - 
- org.codehaus.groovy.ast.tools.ParameterUtils
 
 
- 
public class ParameterUtils extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description ParameterUtils() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanparametersCompatible(Parameter[] source, Parameter[] target)Checks if two parameter arrays are type-compatible.static booleanparametersEqual(Parameter[] a, Parameter[] b)static booleanparametersEqualWithWrapperType(Parameter[] a, Parameter[] b) 
 - 
 
- 
- 
Method Detail
- 
parametersEqualWithWrapperType
public static boolean parametersEqualWithWrapperType(Parameter[] a, Parameter[] b)
 
- 
parametersCompatible
public static boolean parametersCompatible(Parameter[] source, Parameter[] target)
Checks if two parameter arrays are type-compatible. each parameter should match the following condition:targetParameter.getType().getTypeClass().isAssignableFrom(sourceParameter.getType().getTypeClass())- Parameters:
 source- source parameterstarget- target parameters- Returns:
 - the check result
 - Since:
 - 3.0.0
 
 
 - 
 
 -