| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--org.apache.bcel.generic.Instruction
        |
        +--org.apache.bcel.generic.LocalVariableInstruction
Abstract super class for instructions dealing with local variables.
| Field Summary | |
| protected  int | n | 
| Fields inherited from class org.apache.bcel.generic.Instruction | 
| length, opcode | 
| Constructor Summary | |
| protected  | LocalVariableInstruction(short opcode,
                         short c_tag,
                         int n) | 
| Method Summary | |
|  void | dump(java.io.DataOutputStream out)Dump instruction as byte code to stream out. | 
|  short | getCanonicalTag() | 
|  int | getIndex() | 
|  Type | getType(ConstantPoolGen cp)Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned. | 
| protected  void | initFromFile(ByteSequence bytes,
             boolean wide)Read needed data (e.g. index) from file. | 
|  void | setIndex(int n)Set the local variable index | 
|  java.lang.String | toString(boolean verbose)Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< local variable index>">" | 
| Methods inherited from class org.apache.bcel.generic.Instruction | 
| accept, consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString, toString | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected int n
| Constructor Detail | 
protected LocalVariableInstruction(short opcode,
                                   short c_tag,
                                   int n)
opcode - Instruction opcodec_tag - Instruction number for compact version, ALOAD_0, e.g.n - local variable index (unsigned short)| Method Detail | 
public void dump(java.io.DataOutputStream out)
          throws java.io.IOException
dump in class Instructionout - Output stream
java.io.IOExceptionpublic java.lang.String toString(boolean verbose)
toString in class Instructionverbose - long/short format switch
protected void initFromFile(ByteSequence bytes,
                            boolean wide)
                     throws java.io.IOException
initFromFile in class Instructionbytes - byte sequence to read fromwide - "wide" instruction flag
java.io.IOExceptionpublic final int getIndex()
getIndex in interface IndexedInstructionpublic void setIndex(int n)
setIndex in interface IndexedInstructionpublic short getCanonicalTag()
public Type getType(ConstantPoolGen cp)
getType in interface TypedInstruction| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||