Package ghidra.pcode.emu.jit.gen.util
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 typeOT- the owning typeN- the parameter types, encoded as inEmitter- Record Components:
em- the emitter to be given once method definition moves into bytecode generationparams- 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 Summary
ConstructorsConstructorDescriptionObjDef(Emitter<Emitter.Bot> em, List<Methods.MthParam<?>> params) Creates an instance of aObjDefrecord class. -
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,T1 extends Types.BNonVoid>
Rparam(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<R> Rparam(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 chainingList<Methods.MthParam<?>> params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 offuncT1- the parameter type- Parameters:
func- the static method reference that actually processes the parametertype- the parameter typename- the namereceiver- 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 offunc- Parameters:
func- the static method reference that actually processes the parametertype- thethistypereceiver- the receiver- 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
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-