Record Class ImpulseVmValidator.OpcodeSignature
java.lang.Object
java.lang.Record
org.impulsegraph.vm.ImpulseVmValidator.OpcodeSignature
- Enclosing class:
ImpulseVmValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedSrc1record component.Returns the value of theallowedSrc2record component.intarity()Returns the value of thearityrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedDstrecord component.final inthashCode()Returns a hash code value for this object.mnemonic()Returns the value of themnemonicrecord component.intopCode()Returns the value of theopCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpcodeSignature
public OpcodeSignature(int opCode, String mnemonic, int arity, Set<VmRegType> allowedSrc1, Set<VmRegType> allowedSrc2, Set<VmRegType> expectedDst) Creates an instance of aOpcodeSignaturerecord class.- Parameters:
opCode- the value for theopCoderecord componentmnemonic- the value for themnemonicrecord componentarity- the value for thearityrecord componentallowedSrc1- the value for theallowedSrc1record componentallowedSrc2- the value for theallowedSrc2record componentexpectedDst- the value for theexpectedDstrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
opCode
public int opCode()Returns the value of theopCoderecord component.- Returns:
- the value of the
opCoderecord component
-
mnemonic
Returns the value of themnemonicrecord component.- Returns:
- the value of the
mnemonicrecord component
-
arity
public int arity()Returns the value of thearityrecord component.- Returns:
- the value of the
arityrecord component
-
allowedSrc1
-
allowedSrc2
-
expectedDst
-