Package ghidra.pcode.exec
Record Class SleighPcodeUseropDefinition.SignatureDef
java.lang.Object
java.lang.Record
ghidra.pcode.exec.SleighPcodeUseropDefinition.SignatureDef
- Record Components:
signature- the names of the arguments, index 0 being the outputbody- the body source, possibly a function of the arguments
- Enclosing interface:
SleighPcodeUseropDefinition<T>
public static record SleighPcodeUseropDefinition.SignatureDef(List<String> signature, List<SleighPcodeUseropDefinition.BodyFunc> body)
extends Record
One definition for a userop for a given signature (parameters, including output)
-
Constructor Summary
ConstructorsConstructorDescriptionSignatureDef(List<String> signature, List<SleighPcodeUseropDefinition.BodyFunc> body) Creates an instance of aSignatureDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.generateBody(Varnode... args) Generate the body's source code for the given argumentsgenerateBody(List<Varnode> args) Generate the body's source code for the given argumentsfinal inthashCode()Returns a hash code value for this object.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
generateBody
Generate the body's source code for the given arguments- Parameters:
args- the argument varnodes- Returns:
- the body
-
generateBody
Generate the body's source code for the given arguments- Parameters:
args- the argument varnodes- Returns:
- the body
-
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). -
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-