org.codehaus.groovy.runtime
Class NewStaticMetaMethod

java.lang.Object
  extended bygroovy.lang.MetaMethod
      extended byorg.codehaus.groovy.runtime.NewStaticMetaMethod
All Implemented Interfaces:
Cloneable

public class NewStaticMetaMethod
extends groovy.lang.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

Constructor Summary
NewStaticMetaMethod(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

NewStaticMetaMethod

public NewStaticMetaMethod(groovy.lang.MetaMethod metaMethod)
Method Detail

getDeclaringClass

public Class getDeclaringClass()

isStatic

public boolean isStatic()

getModifiers

public int getModifiers()

getParameterTypes

public Class[] getParameterTypes()

getBytecodeParameterTypes

public Class[] getBytecodeParameterTypes()

invoke

public Object invoke(Object object,
                     Object[] arguments)
              throws Exception
Throws:
Exception


Copyright © 2003-2004 The Codehaus. All Rights Reserved.