Package soot.jimple

Class JimpleBody

    • Constructor Detail

      • JimpleBody

        public JimpleBody​(SootMethod m)
        Construct an empty JimpleBody
        Parameters:
        m -
      • JimpleBody

        public JimpleBody()
        Construct an extremely empty JimpleBody, for parsing into.
    • Method Detail

      • clone

        public Object clone()
        Clones the current body, making deep copies of the contents.
        Overrides:
        clone in class Body
        Returns:
      • clone

        public Object clone​(boolean noLocalsClone)
        Specified by:
        clone in class Body
      • validate

        public void validate()
        Make sure that the JimpleBody is well formed. If not, throw an exception. Right now, performs only a handful of checks.
        Overrides:
        validate in class Body
      • validate

        public void validate​(List<ValidationException> exceptionList)
        Validates the jimple body and saves a list of all validation errors
        Overrides:
        validate in class Body
        Parameters:
        exceptionList - the list of validation errors
      • validateIdentityStatements

        public void validateIdentityStatements()
      • insertIdentityStmts

        public void insertIdentityStmts()
        Inserts usual statements for handling this & parameters into body.
      • insertIdentityStmts

        public void insertIdentityStmts​(SootClass declaringClass)
        Inserts usual statements for handling this & parameters into body.
        Parameters:
        declaringClass - the class, which should be used for this references. Can be null for static methods
      • getFirstNonIdentityStmt

        public Stmt getFirstNonIdentityStmt()
        Returns the first non-identity stmt in this body.
        Returns: