org.apache.bcel.generic

Class ArrayInstruction

Implemented Interfaces:
Cloneable, ExceptionThrower, Serializable, TypedInstruction
Known Direct Subclasses:
AALOAD, AASTORE, BALOAD, BASTORE, CALOAD, CASTORE, DALOAD, DASTORE, FALOAD, FASTORE, IALOAD, IASTORE, LALOAD, LASTORE, SALOAD, SASTORE

public abstract class ArrayInstruction
extends Instruction
implements ExceptionThrower, TypedInstruction

Super class for instructions dealing with array access such as IALOAD.
Version:
$Id: ArrayInstruction.java,v 1.1.1.1 2001/10/29 20:00:06 jvanzyl Exp $
Author:
M. Dahm

Field Summary

Fields inherited from class org.apache.bcel.generic.Instruction

length, opcode

Constructor Summary

ArrayInstruction(short opcode)

Method Summary

Class[]
getExceptions()
Type
getType(ConstantPoolGen cp)

Methods inherited from class org.apache.bcel.generic.Instruction

accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString

Constructor Details

ArrayInstruction

protected ArrayInstruction(short opcode)
Parameters:
opcode - of instruction

Method Details

getExceptions

public Class[] getExceptions()
Specified by:
getExceptions in interface ExceptionThrower

getType

public Type getType(ConstantPoolGen cp)
Specified by:
getType in interface TypedInstruction
Returns:
type associated with the instruction