Packages

case class CaughtException[+V <: Var[V]](pc: PC, exceptionType: Option[ObjectType], throwingStmts: IntTrieSet) extends Stmt[V] with Product with Serializable

A caught exception is essential to ensure that the "throw" is never optimized away, even if the exception object as such is not used.

Source
Stmt.scala
Note

CaughtException expression are only created by TACAI!

Linear Supertypes
Serializable, Product, Equals, Stmt[V], ASTNode[V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CaughtException
  2. Serializable
  3. Product
  4. Equals
  5. Stmt
  6. ASTNode
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CaughtException(pc: PC, exceptionType: Option[ObjectType], throwingStmts: IntTrieSet)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def asArrayStore: ArrayStore[V]
    Definition Classes
    Stmt
  5. def asAssignment: Assignment[V]
    Definition Classes
    Stmt
  6. def asAssignmentLike: AssignmentLikeStmt[V]
    Definition Classes
    Stmt
  7. final def asCaughtException: CaughtException[V]
    Definition Classes
    CaughtExceptionStmt
  8. def asCheckcast: Checkcast[V]
    Definition Classes
    Stmt
  9. def asExprStmt: ExprStmt[V]
    Definition Classes
    Stmt
  10. def asFieldWriteAccessStmt: FieldWriteAccessStmt[V]
    Definition Classes
    Stmt
  11. def asGoto: Goto
    Definition Classes
    Stmt
  12. def asIf: If[V]
    Definition Classes
    Stmt
  13. def asInstanceMethodCall: InstanceMethodCall[V]
    Definition Classes
    Stmt
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def asInvokedynamicMethodCall: InvokedynamicMethodCall[V]
    Definition Classes
    Stmt
  16. def asJSR: JSR
    Definition Classes
    Stmt
  17. def asMethodCall: MethodCall[V]
    Definition Classes
    Stmt
  18. def asMonitorEnter: MonitorEnter[V]
    Definition Classes
    Stmt
  19. def asMonitorExit: MonitorExit[V]
    Definition Classes
    Stmt
  20. def asNonVirtualMethodCall: NonVirtualMethodCall[V]
    Definition Classes
    Stmt
  21. def asNop: Nop
    Definition Classes
    Stmt
  22. def asPutField: PutField[V]
    Definition Classes
    Stmt
  23. def asPutStatic: PutStatic[V]
    Definition Classes
    Stmt
  24. def asRet: Ret
    Definition Classes
    Stmt
  25. def asReturn: Return
    Definition Classes
    Stmt
  26. def asReturnValue: ReturnValue[V]
    Definition Classes
    Stmt
  27. def asStaticMethodCall: StaticMethodCall[V]
    Definition Classes
    Stmt
  28. def asSwitch: Switch[V]
    Definition Classes
    Stmt
  29. def asSynchronizationStmt: SynchronizationStmt[V]
    Definition Classes
    Stmt
  30. def asThrow: Throw[V]
    Definition Classes
    Stmt
  31. def asVirtualMethodCall: VirtualMethodCall[V]
    Definition Classes
    Stmt
  32. final def astID: Int

    Each type of node is assigned a different id to make it easily possible to do a switch over all nodes.

    Each type of node is assigned a different id to make it easily possible to do a switch over all nodes.

    Definition Classes
    CaughtExceptionASTNode
  33. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  34. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def exceptionLocations: Iterator[String]

    Textual description of the sources of the caught exceptions.

    Textual description of the sources of the caught exceptions. If the exception was thrown by the JVM due to the evaluation of an expression (e.g., NullPointerException, DivisionByZero,..) then the string will be exception@<INDEX> where index identifies the failing expression. In case an exception is caught that was thrown using ATHROW the local variable/parameter which stores the local variable is returned.

  36. val exceptionType: Option[ObjectType]
  37. final def forallSubExpressions[W >: V <: Var[W]](p: (Expr[W]) => Boolean): Boolean
    Definition Classes
    CaughtExceptionStmt
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  39. def isArrayStore: Boolean
    Definition Classes
    Stmt
  40. def isAssignment: Boolean
    Definition Classes
    Stmt
  41. final def isCaughtException: Boolean
    Definition Classes
    CaughtExceptionStmt
  42. def isCheckcast: Boolean
    Definition Classes
    Stmt
  43. def isExprStmt: Boolean
    Definition Classes
    Stmt
  44. def isIf: Boolean
    Definition Classes
    Stmt
  45. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  46. def isMethodCall: Boolean
    Definition Classes
    Stmt
  47. def isMonitorEnter: Boolean
    Definition Classes
    Stmt
  48. def isMonitorExit: Boolean
    Definition Classes
    Stmt
  49. def isNonVirtualMethodCall: Boolean
    Definition Classes
    Stmt
  50. def isNop: Boolean
    Definition Classes
    Stmt
  51. def isPutField: Boolean
    Definition Classes
    Stmt
  52. def isPutStatic: Boolean
    Definition Classes
    Stmt
  53. def isReturnValue: Boolean
    Definition Classes
    Stmt
  54. final def isSideEffectFree: Boolean

    true if the statement/expression is GUARANTEED to have no externally observable effect if it is not executed.

    true if the statement/expression is GUARANTEED to have no externally observable effect if it is not executed. Sideeffect free instructions can be removed if the result of the evaluation of the expression/statement is not used. For those instructions, which may result in an exception, it has to be guaranteed that the exception is NEVER thrown. For example, a div instruction is sideeffect free if it is (statically) known that the divisor is always not equal to zero; otherwise, even if the result value is not used, the expression is not (potentially) side effect free. An array load is only side effect free if the array reference is non-null and if the index is valid.

    returns

    true if the expression is GUARENTEED to have no side effect other than wasting some CPU cycles if it is not executed.

    Definition Classes
    CaughtExceptionASTNode
    Note

    Deeply nested expressions are not supported; i.e. an expression's sub-expressions have to be Var or Const expressions. Generally, a statements expressions have to to simple expressions too - except of the Assignment statement; in the latter case the right-expression can have references to simple expressions. Hence, in case of Assignment statements the side-effect freenes is determined by the referenced expression; in all other cases the side-effect freeness is determined directly by the statement/expression.

  55. def isStaticMethodCall: Boolean
    Definition Classes
    Stmt
  56. def isThrow: Boolean
    Definition Classes
    Stmt
  57. def isVirtualMethodCall: Boolean
    Definition Classes
    Stmt
  58. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  59. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  60. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  61. def origins: IntTrieSet

    The origin(s) of the caught exception(s).

    The origin(s) of the caught exception(s). An origin identifies the instruction that ex- or implicitly created the exception:

    • If the exception is created locally (new XXXException) and also caught within the same method, then the origin identifies a normal variable definition site.
    • If the exception is a parameter the parameter's origin (-1,... -n) is returned.
    • If the exception was raised due to a sideeffect of evaluating an expression, then the origin is smaller or equal to org.opalj.ai.ImmediateVMExceptionsOriginOffset and can be tranformed to the index of the responsible instruction using org.opalj.ai#pcOfImmediateVMException.
  62. val pc: PC

    The program counter of the original underyling bytecode instruction.

    The program counter of the original underyling bytecode instruction.

    This pc is independent of the (implicit) index of the statement in the generated statements array! This pc is, e.g., useful for getting line number information.

    Definition Classes
    CaughtExceptionStmt
  63. def productElementNames: Iterator[String]
    Definition Classes
    Product
  64. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  65. final def toCanonicalForm(implicit ev: <:<[V, DUVar[ValueInformation]]): Stmt[DUVar[ValueInformation]]

    See org.opalj.value.ValueInformation.toCanonicalForm for detail.

  66. def toString(): String
    Definition Classes
    CaughtException → AnyRef → Any
  67. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  69. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Stmt[V]

Inherited from ASTNode[V]

Inherited from AnyRef

Inherited from Any

Ungrouped