public enum Multiplication extends java.lang.Enum<Multiplication> implements StackManipulation
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Size, StackManipulation.Trivial
Enum Constant and Description |
---|
DOUBLE
Multiplies two doubles.
|
FLOAT
Multiplies two floats.
|
INTEGER
Multiplies two integers or integer-compatible values.
|
LONG
Multiplies two longs.
|
Modifier and Type | Field and Description |
---|---|
private int |
opcode
The opcode to apply.
|
private StackSize |
stackSize
The stack size of the multiplied primitive.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation.Size |
apply(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
static Multiplication |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Multiplication[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Multiplication INTEGER
public static final Multiplication LONG
public static final Multiplication FLOAT
public static final Multiplication DOUBLE
private final int opcode
private final StackSize stackSize
public static Multiplication[] values()
for (Multiplication c : Multiplication.values()) System.out.println(c);
public static Multiplication valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isValid()
isValid
in interface StackManipulation
false
, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext)
apply
in interface StackManipulation
methodVisitor
- The method visitor used to write the method implementation to.implementationContext
- The context of the current implementation.