org.codehaus.groovy.runtime.metaclass
Class 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.

author:
James Strachan
version:
$Revision: 8959 $

 
Constructor Summary
NewInstanceMetaMethod(CachedMethod method)
           
 
Method Summary
int getModifiers()
          
Object invoke(Object object, def arguments)
          
boolean isStatic()
          
 

Constructor Detail

NewInstanceMetaMethod

public NewInstanceMetaMethod(CachedMethod method)


Method Detail

getModifiers

public int getModifiers()


invoke

public Object invoke(Object object, def arguments)


isStatic

public boolean isStatic()