org.codehaus.groovy.runtime
Class NewStaticMetaMethod
java.lang.Object
groovy.lang.MetaMethod
org.codehaus.groovy.runtime.NewStaticMetaMethod
- All Implemented Interfaces:
- Cloneable
public class NewStaticMetaMethod
- extends MetaMethod
A MetaMethod implementation where the underlying method is really a static
helper method on some class.
This implementation is used to add new static methods to the JDK writing them as normal
static methods with the first parameter being the class on which the method is added.
- Version:
- $Revision: 1.5 $
- Author:
- Guillaume Laforge
Methods inherited from class groovy.lang.MetaMethod |
checkParameters, clone, compatibleModifiers, equal, getInterfaceClass, getMethodIndex, getName, getReflector, getReturnType, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, setDeclaringClass, setInterfaceClass, setMethodIndex, setReflector, toString |
NewStaticMetaMethod
public NewStaticMetaMethod(MetaMethod metaMethod)
getDeclaringClass
public Class getDeclaringClass()
- Overrides:
getDeclaringClass
in class MetaMethod
isStatic
public boolean isStatic()
- Overrides:
isStatic
in class MetaMethod
getModifiers
public int getModifiers()
- Overrides:
getModifiers
in class MetaMethod
getParameterTypes
public Class[] getParameterTypes()
- Overrides:
getParameterTypes
in class MetaMethod
getBytecodeParameterTypes
public Class[] getBytecodeParameterTypes()
invoke
public Object invoke(Object object,
Object[] arguments)
throws Exception
- Overrides:
invoke
in class MetaMethod
- Throws:
Exception
Copyright © 2003-2010 The Codehaus. All Rights Reserved.