Here is an example, which only logs the class name during compilation:
inline(phase:'CONVERSION') { source, context, classNode ->
println "visiting $classNode"
}
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isHandlesNodeChildren()
Overrides groovy. Implements groovy. |
| public Object | newInstance(final FactoryBuilderSupport
the FactoryBuilder builder, final Object the name of the node being built name, final Object the 'value' argument in the build node value, final Map<K, V> the attributes of the build arg attributes)Implements groovy. |
| public boolean | onNodeChildren(final FactoryBuilderSupport
the FactoryBuilder builder, final Object the node (returned from newINstance) to consider the attributes for node, final Closure<V> the child content closure of the builder childContent)Overrides groovy. Implements groovy. |
| public Object | postCompleteNode(final FactoryBuilderSupport factory, final Object parent, final Object node)
Implements org. |
| InlinedASTCustomizerFactory | back to summary |
|---|---|
| public InlinedASTCustomizerFactory() | |
| isHandlesNodeChildren | back to summary |
|---|---|
| public boolean isHandlesNodeChildren() Overrides groovy. Implements groovy. Doc from groovy. Does this factory "Own" its child closure.
| |
| newInstance | back to summary |
|---|---|
| public Object newInstance(final FactoryBuilderSupport builder, final Object name, final Object value, final Map<K, V> attributes) throws InstantiationException, IllegalAccessException Implements groovy.
| |
| onNodeChildren | back to summary |
|---|---|
| public boolean onNodeChildren(final FactoryBuilderSupport builder, final Object node, final Closure<V> childContent) Overrides groovy. Implements groovy. Doc from groovy. Only called if it isLeaf is false and isHandlesNodeChildren is true
| |
| postCompleteNode | back to summary |
|---|---|
| public Object postCompleteNode(final FactoryBuilderSupport factory, final Object parent, final Object node) Implements org. | |