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

public final Class PUSH

extends Object
implements CompoundInstruction, VariableLengthInstruction
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.generic.VariableLengthInstruction, com.sun.org.apache.bcel.internal.generic.CompoundInstruction
Imports
java.util.Objects, com.sun.org.apache.bcel.internal.Const

Wrapper class for push operations, which are implemented either as BIPUSH, LDC or xCONST_n instructions.

Field Summary

Modifier and TypeField and Description
private final Instruction

Constructor Summary

AccessConstructor and Description
public
PUSH(final ConstantPoolGen
generated constant pool.
cp
,
final ArrayType
to be pushed.
value
)

Pushes an array type constant, for example int[].class, String[].class, and so on.

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final boolean
to be pushed
value
)

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final Boolean
to be pushed
value
)

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final Character
to be pushed
value
)

creates a push object from a Character value.

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final double
to be pushed
value
)

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final float
to be pushed
value
)

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final int
to be pushed
value
)

This constructor also applies for values of type short, char, byte

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final long
to be pushed
value
)

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final Number
to be pushed
value
)

public
PUSH(final ConstantPoolGen cp, final ObjectType value)

public
PUSH(final ConstantPoolGen
Constant pool
cp
,
final String
to be pushed
value
)

Method Summary

Modifier and TypeMethod and Description
public Instruction
public InstructionList
public String

Returns:

mnemonic for instruction
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

instructionback to summary
private final Instruction instruction

Constructor Detail

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final ArrayType value)

Pushes an array type constant, for example int[].class, String[].class, and so on.

Parameters
cp:ConstantPoolGen

generated constant pool.

value:ArrayType

to be pushed.

Since
6.7.0
PUSHback to summary
public PUSH(final ConstantPoolGen cp, final boolean value)
Parameters
cp:ConstantPoolGen

Constant pool

value:boolean

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final Boolean value)
Parameters
cp:ConstantPoolGen

Constant pool

value:Boolean

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final Character value)

creates a push object from a Character value.

Warning

Make sure not to attempt to allow autoboxing to create this value parameter, as an alternative constructor will be called

Parameters
cp:ConstantPoolGen

Constant pool

value:Character

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final double value)
Parameters
cp:ConstantPoolGen

Constant pool

value:double

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final float value)
Parameters
cp:ConstantPoolGen

Constant pool

value:float

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final int value)

This constructor also applies for values of type short, char, byte

Parameters
cp:ConstantPoolGen

Constant pool

value:int

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final long value)
Parameters
cp:ConstantPoolGen

Constant pool

value:long

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final Number value)
Parameters
cp:ConstantPoolGen

Constant pool

value:Number

to be pushed

PUSHback to summary
public PUSH(final ConstantPoolGen cp, final ObjectType value)
Since
6.0
PUSHback to summary
public PUSH(final ConstantPoolGen cp, final String value)
Parameters
cp:ConstantPoolGen

Constant pool

value:String

to be pushed

Method Detail

getInstructionback to summary
public Instruction getInstruction()
getInstructionListback to summary
public InstructionList getInstructionList()

Implements com.sun.org.apache.bcel.internal.generic.CompoundInstruction.getInstructionList.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

mnemonic for instruction

Annotations
@Override