@CompileStatic
class ASTTransformationCustomizerFactory
extends AbstractFactory
This factory generates an ast transformation customizer.
Simple syntax:
builder.ast(ToString)
With AST transformation options:
builder.ast(includeNames:true, ToString) | Constructor and description |
|---|
ASTTransformationCustomizerFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
isLeaf()Indicates that ast nodes do not accept nested builder content. |
|
Object |
newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)Creates an ASTTransformationCustomizer for the supplied annotation and attributes. |
|
boolean |
onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map attributes)Leaves attribute handling to newInstance(FactoryBuilderSupport, Object, Object, Map). |
| Methods inherited from class | Name |
|---|---|
class AbstractFactory |
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent |
Indicates that ast nodes do not accept nested builder content.
trueCreates an ASTTransformationCustomizer for the supplied annotation and attributes.
builder - the active buildername - the node namevalue - the transformation annotation classattributes - annotation member values to applyLeaves attribute handling to newInstance(FactoryBuilderSupport, Object, Object, Map).
builder - the active buildernode - the current nodeattributes - the node attributesfalse to keep the attributes available for instance creationCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.