public abstract class ExtensionModule
extends Object
An extension module is a class responsible for providing a list of meta methods to the Groovy compiler and runtime. Those methods are used to "dynamically extend" existing classes by adding methods to existing classes.
| Constructor and description |
|---|
ExtensionModule(String moduleName, String moduleVersion)Constructs a new ExtensionModule with the specified name and version. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public abstract List<MetaMethod> |
getMetaMethods()Returns the list of metamethods provided by this extension module. |
|
public String |
getName()Returns the name of this extension module. |
|
public String |
getVersion()Returns the version of this extension module. |
|
public String |
toString()Returns a string representation of this extension module. |
Returns the list of metamethods provided by this extension module. These methods are added to existing Groovy classes to extend their functionality.
Returns the name of this extension module.
Returns the version of this extension module.
Returns a string representation of this extension module.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.