Record Class ImpOpsBytecodeEmitter.InstructionWord
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.emitter.ImpOpsBytecodeEmitter.InstructionWord
- Enclosing class:
ImpOpsBytecodeEmitter
public static record ImpOpsBytecodeEmitter.InstructionWord(byte opcode, byte flags, short dstReg, int payload)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInstructionWord(byte opcode, byte flags, short dstReg, int payload) Creates an instance of aInstructionWordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionshortdstReg()Returns the value of thedstRegrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.byteopcode()Returns the value of theopcoderecord component.intpayload()Returns the value of thepayloadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstructionWord
public InstructionWord(byte opcode, byte flags, short dstReg, int payload) Creates an instance of aInstructionWordrecord class.- Parameters:
opcode- the value for theopcoderecord componentflags- the value for theflagsrecord componentdstReg- the value for thedstRegrecord componentpayload- the value for thepayloadrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
opcode
public byte opcode()Returns the value of theopcoderecord component.- Returns:
- the value of the
opcoderecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
dstReg
public short dstReg()Returns the value of thedstRegrecord component.- Returns:
- the value of the
dstRegrecord component
-
payload
public int payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-