Package soot.jimple.internal

Examples of soot.jimple.internal.JNewExpr


            Stmt st = (Stmt) aGraph;
            if (st instanceof JAssignStmt) {
                JAssignStmt jAssignStmt = (JAssignStmt) st;
                Value right = jAssignStmt.getRightOp();
                if (right instanceof JNewExpr) {
                    JNewExpr newInstance = (JNewExpr) right;
                    SootClass constructedClass = newInstance.getBaseType()
                            .getSootClass();
                    if (isWebApp(constructedClass)) {
                        if (webapps.contains(constructedClass)) {
                            Feedbacks
                                    .add(new DuplicateWebApp(constructedClass));
View Full Code Here


     *
     * @see #buildCallGraph(StateMachine)
     */
    private List<SootMethod> handleNewExpression(StateMachine stateMachine,
            SootMethod method, Stmt st) {
        JNewExpr newInstance = (JNewExpr) ((AssignStmt) st).getRightOp();
        // TODO generalize to AbstractHandler

        // the only instantiation we are interested in is the
        // SubmitHandler instantiation. Any other instantiations
        // will have to have a method invoked at some later
        // point in time, in order to change the control flow.
        // When that happens, it is caught by the analysis.

        RefType type = newInstance.getBaseType();
        SootClass submitClass = type.getSootClass();
        List<SootMethod> queue = new ArrayList<SootMethod>();
        if (resolver.isSubmitHandler(submitClass))
            handleNewSubmitHandler(stateMachine, method, st, submitClass, queue);
        return queue;
View Full Code Here

TOP

Related Classes of soot.jimple.internal.JNewExpr

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.