|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.rice.cs.cunit.classFile.code.instructions.AInstruction edu.rice.cs.cunit.classFile.code.instructions.GenericInstruction edu.rice.cs.cunit.classFile.code.instructions.WideInstruction
public class WideInstruction
Wide Java instruction.
Field Summary |
---|
Fields inherited from class edu.rice.cs.cunit.classFile.code.instructions.GenericInstruction |
---|
_code |
Constructor Summary | |
---|---|
WideInstruction(byte[] code)
Constructor. |
|
WideInstruction(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. |
Method Summary | |
---|---|
int |
getBytecodeLength(int pc)
Get the length bytecode for this instruction, padded for the specified program counter value. |
byte |
getOpcode()
Get the opcode of this instruction. |
int |
hashCode()
Return hash code. |
void |
setBranchTargets(int[] branchTargets)
Set the branch target indices. |
java.lang.String |
toString()
Return instruction in human-readable form. |
Methods inherited from class edu.rice.cs.cunit.classFile.code.instructions.GenericInstruction |
---|
equals, getBranchTargets, getBytecode, getBytecode |
Methods inherited from class edu.rice.cs.cunit.classFile.code.instructions.AInstruction |
---|
getCorrespondingLoad, getCorrespondingStore, makeInstruction, toStringVerbose |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WideInstruction(byte[] code)
code
- bytecode for generic instruction, excluding the WIDE opcodepublic WideInstruction(byte[] bytecode, int pc, int paddingPC, LineNumberTable lnt)
bytecode
- bytecodepc
- starting index in bytecodepaddingPC
- PC for paddinglnt
- line number table for branchesMethod Detail |
---|
public byte getOpcode()
getOpcode
in class GenericInstruction
public int getBytecodeLength(int pc)
getBytecodeLength
in class GenericInstruction
pc
- PC for padding
public int hashCode()
hashCode
in class GenericInstruction
public void setBranchTargets(int[] branchTargets)
setBranchTargets
in class GenericInstruction
branchTargets
- array of target indicespublic java.lang.String toString()
toString
in class GenericInstruction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |