Top Description Fields Constructors Methods
org.apache.bcel.generic

public Class ICONST

extends Instruction
implements ConstantPushInstruction
Class Inheritance
All Implemented Interfaces
org.apache.bcel.generic.ConstantPushInstruction, org.apache.bcel.generic.TypedInstruction, org.apache.bcel.generic.PushInstruction, org.apache.bcel.generic.StackProducer

ICONST - Push value between -1, ..., 5, other values cause an exception
Stack: ... -> ...,

Field Summary

Modifier and TypeField and Description
private final int
Inherited from org.apache.bcel.generic.Instruction:
EMPTY_ARRAYlengthopcode

Constructor Summary

AccessConstructor and Description
pack-priv
ICONST()

Empty constructor needed for Instruction.readInstruction.

public
ICONST(final int i)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract org.apache.bcel.generic.Instruction.accept.

Call corresponding visitor method(s).
public Type
public Number
Inherited from org.apache.bcel.generic.Instruction:
consumeStackcopydisposedumpequalsgetComparatorgetLengthgetNamegetOpcodehashCodeinitFromFileisValidByteisValidShortproduceStackreadInstructionsetComparatorsetLengthsetOpcodetoStringtoStringtoString

Field Detail

valueback to summary
private final int value

Constructor Detail

ICONSTback to summary
pack-priv ICONST()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

ICONSTback to summary
public ICONST(final int i)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract org.apache.bcel.generic.Instruction.accept.

Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.

Parameters
v:Visitor

Visitor object

Annotations
@Override
getTypeback to summary
public Type getType(final ConstantPoolGen cp)

Implements org.apache.bcel.generic.TypedInstruction.getType.

Returns:Type

Type.INT

Annotations
@Override
getValueback to summary
public Number getValue()

Implements org.apache.bcel.generic.ConstantPushInstruction.getValue.

Annotations
@Override