|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgroovy.lang.MetaMethod
org.codehaus.groovy.runtime.NewInstanceMetaMethod
A MetaMethod implementation where the underlying method is really a static helper method on some class but it appears to be an instance method on a class. This implementation is used to add new methods to the JDK writing them as normal static methods with the first parameter being the class on which the method is added.
| Constructor Summary | |
NewInstanceMetaMethod(groovy.lang.MetaMethod metaMethod)
|
|
| Method Summary | |
Class[] |
getBytecodeParameterTypes()
|
Class |
getDeclaringClass()
|
int |
getModifiers()
|
Class[] |
getParameterTypes()
|
Object |
invoke(Object object,
Object[] arguments)
|
boolean |
isStatic()
|
| Methods inherited from class groovy.lang.MetaMethod |
checkParameters, clone, compatibleModifiers, equal, getInterfaceClass, getMethodIndex, getName, getReflector, getReturnType, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, setInterfaceClass, setMethodIndex, setReflector, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NewInstanceMetaMethod(groovy.lang.MetaMethod metaMethod)
| Method Detail |
public Class getDeclaringClass()
public boolean isStatic()
public int getModifiers()
public Class[] getParameterTypes()
public Class[] getBytecodeParameterTypes()
public Object invoke(Object object,
Object[] arguments)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||