|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectproguard.classfile.instruction.Instruction
proguard.classfile.instruction.BranchInstruction
This interface describes an instruction that branches to a given offset in the code.
| Field Summary | |
int |
branchOffset
|
| Fields inherited from class proguard.classfile.instruction.Instruction |
opcode |
| Constructor Summary | |
BranchInstruction()
Creates an uninitialized BranchInstruction. |
|
BranchInstruction(byte opcode,
int branchOffset)
|
|
| Method Summary | |
void |
accept(ClassFile classFile,
MethodInfo methodInfo,
CodeAttrInfo codeAttrInfo,
int offset,
InstructionVisitor instructionVisitor)
Accepts the given visitor. |
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. |
| Methods inherited from class proguard.classfile.instruction.Instruction |
getName, isCategory2, isWide, readByte, readInt, readShort, readSignedByte, readSignedShort, readSignedValue, readValue, stackPopCount, stackPushCount, write, writeByte, writeInt, writeShort, writeValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int branchOffset
| Constructor Detail |
public BranchInstruction()
public BranchInstruction(byte opcode,
int branchOffset)
| Method Detail |
public BranchInstruction copy(BranchInstruction branchInstruction)
branchInstruction - the instruction to be copied.
public Instruction shrink()
Instruction
shrink in class Instruction
protected void readInfo(byte[] code,
int offset)
Instruction
readInfo in class Instruction
protected void writeInfo(byte[] code,
int offset)
Instruction
writeInfo in class Instructionpublic int length(int offset)
Instruction
length in class Instruction
public void accept(ClassFile classFile,
MethodInfo methodInfo,
CodeAttrInfo codeAttrInfo,
int offset,
InstructionVisitor instructionVisitor)
Instruction
accept in class Instructionpublic String toString(int offset)
Instruction
toString in class Instructionpublic String toString()
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||