public static enum Implementation.SpecialMethodInvocation.Illegal extends Enum<Implementation.SpecialMethodInvocation.Illegal> implements Implementation.SpecialMethodInvocation
Implementation.SpecialMethodInvocation.Implementation.SpecialMethodInvocation.AbstractBase, Implementation.SpecialMethodInvocation.Illegal, Implementation.SpecialMethodInvocation.SimpleStackManipulation.Compound, 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.
|
MethodDescription |
getMethodDescription()
Returns the method that represents this special method invocation.
|
TypeDescription |
getTypeDescription()
Returns the target type the represented method is invoked on.
|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
static Implementation.SpecialMethodInvocation.Illegal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Implementation.SpecialMethodInvocation.Illegal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Implementation.SpecialMethodInvocation |
withCheckedCompatibilityTo(MethodDescription.TypeToken token)
Checks that this special method invocation is compatible with the supplied type representation.
|
public static final Implementation.SpecialMethodInvocation.Illegal INSTANCE
public static Implementation.SpecialMethodInvocation.Illegal[] values()
for (Implementation.SpecialMethodInvocation.Illegal c : Implementation.SpecialMethodInvocation.Illegal.values()) System.out.println(c);
public static Implementation.SpecialMethodInvocation.Illegal 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 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.public MethodDescription getMethodDescription()
Implementation.Target.getMethodDescription in interface Implementation.SpecialMethodInvocationpublic TypeDescription getTypeDescription()
getTypeDescription in interface Implementation.SpecialMethodInvocationpublic Implementation.SpecialMethodInvocation withCheckedCompatibilityTo(MethodDescription.TypeToken token)
withCheckedCompatibilityTo in interface Implementation.SpecialMethodInvocationtoken - The type token to check against.Copyright © 2014–2023. All rights reserved.