Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Field and Description |
---|---|
protected AsmClassReader |
Advice.Dispatcher.Inlining.Resolved.classReader
A class reader to query for the class file of the advice method.
|
protected AsmClassReader |
Advice.Dispatcher.Inlining.Resolved.AdviceMethodInliner.classReader
A class reader for parsing the class file containing the represented advice method.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Unresolved.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodExit,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Inactive.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodExit,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Inlining.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodExit,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Delegating.asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodExit,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Unresolved.asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodEnter,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for exiting a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inactive.asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodEnter,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for exiting a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inlining.asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodEnter,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for exiting a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Delegating.asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
Advice.Dispatcher.Unresolved methodEnter,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for exiting a method.
|
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,
AsmClassReader classReader,
boolean methodExit)
Resolves enter advice that only exposes the enter type if this is necessary.
|
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
Map<String,TypeDefinition> uninitializedNamedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
Constructor and Description |
---|
AdviceMethodInliner(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler,
StackManipulation exceptionHandler,
AsmClassReader classReader)
Creates a new advice method inliner.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
AsmClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
Map<String,TypeDefinition> uninitializedNamedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
int relocatableIndex,
AsmClassReader classReader)
Creates a new resolved version of a dispatcher.
|
WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
AsmClassReader 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,
Map<String,TypeDefinition> uninitializedNamedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
Map<String,TypeDefinition> uninitializedNamedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
AsmClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
AsmClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.
|
Modifier and Type | Method and Description |
---|---|
AsmClassWriter |
ClassWriterStrategy.Delegating.make(int flags,
AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
AsmClassWriter |
ClassWriterStrategy.Delegating.make(int flags,
AsmClassReader classReader,
TypePool typePool)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
Modifier and Type | Class and Description |
---|---|
static class |
AsmClassReader.ForAsm
A class reader for ASM's own
ClassReader . |
static class |
AsmClassReader.ForClassFileApi
A class reader that is based upon the Class File API.
|
protected static class |
AsmClassWriter.Factory.Default.EmptyAsmClassReader
An empty class reader for ASM that never unwraps an underlying implementation.
|
Modifier and Type | Method and Description |
---|---|
AsmClassReader |
OpenedClassReader.make(byte[] binaryRepresentation)
Creates a class reader for a given class file.
|
AsmClassReader |
AsmClassReader.Factory.make(byte[] binaryRepresentation)
Creates a class reader for a given class file.
|
AsmClassReader |
AsmClassReader.Factory.Default.make(byte[] binaryRepresentation)
Creates a class reader for a given class file.
|
AsmClassReader |
OpenedClassReader.make(byte[] binaryRepresentation,
boolean experimental)
Creates a class reader for a given class file.
|
AsmClassReader |
AsmClassReader.Factory.make(byte[] binaryRepresentation,
boolean experimental)
Creates a class reader for a given class file.
|
Modifier and Type | Method and Description |
---|---|
AsmClassWriter |
AsmClassWriter.Factory.make(int flags,
AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
AsmClassWriter |
AsmClassWriter.Factory.Default.make(int flags,
AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
AsmClassWriter |
AsmClassWriter.Factory.Suppressing.make(int flags,
AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
AsmClassWriter |
AsmClassWriter.Factory.make(int flags,
AsmClassReader classReader,
TypePool typePool)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
AsmClassWriter |
AsmClassWriter.Factory.Suppressing.make(int flags,
AsmClassReader classReader,
TypePool typePool)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
|
Copyright © 2014–2025. All rights reserved.