Package soot

Examples of soot.ValueBox


    public Automaton getPossibleNameValuesOfMakeURLInvocation(InvokeExpr expr) {
        Integer index = MakeURLSignatureHandler.getMakeURLSignatures().get(
                expr.getMethod().getSignature());
        index = index == null ? -1 : index;

        ValueBox valueBox = expr.getArgBox(index);
        Automaton possibleValues;
        try {
            possibleValues = analysis.getAutomaton(valueBox);
        } catch (IllegalArgumentException e) {
            log.error(e.getMessage() + " \"" + expr.toString() + "\"");
View Full Code Here


     * @param expr
     *            as the expression containing {@link XML#plug(String, Object)}
     * @return the automaton representing the possible names
     */
    public Automaton getPossibleGapNameValuesofXMLPlug(InvokeExpr expr) {
        ValueBox valueBox = expr.getArgBox(0);
        Automaton possibleValues = analysis.getAutomaton(valueBox);

        String methodNames = getReadableLanguage(possibleValues);
        SootMethod plug = expr.getMethod();

View Full Code Here

        int classParamPosition = resolver
                .findClassPositionInParameterList(makeURLMethod);
        Set<SootClass> targetedWebApps = new HashSet<SootClass>();
        if (classParamPosition != -1) {
            // 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('/', '.')));
View Full Code Here

TOP

Related Classes of soot.ValueBox

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.