org.codehaus.groovy.grails.commons.metaclass
Class AbstractDynamicConstructor
java.lang.Object
org.codehaus.groovy.grails.commons.metaclass.AbstractDynamicConstructor
- All Implemented Interfaces:
- DynamicConstructor
public abstract class AbstractDynamicConstructor
- extends Object
- implements DynamicConstructor
Abstract class that provides default implementation for isArgumentsMatch.
- Since:
- 0.2
- Author:
- Graeme Rocher
Method Summary |
boolean |
isArgumentsMatch(Object[] args)
Test whether the specified arguments match this constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDynamicConstructor
public AbstractDynamicConstructor(Class<?>[] argumentTypes)
- Takes an array of types required to match this constructor.
- Parameters:
argumentTypes
- The argument types
isArgumentsMatch
public boolean isArgumentsMatch(Object[] args)
- Description copied from interface:
DynamicConstructor
- Test whether the specified arguments match this constructor.
- Specified by:
isArgumentsMatch
in interface DynamicConstructor
- Parameters:
args
- The arguments to check
- Returns:
- True if the arguments types match those specified in the constructor