groovy / 4.0 / org / codehaus / groovy / runtime / metaclass / newstaticmetamethod.html

[Java] Class NewStaticMetaMethod

  • org.codehaus.groovy.runtime.metaclass.NewStaticMetaMethod
public class NewStaticMetaMethod
extends NewMetaMethod

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.

Constructor Detail

public NewStaticMetaMethod(CachedMethod method)

Method Detail

@Override public int getModifiers()

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

@Override public boolean isStatic()

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