Class JThrowStmt

java.lang.Object
sootup.core.jimple.common.stmt.AbstractStmt
sootup.core.jimple.common.stmt.JThrowStmt
All Implemented Interfaces:
EquivTo, Stmt, Acceptor<StmtVisitor>

public final class JThrowStmt extends AbstractStmt
A statement that throws an Exception
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public void toString(@Nonnull StmtPrinter up)
    • accept

      public <V extends StmtVisitor> V accept(@Nonnull V v)
      Description copied from interface: Acceptor
      Called when this object is visited.
    • fallsThrough

      public boolean fallsThrough()
      Description copied from interface: Stmt
      Returns true if execution after this statement may continue at the following statement. (e.g. GotoStmt will return false and e.g. IfStmt will return true).
    • branches

      public boolean branches()
      Description copied from interface: Stmt
      Returns true if execution after this statement does not necessarily continue at the following statement. The BranchingStmt's GotoStmt, JSwitchStmt and IfStmt will return true.
    • getExpectedSuccessorCount

      public int getExpectedSuccessorCount()
      Description copied from class: AbstractStmt
      Returns the amount of unexceptional successors the Stmt needs to have in the StmtGraph.
      Specified by:
      getExpectedSuccessorCount in interface Stmt
      Overrides:
      getExpectedSuccessorCount in class AbstractStmt
    • equivTo

      public boolean equivTo(Object o, JimpleComparator comparator)
      Description copied from interface: EquivTo
      Returns true if this object is equivalent to o according to the given comparator.
    • withOp

      @Nonnull public JThrowStmt withOp(@Nonnull Immediate op)
    • withPositionInfo

      @Nonnull public JThrowStmt withPositionInfo(@Nonnull StmtPositionInfo positionInfo)
    • getOp

      @Nonnull public Immediate getOp()
    • getUses

      @Nonnull public Stream<Value> getUses()
      Description copied from class: AbstractStmt
      Returns a list of Values used in this Stmt. Note that they are returned in usual evaluation order.
      Specified by:
      getUses in interface Stmt
      Overrides:
      getUses in class AbstractStmt
    • equivHashCode

      public int equivHashCode()
      Description copied from interface: EquivTo
      Returns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects. The contract is defined in JimpleComparator.