[Groovy] Class ASTTransformationCustomizerFactory

  • org.codehaus.groovy.control.customizers.builder.ASTTransformationCustomizerFactory
class ASTTransformationCustomizerFactory
extends AbstractFactory

This factory generates an ASTTransformationCustomizer.

Simple syntax:

builder.ast(ToString)
With AST transformation options:
builder.ast(includeNames:true, ToString)
Since:
2.1.0

Constructor Summary

Constructors
Constructor and description
ASTTransformationCustomizerFactory ()

Methods Summary

Methods
Type Params Return Type Name and description
boolean isLeaf()
Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)
boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map attributes)

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class AbstractFactory setParent, isLeaf, onFactoryRegistration, onHandleNodeAttributes, isHandlesNodeChildren, setChild, onNodeChildren, onNodeCompleted, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, newInstance

Constructor Detail

ASTTransformationCustomizerFactory()

Method Detail

@Override @CompileStatic boolean isLeaf()

@Override Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)

@Override @CompileStatic boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map attributes)