Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

LocalVariableInstruction Class Reference

Inheritance diagram for LocalVariableInstruction:
[legend]
Collaboration diagram for LocalVariableInstruction:
[legend]
List of all members.

Public Methods

void dump (DataOutputStream out) throws IOException
final int getIndex ()
final void setIndex (int n)
String toString (boolean verbose)
void dump (DataOutputStream out) throws IOException
short getCanonicalTag ()
final int getIndex ()
Type getType (ConstantPoolGen cp)
final void setIndex (int n)
String toString (boolean verbose)

Protected Methods

 LocalVariableInstruction (short tag, short c_tag, int n)
void initFromFile (ByteSequence bytes, boolean wide) throws IOException
 LocalVariableInstruction (short tag, short c_tag, int n)
void initFromFile (ByteSequence bytes, boolean wide) throws IOException

Private Methods

 LocalVariableInstruction (short canon_tag, short c_tag)
final boolean wide ()
 LocalVariableInstruction (short canon_tag, short c_tag)
final boolean wide ()

Private Attributes

int n
short c_tag
short canon_tag

Detailed Description

Abstract super class for instructions dealing with local variables.

Version:
Id:
LocalVariableInstruction.java,v 1.1.1.1 2002/01/24 03:44:03 pserver Exp
Author:
M. Dahm

Definition at line 13 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.


Constructor & Destructor Documentation

LocalVariableInstruction::LocalVariableInstruction short   canon_tag,
short   c_tag
[inline, private]
 

Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. tag and length are defined in readInstruction and initFromFile, respectively.

Definition at line 23 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.

LocalVariableInstruction::LocalVariableInstruction short   tag,
short   c_tag,
int   n
[inline, protected]
 

Parameters:
tag   Instruction number
c_tag   Instruction number for compact version, ALOAD_0, e.g.
n   local variable index (unsigned short)

Definition at line 33 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.

LocalVariableInstruction::LocalVariableInstruction short   canon_tag,
short   c_tag
[inline, private]
 

Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise. tag and length are defined in readInstruction and initFromFile, respectively.

Definition at line 25 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

LocalVariableInstruction::LocalVariableInstruction short   tag,
short   c_tag,
int   n
[inline, protected]
 

Parameters:
tag   Instruction number
c_tag   Instruction number for compact version, ALOAD_0, e.g.
n   local variable index (unsigned short)

Definition at line 35 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.


Member Function Documentation

void LocalVariableInstruction::dump DataOutputStream   out [inline]
 

Dump instruction as byte code to stream out.

Parameters:
out   Output stream

Reimplemented from Instruction.

Definition at line 47 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

void LocalVariableInstruction::dump DataOutputStream   out [inline]
 

Dump instruction as byte code to stream out.

Parameters:
out   Output stream

Reimplemented from Instruction.

Definition at line 45 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.

short LocalVariableInstruction::getCanonicalTag   [inline]
 

Returns:
canonical tag for instrucion, e.g., ALOAD for ALOAD_0

Definition at line 62 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

final int LocalVariableInstruction::getIndex   [inline]
 

Returns:
local variable index referred by this instruction.

Reimplemented from IndexedInstruction.

Definition at line 68 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

final int LocalVariableInstruction::getIndex   [inline]
 

Returns:
local variable index referred by this instruction.

Reimplemented from IndexedInstruction.

Definition at line 61 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.

Referenced by MethodGen::setMaxLocals().

Type LocalVariableInstruction::getType ConstantPoolGen   cp [inline]
 

Returns:
type associated with the instruction

Reimplemented from TypedInstruction.

Definition at line 71 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

Referenced by MethodGen::setMaxLocals().

void LocalVariableInstruction::initFromFile ByteSequence   bytes,
boolean   wide
[inline, protected]
 

Read needed data (e.g. index) from file. PRE: (ILOAD <= tag <= ALOAD_3) || (ISTORE <= tag <= ASTORE_3)

Reimplemented from Instruction.

Definition at line 91 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

void LocalVariableInstruction::initFromFile ByteSequence   bytes,
boolean   wide
[inline, protected]
 

Read needed data (e.g. index) from file. PRE: (ILOAD <= tag <= ALOAD_3) || (ISTORE <= tag <= ASTORE_3)

Reimplemented from Instruction.

Definition at line 66 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.

final void LocalVariableInstruction::setIndex int   n [inline]
 

Set the local variable index

Reimplemented from IndexedInstruction.

Definition at line 114 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

final void LocalVariableInstruction::setIndex int   n [inline]
 

Set the local variable index

Reimplemented from IndexedInstruction.

Definition at line 87 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.

String LocalVariableInstruction::toString boolean   verbose [inline]
 

Long output format:

<name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< local variable index>">"

Parameters:
verbose   long/short format switch
Returns:
mnemonic for instruction

Reimplemented from Instruction.

Definition at line 141 of file src/de/fub/bytecode/generic/LocalVariableInstruction.java.

String LocalVariableInstruction::toString boolean   verbose [inline]
 

Long output format:

<name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< local variable index>">"

Parameters:
verbose   long/short format switch
Returns:
mnemonic for instruction

Reimplemented from Instruction.

Definition at line 114 of file lib/jpf/de/fub/bytecode/generic/LocalVariableInstruction.java.


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:19:16 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001