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

Instruction_noargs Class Reference

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

Public Methods

 Instruction_noargs (byte c)
int compile (byte bc[], int index)
int parse (byte bc[], int index)

Detailed Description

Instruction subclasses are used to represent parsed bytecode; each bytecode operation has a corresponding subclass of Instruction.

Each subclass is derived from one of

Author:
Clark Verbrugge
See also:
Instruction , Instruction_noargs , Instruction_byte , Instruction_bytevar , Instruction_byteindex , Instruction_int , Instruction_intvar , Instruction_intindex , Instruction_intbranch , Instruction_longbranch , Instruction_Unknown

Definition at line 138 of file Instruction_noargs.java.


Member Function Documentation

int Instruction_noargs::compile byte   bc[],
int   index
[inline, virtual]
 

Writes out the sequence of bytecodes represented by this instruction, including any arguments.

Parameters:
bc   complete array of bytecode.
index   offset of remaining bytecode at which to start writing.
Returns:
offset of the next available bytecode.
See also:
ClassFile::unparseMethod , Instruction::parse

Reimplemented from Instruction.

Definition at line 140 of file Instruction_noargs.java.

int Instruction_noargs::parse byte   bc[],
int   index
[inline, virtual]
 

Assuming the actual bytecode for this instruction has been extracted already, and index is the offset of the next byte, this method parses whatever arguments the instruction requires and return the offset of the next available byte.

Parameters:
bc   complete array of bytecode.
index   offset of remaining bytecode after this instruction's bytecode was parsed.
Returns:
offset of the next available bytecode.
See also:
ByteCode::disassemble_bytecode , Instruction::compile

Reimplemented from Instruction.

Definition at line 141 of file Instruction_noargs.java.


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