Package net.bytebuddy.asm
Enum Advice.PostProcessor.NoOp
- java.lang.Object
-
- java.lang.Enum<Advice.PostProcessor.NoOp>
-
- net.bytebuddy.asm.Advice.PostProcessor.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.PostProcessor.NoOp>
,Advice.PostProcessor
,Advice.PostProcessor.Factory
- Enclosing interface:
- Advice.PostProcessor
public static enum Advice.PostProcessor.NoOp extends java.lang.Enum<Advice.PostProcessor.NoOp> implements Advice.PostProcessor, Advice.PostProcessor.Factory
A non-operational advice post processor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.PostProcessor
Advice.PostProcessor.Compound, Advice.PostProcessor.Factory, Advice.PostProcessor.NoOp
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.PostProcessor.Factory
Advice.PostProcessor.Factory.Compound
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Advice.PostProcessor
make(MethodDescription.InDefinedShape advice, boolean exit)
Creates a post processor for a given advice method.StackManipulation
resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler)
Resolves this post processor for a given instrumented method.static Advice.PostProcessor.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.PostProcessor.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Advice.PostProcessor.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Advice.PostProcessor.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Advice.PostProcessor.NoOp c : Advice.PostProcessor.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.PostProcessor.NoOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
resolve
public StackManipulation resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler)
Resolves this post processor for a given instrumented method.- Specified by:
resolve
in interfaceAdvice.PostProcessor
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.assigner
- The assigner to use.argumentHandler
- The argument handler for the instrumented method.- Returns:
- The stack manipulation to apply.
-
make
public Advice.PostProcessor make(MethodDescription.InDefinedShape advice, boolean exit)
Creates a post processor for a given advice method.- Specified by:
make
in interfaceAdvice.PostProcessor.Factory
- Parameters:
advice
- The advice method to create the post processor for.exit
-true
if the advice is exit advice.- Returns:
- The created post processor.
-
-