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

public Class FCONST

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

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
FCONST()

Empty constructor needed for Instruction.readInstruction.

public
FCONST(final float 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 float value

Constructor Detail

FCONSTback to summary
pack-priv FCONST()

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

FCONSTback to summary
public FCONST(final float 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.FLOAT

Annotations
@Override
getValueback to summary
public Number getValue()

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

Annotations
@Override