public class BranchInstruction extends Instruction
| Modifier and Type | Field and Description |
|---|---|
int |
branchOffset |
opcode| Constructor and Description |
|---|
BranchInstruction()
Creates an uninitialized BranchInstruction.
|
BranchInstruction(byte opcode,
int branchOffset) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
InstructionVisitor instructionVisitor)
Accepts the given visitor.
|
byte |
canonicalOpcode()
Returns the canonical opcode of this instruction, i.e.
|
BranchInstruction |
copy(BranchInstruction branchInstruction)
Copies the given instruction into this instruction.
|
int |
length(int offset)
Returns the length in bytes of the instruction.
|
protected void |
readInfo(byte[] code,
int offset)
Reads the data following the instruction opcode.
|
Instruction |
shrink()
Shrinks this instruction to its shortest possible form.
|
String |
toString() |
String |
toString(int offset)
Returns a description of the instruction, at the given offset.
|
protected void |
writeInfo(byte[] code,
int offset)
Writes data following the instruction opcode.
|
getName, isCategory2, isWide, mayThrowExceptions, readByte, readInt, readShort, readSignedByte, readSignedShort, readSignedValue, readValue, stackPopCount, stackPushCount, write, write, writeByte, writeInt, writeShort, writeSignedByte, writeSignedShort, writeSignedValue, writeValuepublic BranchInstruction()
public BranchInstruction(byte opcode,
int branchOffset)
public BranchInstruction copy(BranchInstruction branchInstruction)
branchInstruction - the instruction to be copied.public byte canonicalOpcode()
InstructioncanonicalOpcode in class Instructionpublic Instruction shrink()
Instructionshrink in class Instructionprotected void readInfo(byte[] code,
int offset)
InstructionreadInfo in class Instructionprotected void writeInfo(byte[] code,
int offset)
InstructionwriteInfo in class Instructionpublic int length(int offset)
Instructionlength in class Instructionpublic void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor)
Instructionaccept in class Instructionpublic String toString(int offset)
InstructiontoString in class InstructionCopyright © 2015. All Rights Reserved.