public static class GeneratedMetaMethod.DgmMethodRecord
extends Object
implements Serializable
One generated default-Groovy-method adapter, as written to META-INF/dgminfo.
parameters[0] is the receiver type.
| Modifiers | Name | Description |
|---|---|---|
String |
className |
Internal name of the generated adapter, org/codehaus/groovy/runtime/dgm$
plus its index. |
String |
methodName |
Name of the extension method. |
Class[] |
parameters |
Native parameter types of the extension method, with the receiver at index 0. |
Class |
returnType |
Return type of the extension method. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static List<DgmMethodRecord> |
loadDgmInfo()Reads META-INF/dgminfo from this class's loader. |
|
public static void |
saveDgmInfo(List<DgmMethodRecord> records, String file)Writes records to file. |
Internal name of the generated adapter, org/codehaus/groovy/runtime/dgm$
plus its index.
Name of the extension method.
Native parameter types of the extension method, with the receiver at index 0.
Return type of the extension method.
Reads META-INF/dgminfo from this class's loader. A record is omitted when
its return type or any parameter type could not be loaded. Primitive classes are
taken from the fixed table rather than loaded by name.
A missing META-INF/dgminfo fails immediately.
Writes records to file. Primitive classes take the first ids, then
each distinct return type and parameter type. A blank UTF string ends the class
table. Each record then stores its class name, method name, return-type id, and
parameter-type ids.
records - the adapters to persistfile - path of the file to write