Package ghidra.pcode.emu.jit.gen.util
Record Class Misc.TryCatchBlock<T extends Throwable,N extends Emitter.Next>
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.util.Misc.TryCatchBlock<T,N>
- Type Parameters:
T- the type caught by the blockN- the stack contents at the start and end of thetryblock- Record Components:
end- the label to place at the end of thetryblockhandler- the label to place at the handler, i.e., the start of thecatchblock. Note that the stack is the same as the block bounds, but with the exception type pushed. FIXME: Is that fully correct? Do we know what's actually underneath the exception?em- the emitter at the start of thetryblock
- Enclosing interface:
Misc
public static record Misc.TryCatchBlock<T extends Throwable,N extends Emitter.Next> (Lbl<N extends Emitter.Next> end, Lbl<Emitter.Ent<N extends Emitter.Next,Types.TRef<T extends Throwable>>> handler, Emitter<N extends Emitter.Next> em)
extends Record
A handle to an (incomplete)
try-catch block-
Constructor Summary
ConstructorsConstructorDescriptionTryCatchBlock(Lbl<N> end, Lbl<Emitter.Ent<N, Types.TRef<T>>> handler, Emitter<N> em) Creates an instance of aTryCatchBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionem()Returns the value of theemrecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.Lbl<Emitter.Ent<N, Types.TRef<T>>> handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-
em
Returns the value of theemrecord component.- Returns:
- the value of the
emrecord component
-