Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Compil3r.BytecodeAnalysis
Class Bytecodes.RET  view Bytecodes.RET download Bytecodes.RET.java

java.lang.Object
  extended byCompil3r.BytecodeAnalysis.Bytecodes.Instruction
      extended byCompil3r.BytecodeAnalysis.Bytecodes.RET
All Implemented Interfaces:
Bytecodes.IndexedInstruction, Bytecodes.TypedInstruction, java.lang.Cloneable, java.io.Serializable
Enclosing class:
Bytecodes

public static class Bytecodes.RET
extends Bytecodes.Instruction
implements Bytecodes.IndexedInstruction, Bytecodes.TypedInstruction


Field Summary
private  int index
           
private  boolean wide
           
 
Fields inherited from class Compil3r.BytecodeAnalysis.Bytecodes.Instruction
length, opcode
 
Constructor Summary
(package private) Bytecodes.RET()
          Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
  Bytecodes.RET(int index)
           
 
Method Summary
 void accept(Bytecodes.Visitor v)
          Call corresponding visitor method(s).
 void dump(java.io.DataOutputStream out)
          Dump instruction as byte code to stream out.
 int getIndex()
           
 Clazz.jq_Type getType()
           
protected  void initFromFile(Clazz.jq_ConstantPool cp, Util.IO.ByteSequence bytes, boolean wide)
          Read needed data (e.g.
 void setIndex(int n)
          Set index of local variable containg the return address
private  void setWide()
           
 java.lang.String toString(boolean verbose)
          Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")"
 
Methods inherited from class Compil3r.BytecodeAnalysis.Bytecodes.Instruction
consumeStack, copy, dispose, getLength, getOpcode, produceStack, readInstruction, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wide

private boolean wide

index

private int index
Constructor Detail

Bytecodes.RET

Bytecodes.RET()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.


Bytecodes.RET

public Bytecodes.RET(int index)
Method Detail

dump

public void dump(java.io.DataOutputStream out)
          throws java.io.IOException
Dump instruction as byte code to stream out.

Overrides:
dump in class Bytecodes.Instruction

setWide

private final void setWide()

initFromFile

protected void initFromFile(Clazz.jq_ConstantPool cp,
                            Util.IO.ByteSequence bytes,
                            boolean wide)
                     throws java.io.IOException
Read needed data (e.g. index) from file.

Overrides:
initFromFile in class Bytecodes.Instruction

getIndex

public final int getIndex()
Specified by:
getIndex in interface Bytecodes.IndexedInstruction

setIndex

public final void setIndex(int n)
Set index of local variable containg the return address

Specified by:
setIndex in interface Bytecodes.IndexedInstruction

toString

public java.lang.String toString(boolean verbose)
Description copied from class: Bytecodes.Instruction
Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")"

Overrides:
toString in class Bytecodes.Instruction

getType

public Clazz.jq_Type getType()
Specified by:
getType in interface Bytecodes.TypedInstruction

accept

public void accept(Bytecodes.Visitor v)
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.

Specified by:
accept in class Bytecodes.Instruction