org.apache.bcel.generic

Class ArithmeticInstruction

public abstract class ArithmeticInstruction extends Instruction implements TypedInstruction, StackProducer, StackConsumer

Super class for the family of arithmetic instructions.

Version: $Id: ArithmeticInstruction.java 386056 2006-03-15 11:31:56Z tcurdt $

Author: M. Dahm

Constructor Summary
ArithmeticInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
protected ArithmeticInstruction(short opcode)
Method Summary
TypegetType(ConstantPoolGen cp)

Constructor Detail

ArithmeticInstruction

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

ArithmeticInstruction

protected ArithmeticInstruction(short opcode)

Parameters: opcode of instruction

Method Detail

getType

public Type getType(ConstantPoolGen cp)

Returns: type associated with the instruction