ShasamblyOpcodeJumpStaticToRelativeIndex
open class ShasamblyOpcodeJumpStaticToRelativeIndex(val relativeIndex: Int) : ShasamblyOpcodeJumpStatic(source)
Generator for opcode Opcodes.JUMP_STATIC, but the argument is the index relative index of an opcode and is recalculated in the #generate function
You can use for Example
ShasamblyOpcodeJumpStaticToRelativeIndex(-2)
Content copied to clipboard
to jump to the previous index or
ShasamblyOpcodeJumpStaticToRelativeIndex(1)
Content copied to clipboard
to skip the next opcode
See also
Properties
Link copied to clipboard
Link copied to clipboard
Returns the size of the ShasamblyOpcode in bytes This is required by by the generate function of some opcodes because they have to resolve opcode indexes to byte indexes This value should be constant and not depend on other opcodes!