Record Class SubInputVarGen
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.var.SubInputVarGen
- Record Components:
byteOffset- the number of bytes to the right of the subpiecemaxByteSize- the size of the subpiece
- All Implemented Interfaces:
InputVarGen, LocalVarGen<JitInputVar>, SubLocalVarGen<JitInputVar>, ValGen<JitInputVar>, VarGen<JitInputVar>
public record SubInputVarGen(int byteOffset, int maxByteSize)
extends Record
implements SubLocalVarGen<JitInputVar>, InputVarGen
The generator for a subpiece of a local variable that is input to the passage.
-
Nested Class Summary
Nested classes/interfaces inherited from interface VarGen
VarGen.BlockTransition<THIS> -
Constructor Summary
ConstructorsConstructorDescriptionSubInputVarGen(int byteOffset, int maxByteSize) Creates an instance of aSubInputVarGenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebyteOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxByteSizerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface InputVarGen
genReadToBool, genWriteFromArray, genWriteFromOpnd, genWriteFromStackMethods inherited from interface LocalVarGen
genReadLegToStack, genReadToArray, genReadToOpnd, genReadToStack, genValInitMethods inherited from interface SubLocalVarGen
getHandler, subpiece
-
Constructor Details
-
SubInputVarGen
public SubInputVarGen(int byteOffset, int maxByteSize) Creates an instance of aSubInputVarGenrecord class.- Parameters:
byteOffset- the value for thebyteOffsetrecord componentmaxByteSize- the value for themaxByteSizerecord 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. -
byteOffset
public int byteOffset()Returns the value of thebyteOffsetrecord component.- Specified by:
byteOffsetin interfaceSubLocalVarGen<JitInputVar>- Returns:
- the value of the
byteOffsetrecord component
-
maxByteSize
public int maxByteSize()Returns the value of themaxByteSizerecord component.- Specified by:
maxByteSizein interfaceSubLocalVarGen<JitInputVar>- Returns:
- the value of the
maxByteSizerecord component
-