Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Class and Description |
---|---|
static class |
Advice.PostProcessor.Compound
A compound post processor.
|
static class |
Advice.PostProcessor.NoOp
A non-operational advice post processor.
|
Modifier and Type | Field and Description |
---|---|
protected Advice.PostProcessor |
Advice.Dispatcher.Resolved.AbstractBase.postProcessor
The post processor to apply.
|
Modifier and Type | Method and Description |
---|---|
Advice.PostProcessor |
Advice.PostProcessor.Factory.make(MethodDescription.InDefinedShape advice,
boolean exit)
Creates a post processor for a given advice method.
|
Advice.PostProcessor |
Advice.PostProcessor.Factory.Compound.make(MethodDescription.InDefinedShape advice,
boolean exit)
Creates a post processor for a given advice method.
|
Advice.PostProcessor |
Advice.PostProcessor.NoOp.make(MethodDescription.InDefinedShape advice,
boolean exit)
Creates a post processor for a given advice method.
|
Modifier and Type | Method and Description |
---|---|
protected static Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.of(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Advice.Delegator delegator,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
boolean methodExit)
Resolves enter advice that only exposes the enter type if this is necessary.
|
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Advice.Delegator delegator,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
protected static Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.of(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
ClassReader classReader,
boolean methodExit)
Resolves enter advice that only exposes the enter type if this is necessary.
|
Constructor and Description |
---|
AbstractBase(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new resolved version of a dispatcher.
|
AdviceMethodWriter(MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.PostProcessor postProcessor,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
Advice.Delegator delegator)
Creates a new advice method writer.
|
CodeTranslationVisitor(MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
MethodDescription.InDefinedShape adviceMethod,
Map<Integer,Advice.OffsetMapping.Target> offsetMappings,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
Advice.PostProcessor postProcessor,
boolean exit)
Creates a new code translation visitor.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.PostProcessor postProcessor,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
Advice.Delegator delegator)
Creates a new advice method writer.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method exit advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.PostProcessor postProcessor,
List<Advice.OffsetMapping.Target> offsetMappings,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
Advice.Delegator delegator)
Creates a new advice method writer.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
Advice.Delegator delegator)
Creates a new resolved version of a dispatcher.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
ClassReader classReader)
Creates a new resolved version of a dispatcher.
|
WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.
|
WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType,
TypeDescription throwable,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
ClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
Advice.Delegator delegator)
Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.
|
WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.
|
Constructor and Description |
---|
Compound(List<Advice.PostProcessor> postProcessors)
Creates a new compound post processor.
|
Copyright © 2014–2020. All rights reserved.