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

public Class LCONST

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

LCONST - Push 0 or 1, other values cause an exception
Stack: ... -> ...,

Field Summary

Modifier and TypeField and Description
private final long
Inherited from com.sun.org.apache.bcel.internal.generic.Instruction:
EMPTY_ARRAYlengthopcode

Constructor Summary

AccessConstructor and Description
pack-priv
LCONST()

Empty constructor needed for Instruction.readInstruction.

public
LCONST(final long l)

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 long value

Constructor Detail

LCONSTback to summary
pack-priv LCONST()

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

LCONSTback to summary
public LCONST(final long l)

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.LONG

Annotations
@Override
getValueback to summary
public Number getValue()

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

Annotations
@Override