Package ghidra.pcode.emu.jit.gen.util
Record Class Methods.ObjInv<MR extends Types.BType,OT,SN extends Emitter.Next,MN extends Emitter.Next>
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.util.Methods.ObjInv<MR,OT,SN,MN>
- Type Parameters:
MR- the return typeOT- the method's owning typeSN- the contents of the JVM stackMN- the unmatched parameters types remaining- Record Components:
em- the emitter, which will be given back when the invocation check is complete
- Enclosing interface:
Methods
public static record Methods.ObjInv<MR extends Types.BType,OT,SN extends Emitter.Next,MN extends Emitter.Next> (Emitter<SN extends Emitter.Next> em)
extends Record
An invocation object to facilitate the checked popping of arguments for an instance method
invocation and the final push of its returned value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionem()Returns the value of theemrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<R> RA syntactic workaround for static method chainingfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjInv
Creates an instance of aObjInvrecord class.- Parameters:
em- the value for theemrecord component
-
-
Method Details
-
step
A syntactic workaround for static method chaining- Type Parameters:
R- the return type offunc- Parameters:
func- the method to invoke- Returns:
- the return value from
func
-
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). -
em
Returns the value of theemrecord component.- Returns:
- the value of the
emrecord component
-