|
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.CpInstruction
This Instruction represents an instruction that refers to an entry in the constant pool.
| Field Summary | |
int |
constant
|
int |
cpIndex
|
| Fields inherited from class proguard.classfile.instruction.Instruction |
opcode |
| Constructor Summary | |
CpInstruction()
Creates an uninitialized CpInstruction. |
|
CpInstruction(byte opcode,
int cpIndex)
Creates a new CpInstruction with the given opcode and constant pool index. |
|
CpInstruction(byte opcode,
int cpIndex,
int constant)
Creates a new CpInstruction with the given opcode, constant pool index, and constant. |
|
| Method Summary | |
void |
accept(ClassFile classFile,
MethodInfo methodInfo,
CodeAttrInfo codeAttrInfo,
int offset,
InstructionVisitor instructionVisitor)
Accepts the given visitor. |
CpInstruction |
copy(CpInstruction cpInstruction)
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. |
int |
stackPopCount(ClassFile classFile)
Returns the number of entries popped from the stack during the execution of the instruction. |
int |
stackPushCount(ClassFile classFile)
Returns the number of entries pushed onto the stack during the execution of the instruction. |
String |
toString()
|
String |
toString(int offset)
Returns a description of the instruction, at the given offset. |
void |
visitClassCpInfo(ClassFile classFile,
ClassCpInfo classCpInfo)
|
void |
visitDoubleCpInfo(ClassFile classFile,
DoubleCpInfo doubleCpInfo)
|
void |
visitFieldrefCpInfo(ClassFile classFile,
FieldrefCpInfo fieldrefCpInfo)
|
void |
visitFloatCpInfo(ClassFile classFile,
FloatCpInfo floatCpInfo)
|
void |
visitIntegerCpInfo(ClassFile classFile,
IntegerCpInfo integerCpInfo)
|
void |
visitInterfaceMethodrefCpInfo(ClassFile classFile,
InterfaceMethodrefCpInfo interfaceMethodrefCpInfo)
|
void |
visitLongCpInfo(ClassFile classFile,
LongCpInfo longCpInfo)
|
void |
visitMethodrefCpInfo(ClassFile classFile,
MethodrefCpInfo methodrefCpInfo)
|
void |
visitNameAndTypeCpInfo(ClassFile classFile,
NameAndTypeCpInfo nameAndTypeCpInfo)
|
void |
visitStringCpInfo(ClassFile classFile,
StringCpInfo stringCpInfo)
|
void |
visitUtf8CpInfo(ClassFile classFile,
Utf8CpInfo utf8CpInfo)
|
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, 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 cpIndex
public int constant
| Constructor Detail |
public CpInstruction()
public CpInstruction(byte opcode,
int cpIndex)
public CpInstruction(byte opcode,
int cpIndex,
int constant)
| Method Detail |
public CpInstruction copy(CpInstruction cpInstruction)
cpInstruction - 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 int stackPopCount(ClassFile classFile)
Instruction
stackPopCount in class Instructionpublic int stackPushCount(ClassFile classFile)
Instruction
stackPushCount in class Instruction
public void visitIntegerCpInfo(ClassFile classFile,
IntegerCpInfo integerCpInfo)
visitIntegerCpInfo in interface CpInfoVisitor
public void visitLongCpInfo(ClassFile classFile,
LongCpInfo longCpInfo)
visitLongCpInfo in interface CpInfoVisitor
public void visitFloatCpInfo(ClassFile classFile,
FloatCpInfo floatCpInfo)
visitFloatCpInfo in interface CpInfoVisitor
public void visitDoubleCpInfo(ClassFile classFile,
DoubleCpInfo doubleCpInfo)
visitDoubleCpInfo in interface CpInfoVisitor
public void visitStringCpInfo(ClassFile classFile,
StringCpInfo stringCpInfo)
visitStringCpInfo in interface CpInfoVisitor
public void visitUtf8CpInfo(ClassFile classFile,
Utf8CpInfo utf8CpInfo)
visitUtf8CpInfo in interface CpInfoVisitor
public void visitClassCpInfo(ClassFile classFile,
ClassCpInfo classCpInfo)
visitClassCpInfo in interface CpInfoVisitor
public void visitNameAndTypeCpInfo(ClassFile classFile,
NameAndTypeCpInfo nameAndTypeCpInfo)
visitNameAndTypeCpInfo in interface CpInfoVisitor
public void visitFieldrefCpInfo(ClassFile classFile,
FieldrefCpInfo fieldrefCpInfo)
visitFieldrefCpInfo in interface CpInfoVisitor
public void visitInterfaceMethodrefCpInfo(ClassFile classFile,
InterfaceMethodrefCpInfo interfaceMethodrefCpInfo)
visitInterfaceMethodrefCpInfo in interface CpInfoVisitor
public void visitMethodrefCpInfo(ClassFile classFile,
MethodrefCpInfo methodrefCpInfo)
visitMethodrefCpInfo in interface CpInfoVisitorpublic String toString()
|
ProGuard | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||