protected static enum MethodConstant.CanCacheIllegal extends Enum<MethodConstant.CanCacheIllegal> implements MethodConstant.CanCache
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Size, StackManipulation.Trivial| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
StackManipulation |
cached()
Returns this method constant as a cached version.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
static MethodConstant.CanCacheIllegal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodConstant.CanCacheIllegal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodConstant.CanCacheIllegal INSTANCE
public static MethodConstant.CanCacheIllegal[] values()
for (MethodConstant.CanCacheIllegal c : MethodConstant.CanCacheIllegal.values()) System.out.println(c);
public static MethodConstant.CanCacheIllegal 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 cached()
MethodConstant.CanCachecached in interface MethodConstant.CanCachepublic boolean isValid()
StackManipulationisValid in interface StackManipulationfalse, this manipulation cannot be applied and should throw an exception.public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
StackManipulationapply in interface StackManipulationmethodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2017. All rights reserved.