Package: groovy.beans

## [Java] Class VetoableASTTransformation

- groovy.beans.VetoableASTTransformation

-     @GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
      public class VetoableASTTransformation
      extends BindableASTTransformation

  Handles generation of code for the `@Vetoable` annotation, and `@Bindable` if also present.

  Generally, it adds (if needed) a VetoableChangeSupport field and the needed add/removeVetoableChangeListener methods to support the listeners.

  It also generates the setter and wires the setter through the VetoableChangeSupport.

  If a Bindable annotation is detected it also adds support similar to what BindableASTTransformation would do.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public static boolean` | `hasVetoableAnnotation(AnnotatedNode node)` Convenience method to see if an annotated node is `@Vetoable`.
    `` | `public void` | `visit(ASTNode[] nodes, SourceUnit source)` Handles the bulk of the processing, mostly delegating to other methods.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class BindableASTTransformation` | `hasBindableAnnotation, visit`

- - ### Method Detail

    - #### public static boolean hasVetoableAnnotation(AnnotatedNode node)

      Convenience method to see if an annotated node is `@Vetoable`.

      Parameters:
        `node` - the node to check
      Returns:
        true if the node is constrained

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

      Handles the bulk of the processing, mostly delegating to other methods.

      Parameters:
        `nodes` - the AST nodes
        `source` - the source unit for the nodes