Package soot.jimple

Examples of soot.jimple.ClassConstant


            // class parameter used:
            ValueBox classParameterArg = expr.getArgBox(classParamPosition);
            Value classParameter = classParameterArg.getValue();
            if (classParameter instanceof ClassConstant) {
                // constant class used, add it to the set of containing classes.
                ClassConstant classConstant = (ClassConstant) classParameter;
                targetedWebApps.add(Scene.v().getSootClass(
                        classConstant.getValue().replace('/', '.')));
            } else {
                // not constant: extract the types by hand
                Set<Type> reachingTypes = getReachingWebAppClassDescriptors(
                        classParameter, statement,
                        enclosingMethod.retrieveActiveBody());
View Full Code Here


        if (value instanceof Local) // recursion case
            types.addAll(getReachingWebAppClassDescriptors((Local) value, st,
                    simpleLocalDefs, enclosingMethod));
        else if (value instanceof ClassConstant) {
            // constant class used
            ClassConstant classConstant = (ClassConstant) value;
            final RefType type = Scene.v()
                    .getSootClass(classConstant.getValue().replace('/', '.'))
                    .getType();
            types.add(type);
        } else {
            // unknown: warn
            Feedbacks
View Full Code Here

TOP

Related Classes of soot.jimple.ClassConstant

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.