|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoeq.Compiler.BytecodeAnalysis.Bytecodes.Instruction
public abstract static class Bytecodes.Instruction
| Constructor Summary | |
|---|---|
Bytecodes.Instruction(short opcode,
short length)
|
|
| Method Summary | |
|---|---|
abstract void |
accept(Bytecodes.Visitor v)
Call corresponding visitor method(s). |
int |
consumeStack()
|
Bytecodes.Instruction |
copy()
Use with caution, since `BranchInstruction's have a `target' reference which is not copied correctly (only basic types are). |
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out. |
int |
getLength()
|
short |
getOpcode()
|
int |
produceStack()
|
static Bytecodes.Instruction |
readInstruction(jq_ConstantPool cp,
jwutil.io.ByteSequence bytes)
Read an instruction from (byte code) input stream and return the appropiate object. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean verbose)
Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bytecodes.Instruction(short opcode,
short length)
| Method Detail |
|---|
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
out - Output stream
java.io.IOExceptionpublic java.lang.String toString(boolean verbose)
verbose - long/short format switch
public java.lang.String toString()
toString in class java.lang.Objectpublic Bytecodes.Instruction copy()
Bytecodes.BranchInstruction
public static final Bytecodes.Instruction readInstruction(jq_ConstantPool cp,
jwutil.io.ByteSequence bytes)
throws java.io.IOException
cp - constant pool of class we are reading frombytes - sequence of bytes to read
java.io.IOExceptionpublic int consumeStack()
public int produceStack()
public short getOpcode()
public int getLength()
public abstract void accept(Bytecodes.Visitor v)
v - Visitor object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||