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 type
OT - the method's owning type
SN - the contents of the JVM stack
MN - 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 Details

    • ObjInv

      public ObjInv(Emitter<SN> em)
      Creates an instance of a ObjInv record class.
      Parameters:
      em - the value for the em record component
  • Method Details

    • step

      public <R> R step(Function<? super Methods.ObjInv<MR,OT,SN,MN>,R> func)
      A syntactic workaround for static method chaining
      Type Parameters:
      R - the return type of func
      Parameters:
      func - the method to invoke
      Returns:
      the return value from func
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • em

      public Emitter<SN> em()
      Returns the value of the em record component.
      Returns:
      the value of the em record component