use of org.codehaus.groovy.control.customizers.SecureASTCustomizer in project groovy-core by groovy.
the class SecureASTCustomizerFactory method onNodeChildren.
@Override
public boolean onNodeChildren(final FactoryBuilderSupport builder, final Object node, final Closure childContent) {
if (node instanceof SecureASTCustomizer) {
Closure clone = (Closure) childContent.clone();
clone.setDelegate(node);
clone.call();
}
return false;
}
use of org.codehaus.groovy.control.customizers.SecureASTCustomizer in project groovy by apache.
the class SecureASTCustomizerFactory method onNodeChildren.
@Override
public boolean onNodeChildren(final FactoryBuilderSupport builder, final Object node, final Closure childContent) {
if (node instanceof SecureASTCustomizer) {
Closure clone = (Closure) childContent.clone();
clone.setDelegate(node);
clone.setResolveStrategy(Closure.DELEGATE_FIRST);
clone.call();
}
return false;
}
Aggregations