Class Trap

java.lang.Object
sootup.core.jimple.basic.Trap

public final class Trap extends Object
Represents a try-catch construct.

Prefer to use the factory methods in Jimple.

  • Constructor Details

    • Trap

      public Trap(@NonNull ClassType exception, @NonNull Stmt beginStmt, @NonNull Stmt endStmt, @NonNull Stmt handlerStmt)
      Creates a Trap with the given exception, handler, begin and end stmts.
  • Method Details

    • toString

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

      public @NonNull Trap withException(@NonNull ClassType exception)
    • withBeginStmt

      public @NonNull Trap withBeginStmt(@NonNull Stmt beginStmt)
    • withHandlerStmt

      public @NonNull Trap withHandlerStmt(@NonNull Stmt handlerStmt)
    • withEndStmt

      public @NonNull Trap withEndStmt(@NonNull Stmt endStmt)
    • getBeginStmt

      public @NonNull Stmt getBeginStmt()
    • getEndStmt

      public @NonNull Stmt getEndStmt()
    • getHandlerStmt

      public @NonNull Stmt getHandlerStmt()
    • getExceptionType

      public @NonNull ClassType getExceptionType()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object