Package pascal.taie.ir.proginfo
Record Class ExceptionEntry
java.lang.Object
java.lang.Record
pascal.taie.ir.proginfo.ExceptionEntry
- All Implemented Interfaces:
Serializable
public record ExceptionEntry(Stmt start, Stmt end, Catch handler, ClassType catchType)
extends Record
implements Serializable
Representation of exception entries. Each entry consists of four items:
- start: the beginning of the try-block (inclusive).
- end: the end of the try-block (exclusive).
- handler: the beginning of the catch-block (inclusive), i.e., the handler for the exceptions thrown by the try-block.
- catchType: the class of exceptions that this exception handler is designated to catch.
- See Also:
-
Constructor Summary
ConstructorDescriptionExceptionEntry
(Stmt start, Stmt end, Catch handler, ClassType catchType) Creates an instance of aExceptionEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecatchType
record component.end()
Returns the value of theend
record component.final boolean
Indicates whether some other object is "equal to" this one.handler()
Returns the value of thehandler
record component.final int
hashCode()
Returns a hash code value for this object.start()
Returns the value of thestart
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExceptionEntry
Creates an instance of aExceptionEntry
record class.- Parameters:
start
- the value for thestart
record componentend
- the value for theend
record componenthandler
- the value for thehandler
record componentcatchType
- the value for thecatchType
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
start
Returns the value of thestart
record component.- Returns:
- the value of the
start
record component
-
end
Returns the value of theend
record component.- Returns:
- the value of the
end
record component
-
handler
Returns the value of thehandler
record component.- Returns:
- the value of the
handler
record component
-
catchType
Returns the value of thecatchType
record component.- Returns:
- the value of the
catchType
record component
-