Package net.bytebuddy.asm
Enum Class Advice.PostProcessor.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<Advice.PostProcessor.NoOp>
,Constable
,Advice.PostProcessor
,Advice.PostProcessor.Factory
- Enclosing interface:
- Advice.PostProcessor
public static enum Advice.PostProcessor.NoOp
extends Enum<Advice.PostProcessor.NoOp>
implements Advice.PostProcessor, Advice.PostProcessor.Factory
A non-operational advice post processor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(MethodDescription.InDefinedShape advice, boolean exit) Creates a post processor for a given advice method.resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) Resolves this post processor for a given instrumented method.static Advice.PostProcessor.NoOp
Returns the enum constant of this class with the specified name.static Advice.PostProcessor.NoOp[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
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
-
resolve
public StackManipulation resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.StackMapFrameHandler.ForPostProcessor stackMapFrameHandler, StackManipulation exceptionHandler) 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 to use.stackMapFrameHandler
- The argument handler for the instrumented method.exceptionHandler
- The exception handler that is resolved for the instrumented method.- Returns:
- The stack manipulation to apply.
-
make
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.
-