Package net.bytebuddy.asm
Enum Class Advice.OffsetMapping.Factory.AdviceType
java.lang.Object
java.lang.Enum<Advice.OffsetMapping.Factory.AdviceType>
net.bytebuddy.asm.Advice.OffsetMapping.Factory.AdviceType
- All Implemented Interfaces:
Serializable
,Comparable<Advice.OffsetMapping.Factory.AdviceType>
,Constable
- Enclosing interface:
- Advice.OffsetMapping.Factory<T extends Annotation>
public static enum Advice.OffsetMapping.Factory.AdviceType
extends Enum<Advice.OffsetMapping.Factory.AdviceType>
Describes the type of advice being applied.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates advice where the invocation is delegated.Indicates advice where the invocation's code is copied into the target method. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if delegation is used.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELEGATION
Indicates advice where the invocation is delegated. -
INLINING
Indicates advice where the invocation's code is copied into the target method.
-
-
Field Details
-
delegation
private final boolean delegationtrue
if delegation is used.
-
-
Constructor Details
-
AdviceType
private AdviceType(boolean delegation) Creates a new advice type.- Parameters:
delegation
-true
if delegation is used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isDelegation
public boolean isDelegation()Returnstrue
if delegation is used.- Returns:
true
if delegation is used.
-