|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.classFile.code.instructions.AInstruction
edu.rice.cs.cunit.classFile.code.instructions.GenericInstruction
edu.rice.cs.cunit.classFile.code.instructions.ReferenceInstruction
public class ReferenceInstruction
Instruction containing a reference to the constant pool.
| Field Summary | |
|---|---|
(package private) int |
_refSize
Size of the reference in bytes. |
| Fields inherited from class edu.rice.cs.cunit.classFile.code.instructions.GenericInstruction |
|---|
_code |
| Constructor Summary | |
|---|---|
ReferenceInstruction(byte[] bytecode,
int pc,
int paddingPC,
LineNumberTable lnt)
Make a new generic instruction from the bytecode stating at pc, padded using paddingPC, and use the line number table for branches. |
|
ReferenceInstruction(byte opcode,
int constantPoolId)
Constructor. |
|
| Method Summary | |
|---|---|
private void |
checkOpcode(byte opcode)
Check the opcode to make sure it is a reference instruction. |
int |
getReference()
Get the constant pool id. |
void |
setReference(int constantPoolId)
Set the constant pool id. |
java.lang.String |
toStringVerbose(ConstantPool cp)
Return a verbose string representation. |
| Methods inherited from class edu.rice.cs.cunit.classFile.code.instructions.GenericInstruction |
|---|
equals, getBranchTargets, getBytecode, getBytecode, getBytecodeLength, getOpcode, hashCode, setBranchTargets, toString |
| Methods inherited from class edu.rice.cs.cunit.classFile.code.instructions.AInstruction |
|---|
getCorrespondingLoad, getCorrespondingStore, makeInstruction |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
int _refSize
| Constructor Detail |
|---|
public ReferenceInstruction(byte opcode,
int constantPoolId)
opcode - invoke opcodeconstantPoolId - method id in constant pool
public ReferenceInstruction(byte[] bytecode,
int pc,
int paddingPC,
LineNumberTable lnt)
bytecode - bytecodepc - starting index in bytecodepaddingPC - PC for paddinglnt - line number table for branches| Method Detail |
|---|
private void checkOpcode(byte opcode)
opcode - opcode to checkpublic void setReference(int constantPoolId)
constantPoolId - new constant pool idpublic int getReference()
public java.lang.String toStringVerbose(ConstantPool cp)
toStringVerbose in class AInstructioncp - constant pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||