Package org.codehaus.groovy.runtime

Examples of org.codehaus.groovy.runtime.ProxyGeneratorAdapter


    }

    public Object postCompleteNode(final FactoryBuilderSupport factory, final Object parent, final Object node) {
        if (node instanceof Map) {
            Map map = (Map) node;
            ProxyGeneratorAdapter adapter = new ProxyGeneratorAdapter(
                    map,
                    map.containsKey("superClass")?(Class)map.get("superClass"):CompilationCustomizer.class,
                    map.containsKey("interfaces")?(Class[])map.get("interfaces"):null,
                    this.getClass().getClassLoader(),
                    false,
                    null
            );
            Object phase = map.get("phase");
            if (!(phase instanceof CompilePhase)) {
                phase = CompilePhase.valueOf(phase.toString());
            }
            return adapter.proxy(map, phase);
        }
        return node;
    }
View Full Code Here

TOP

Related Classes of org.codehaus.groovy.runtime.ProxyGeneratorAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.