Package: org.codehaus.groovy.transform

## [Java] Class ToStringASTStubber

- org.codehaus.groovy.transform.ToStringASTStubber

-     @GroovyASTTransformation(phase = CompilePhase.CONVERSION)
      public class ToStringASTStubber
      extends AbstractASTTransformation

  Joint-compilation stubber for ToString. Adds a placeholder `toString()` so the @ToString-generated override is visible in the stub even though Object already provides one. Useful for Java code that does `super.toString()` chaining or for tooling that examines declared (rather than inherited) methods.

  The placeholder body returns an empty string. The full ToStringASTTransformation at CANONICALIZATION recognises the stubber tag and replaces the body with the real implementation.

  Since:
    6.0.0

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class AbstractASTTransformation` | `RETENTION_CLASSNODE, sourceUnit`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `visit(ASTNode[] nodes, SourceUnit source)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractASTTransformation` | `addError, checkIncludeExcludeUndefinedAware, checkIncludeExcludeUndefinedAware, checkNotInterface, checkPropertyList, checkPropertyList, checkPropertyList, copyAnnotatedNodeAnnotations, copyAnnotatedNodeAnnotations, deemedInternal, deemedInternalName, getAnnotationName, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, init, markAsInternal, memberHasValue, shouldSkip, shouldSkip, shouldSkip, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, tokenize`

- - ### Method Detail

    - #### public void visit(ASTNode[] nodes, SourceUnit source)