@GroovyASTTransformation(phase = CompilePhase.CONVERSION)
public class ExternalizeMethodsASTStubber
extends AbstractASTTransformation
Joint-compilation stubber for ExternalizeMethods. Adds the
Externalizable interface and emits placeholder
writeExternal(ObjectOutput) and readExternal(ObjectInput)
methods so Java consumers see the class as a valid Externalizable
implementation against the joint-compilation stub.
Bodies are placeholders; the full ExternalizeMethodsASTTransformation at CANONICALIZATION recognises the stubber metadata and replaces them with the real field-by-field write/read implementations.
| Fields inherited from class | Fields |
|---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE, sourceUnit |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
visit(ASTNode[] nodes, SourceUnit source) |