|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.commons.metaclass.AbstractDynamicConstructor
public abstract class AbstractDynamicConstructor
Abstract class that provides default implementation for isArgumentsMatch
Constructor Summary | |
---|---|
AbstractDynamicConstructor(java.lang.Class[] argumentTypes)
Takes an array of types required to match this constructor |
Method Summary | |
---|---|
abstract java.lang.Object |
invoke(java.lang.Class clazz,
java.lang.Object[] args)
Invokes the dynamic constructor |
boolean |
isArgumentsMatch(java.lang.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 |
Constructor Detail |
---|
public AbstractDynamicConstructor(java.lang.Class[] argumentTypes)
argumentTypes
- The argument typesMethod Detail |
---|
public boolean isArgumentsMatch(java.lang.Object[] args)
DynamicConstructor
isArgumentsMatch
in interface DynamicConstructor
args
- The arguments to check
public abstract java.lang.Object invoke(java.lang.Class clazz, java.lang.Object[] args)
DynamicConstructor
invoke
in interface DynamicConstructor
clazz
- The actual classargs
- The arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |