picocli.groovy

## Class PicocliScriptASTTransformation

- java.lang.Object
- - AbstractASTTransformation
  - - picocli.groovy.PicocliScriptASTTransformation

-     public class PicocliScriptASTTransformation
      extends AbstractASTTransformation

  Ensures that Groovy scripts annotated with `PicocliScript` are transformed into a class that extends `PicocliBaseScript`. This class performs the same transformations as `org.codehaus.groovy.transform.BaseScriptASTTransformation`, and in addition moves `CommandLine.Command` annotations to the generated script class. The `@Command` annotation must be on the same `import` or local variable as the `PicocliScript` annotation.
  Since:
    2.0
  Author:
    Remko Popma

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PicocliScriptASTTransformation()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `visit(ASTNode[] nodes, SourceUnit source)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PicocliScriptASTTransformation

          public PicocliScriptASTTransformation()

  - ### Method Detail

    - #### visit

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

Copyright © 2019. All rights reserved.