Record Class Methods.ObjDef<MR,OT,N>

java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.util.Methods.ObjDef<MR,OT,N>
Type Parameters:
MR - the return type
OT - the owning type
N - the parameter types, encoded as in Emitter
Record Components:
em - the emitter to be given once method definition moves into bytecode generation
params - the defined parameters so far
Enclosing interface:
Methods

public static record Methods.ObjDef<MR,OT,N>(Emitter<Emitter.Bot> em, List<Methods.MthParam<?>> params) extends Record
An instance method definition (builder)
  • Constructor Details

    • ObjDef

      public ObjDef(Emitter<Emitter.Bot> em, List<Methods.MthParam<?>> params)
      Creates an instance of a ObjDef record class.
      Parameters:
      em - the value for the em record component
      params - the value for the params record component
  • Method Details

    • param

      public <R, T1 extends Types.BNonVoid> R param(Methods.Def.ParamFunction<? super Methods.ObjDef<MR,OT,N>,T1,R> func, T1 type, String name, Consumer<Local<T1>> receiver)
      A syntactic workaround for static method chaining
      Type Parameters:
      R - the return type of func
      T1 - the parameter type
      Parameters:
      func - the static method reference that actually processes the parameter
      type - the parameter type
      name - the name
      receiver - the receiver
      Returns:
      the return value from func
    • param

      public <R> R param(Methods.Def.ThisFunction<? super Methods.ObjDef<MR,OT,N>,OT,R> func, Types.TRef<OT> type, Consumer<Local<Types.TRef<OT>>> receiver)
      A syntactic workaround for static method chaining
      Type Parameters:
      R - the return type of func
      Parameters:
      func - the static method reference that actually processes the parameter
      type - the this type
      receiver - the receiver
      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<Emitter.Bot> em()
      Returns the value of the em record component.
      Returns:
      the value of the em record component
    • params

      public List<Methods.MthParam<?>> params()
      Returns the value of the params record component.
      Returns:
      the value of the params record component