APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public Class ICONST

extends Instruction
implements ConstantPushInstruction
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.generic.ConstantPushInstruction, com.sun.org.apache.bcel.internal.generic.TypedInstruction, com.sun.org.apache.bcel.internal.generic.PushInstruction, com.sun.org.apache.bcel.internal.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 com.sun.org.apache.bcel.internal.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 com.sun.org.apache.bcel.internal.generic.Instruction.accept.

Call corresponding visitor method(s).

public Type
public Number
Inherited from com.sun.org.apache.bcel.internal.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 com.sun.org.apache.bcel.internal.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 com.sun.org.apache.bcel.internal.generic.TypedInstruction.getType.

Returns:Type

Type.INT

Annotations
@Override
getValueback to summary
public Number getValue()

Implements com.sun.org.apache.bcel.internal.generic.ConstantPushInstruction.getValue.

Annotations
@Override