Package soot

Examples of soot.HasPhaseOptions


    public static void addTransform(Pack pack, String name,
            Transformer transformer, String defaultOptions) {
        Transform t = new Transform(name, transformer);

        if (transformer instanceof HasPhaseOptions) {
            HasPhaseOptions options = (HasPhaseOptions) transformer;

            // Note: First appearance of an option has precendence
            t
                    .setDefaultOptions(defaultOptions + " "
                            + options.getDefaultOptions() + " "
                            + t.getDefaultOptions());
            t.setDeclaredOptions(options.getDeclaredOptions() + " "
                    + t.getDeclaredOptions());
        } else {
            t.setDefaultOptions(defaultOptions + " " + t.getDefaultOptions());
        }
View Full Code Here

TOP

Related Classes of soot.HasPhaseOptions

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.