|
|||||||||
| 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.VariableInstruction
public class VariableInstruction
This Instruction represents an instruction that refers to a variable on the local variable stack.
| Field Summary | |
|---|---|
int |
constant
|
int |
variableIndex
|
boolean |
wide
|
| Fields inherited from class proguard.classfile.instruction.Instruction |
|---|
opcode |
| Constructor Summary | |
|---|---|
VariableInstruction()
Creates an uninitialized VariableInstruction. |
|
VariableInstruction(boolean wide)
|
|
VariableInstruction(byte opcode)
|
|
VariableInstruction(byte opcode,
int variableIndex)
|
|
VariableInstruction(byte opcode,
int variableIndex,
int constant)
|
|
| Method Summary | |
|---|---|
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. |
VariableInstruction |
copy(VariableInstruction variableInstruction)
Copies the given instruction into this instruction. |
boolean |
isLoad()
Returns whether this instruction loads the value of a variable. |
boolean |
isStore()
Returns whether this instruction stores the value of a variable. |
protected boolean |
isWide()
Returns whether the instruction is wide, i.e. |
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. |
java.lang.String |
toString()
|
protected void |
writeInfo(byte[] code,
int offset)
Writes data following the instruction opcode. |
| Methods inherited from class proguard.classfile.instruction.Instruction |
|---|
getName, isCategory2, readByte, readInt, readShort, readSignedByte, readSignedShort, readSignedValue, readValue, stackPopCount, stackPushCount, toString, write, write, writeByte, writeInt, writeShort, writeSignedByte, writeSignedShort, writeSignedValue, writeValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean wide
public int variableIndex
public int constant
| Constructor Detail |
|---|
public VariableInstruction()
public VariableInstruction(boolean wide)
public VariableInstruction(byte opcode)
public VariableInstruction(byte opcode,
int variableIndex)
public VariableInstruction(byte opcode,
int variableIndex,
int constant)
| Method Detail |
|---|
public VariableInstruction copy(VariableInstruction variableInstruction)
variableInstruction - the instruction to be copied.
public boolean isStore()
public boolean isLoad()
public byte canonicalOpcode()
Instruction
canonicalOpcode in class Instructionpublic Instruction shrink()
Instruction
shrink in class Instructionprotected boolean isWide()
Instruction
isWide 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(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
int offset,
InstructionVisitor instructionVisitor)
Instruction
accept in class Instructionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||