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

public Class DCONST

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

DCONST - Push 0.0 or 1.0, other values cause an exception
Stack: ... -> ...,

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
DCONST()

Empty constructor needed for Instruction.readInstruction.

public
DCONST(final double f)

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

Constructor Detail

DCONSTback to summary
pack-priv DCONST()

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

DCONSTback to summary
public DCONST(final double f)

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

Annotations
@Override
getValueback to summary
public Number getValue()

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

Annotations
@Override