org.codehaus.groovy.grails.commons.metaclass
Class AbstractStaticMethodInvocation
java.lang.Object
org.codehaus.groovy.grails.commons.metaclass.AbstractStaticMethodInvocation
- All Implemented Interfaces:
- StaticMethodInvocation
- Direct Known Subclasses:
- AbstractStaticPersistentMethod, CreateDynamicMethod
public abstract class AbstractStaticMethodInvocation
- extends Object
- implements StaticMethodInvocation
- Since:
- Aug 7, 2005
- Author:
- Steven Devijver
AbstractStaticMethodInvocation
public AbstractStaticMethodInvocation()
setPattern
public void setPattern(Pattern pattern)
getPattern
protected Pattern getPattern()
isMethodMatch
public boolean isMethodMatch(String methodName)
- Description copied from interface:
StaticMethodInvocation
Checks if a method name matches the criteria of the implementation class.
- Specified by:
isMethodMatch
in interface StaticMethodInvocation
- Parameters:
methodName
- the static method name
- Returns:
- result of criteria match test
invoke
public abstract Object invoke(Class clazz,
String methodName,
Object[] arguments)
- Description copied from interface:
StaticMethodInvocation
Invokes the actual method. The class, method name and arguments are provided.
If no arguments are passed the argument array is empty.
- Specified by:
invoke
in interface StaticMethodInvocation
- Parameters:
clazz
- the class the static method is called onmethodName
- the static method namearguments
- the arguments supplied
- Returns:
- the return value of the static method invocation
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2005-2006 The Grails project