[Java] Class NewInstanceMetaMethod

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

public NewInstanceMetaMethod(CachedMethod method)

Method Detail

public int getModifiers()

public Object invoke(Object object, Object[] arguments)

public boolean isStatic()

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/runtime/metaclass/NewInstanceMetaMethod.html