public enum ShiftRight extends Enum<ShiftRight> implements StackManipulation
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ShiftRight.Unsigned
A stack manipulation that shifts right unsigned two numbers on the operand stack.
|
StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial| Enum Constant and Description |
|---|
INTEGER
Shifts right two integers or integer-compatible values.
|
LONG
Shifts right two longs.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
StackManipulation |
toUnsigned()
Returns the unsigned equivalent of this operation.
|
static ShiftRight |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShiftRight[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShiftRight INTEGER
public static final ShiftRight LONG
public static ShiftRight[] values()
for (ShiftRight c : ShiftRight.values()) System.out.println(c);
public static ShiftRight valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic StackManipulation toUnsigned()
public boolean isValid()
isValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
apply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2023. All rights reserved.