| Package | Description |
|---|---|
| net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
| net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
| 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.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
| net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
| Modifier and Type | Field and Description |
|---|---|
protected MethodDescription.TypeToken |
Advice.ArgumentHandler.ForAdvice.Default.typeToken
The type token of the advice method.
|
protected MethodDescription.TypeToken |
Advice.StackMapFrameHandler.Default.ForAdvice.typeToken
A token for the method description for which frames are translated.
|
protected MethodDescription.TypeToken |
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.typeToken
The advice method.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescription.TypeToken |
Advice.Delegator.getTypeToken()
Returns the advice method's type token.
|
MethodDescription.TypeToken |
Advice.Delegator.ForRegularInvocation.getTypeToken()
Returns the advice method's type token.
|
MethodDescription.TypeToken |
Advice.Delegator.ForDynamicInvocation.getTypeToken()
Returns the advice method's type token.
|
| Modifier and Type | Method and Description |
|---|---|
Advice.ArgumentHandler.ForAdvice |
Advice.ArgumentHandler.ForInstrumentedMethod.bindEnter(MethodDescription.TypeToken typeToken)
Binds an advice method as enter advice for this handler.
|
Advice.ArgumentHandler.ForAdvice |
Advice.ArgumentHandler.ForInstrumentedMethod.Default.bindEnter(MethodDescription.TypeToken typeToken)
Binds an advice method as enter advice for this handler.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.ForInstrumentedMethod.bindEnter(MethodDescription.TypeToken typeToken)
Binds a method size handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.NoOp.bindEnter(MethodDescription.TypeToken typeToken)
Binds a method size handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.Default.bindEnter(MethodDescription.TypeToken typeToken)
Binds a method size handler for the enter advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.ForInstrumentedMethod.bindEnter(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the enter advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.NoOp.bindEnter(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the enter advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.Default.bindEnter(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.ForInstrumentedMethod.bindExit(MethodDescription.TypeToken typeToken)
Binds the method size handler for the exit advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.NoOp.bindExit(MethodDescription.TypeToken typeToken)
Binds the method size handler for the exit advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.Default.WithRetainedArguments.bindExit(MethodDescription.TypeToken typeToken)
Binds the method size handler for the exit advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.Default.WithCopiedArguments.bindExit(MethodDescription.TypeToken typeToken)
Binds the method size handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.ForInstrumentedMethod.bindExit(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.NoOp.bindExit(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.Default.Trivial.bindExit(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.Default.WithPreservedArguments.bindExit(MethodDescription.TypeToken typeToken)
Binds this metadata handler for the exit advice.
|
Advice.ArgumentHandler.ForAdvice |
Advice.ArgumentHandler.ForInstrumentedMethod.bindExit(MethodDescription.TypeToken typeToken,
boolean skipThrowable)
Binds an advice method as exit advice for this handler.
|
Advice.ArgumentHandler.ForAdvice |
Advice.ArgumentHandler.ForInstrumentedMethod.Default.bindExit(MethodDescription.TypeToken typeToken,
boolean skipThrowable)
Binds an advice method as exit advice for this handler.
|
protected void |
Advice.StackMapFrameHandler.Default.translateFrame(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
boolean isStatic,
MethodDescription.TypeToken typeToken,
List<? extends TypeDescription> additionalTypes,
int type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack)
Translates a frame.
|
protected void |
Advice.StackMapFrameHandler.Default.WithPreservedArguments.translateFrame(MethodVisitor methodVisitor,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
boolean isStatic,
MethodDescription.TypeToken typeToken,
List<? extends TypeDescription> additionalTypes,
int type,
int localVariableLength,
Object[] localVariable,
int stackSize,
Object[] stack) |
| Modifier and Type | Method and Description |
|---|---|
MethodDescription.TypeToken |
MethodDescription.asTypeToken()
Returns a type token that represents this method's raw return and parameter types.
|
MethodDescription.TypeToken |
MethodDescription.AbstractBase.asTypeToken()
Returns a type token that represents this method's raw return and parameter types.
|
MethodDescription.TypeToken |
MethodDescription.SignatureToken.asTypeToken()
Returns this signature token as a type token.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MethodDescription.isBridgeCompatible(MethodDescription.TypeToken typeToken)
Validates that the supplied type token can implement a bridge method to this method.
|
boolean |
MethodDescription.AbstractBase.isBridgeCompatible(MethodDescription.TypeToken typeToken)
Validates that the supplied type token can implement a bridge method to this method.
|
| Modifier and Type | Method and Description |
|---|---|
protected Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Detached.getIdentifiers() |
Set<MethodDescription.TypeToken> |
MethodGraph.Node.getMethodTypes()
Returns a set of type tokens that this method represents.
|
Set<MethodDescription.TypeToken> |
MethodGraph.Node.Unresolved.getMethodTypes()
Returns a set of type tokens that this method represents.
|
Set<MethodDescription.TypeToken> |
MethodGraph.Node.Simple.getMethodTypes()
Returns a set of type tokens that this method represents.
|
Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node.getMethodTypes()
Returns a set of type tokens that this method represents.
|
Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.Node.getMethodTypes()
Returns a set of type tokens that this method represents.
|
protected Set<MethodDescription.TypeToken> |
MethodRegistry.Default.Prepared.Entry.resolveBridgeTypes()
Resolves the type tokens of all bridge methods that are required to be implemented for this entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected MethodGraph.Compiler.Default.Key.Detached |
MethodGraph.Compiler.Default.Key.Harmonized.detach(MethodDescription.TypeToken typeToken)
Creates a detached version of this key.
|
S |
MethodGraph.Compiler.Default.Harmonizer.harmonize(MethodDescription.TypeToken typeToken)
Harmonizes the given type token.
|
MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token |
MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.harmonize(MethodDescription.TypeToken typeToken)
Harmonizes the given type token.
|
MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token |
MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.harmonize(MethodDescription.TypeToken typeToken)
Harmonizes the given type token.
|
| Modifier and Type | Method and Description |
|---|---|
protected MethodRegistry.Default.Prepared.Entry |
MethodRegistry.Default.Entry.asPreparedEntry(TypeDescription instrumentedType,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> methodTypes,
Visibility visibility)
Transforms this entry into a prepared state.
|
static TypeWriter.MethodPool.Record |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.of(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Wraps the given record in an accessor bridge wrapper if necessary.
|
| Constructor and Description |
|---|
AccessorBridge(MethodDescription bridgeTarget,
MethodDescription.TypeToken bridgeType,
TypeDescription instrumentedType)
Creates a new accessor bridge method.
|
Token(MethodDescription.TypeToken typeToken)
Creates a new type token for a Java method.
|
Token(MethodDescription.TypeToken typeToken)
Creates a new type token for a JVM method.
|
| Constructor and Description |
|---|
AccessBridgeWrapper(TypeWriter.MethodPool.Record delegate,
TypeDescription instrumentedType,
MethodDescription bridgeTarget,
Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Creates a wrapper for adding accessor bridges.
|
Detached(String internalName,
int parameterCount,
Set<MethodDescription.TypeToken> identifiers)
Creates a new detached key.
|
Entry(MethodRegistry.Handler.Compiled handler,
MethodAttributeAppender attributeAppender,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> bridgeTypes,
Visibility visibility,
boolean bridgeMethod)
Creates a new entry for a compiled method registry.
|
Entry(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> typeTokens,
Visibility visibility,
boolean bridgeMethod)
Creates a new prepared entry.
|
Graph(LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> entries)
Creates a new graph.
|
Harmonized(String internalName,
int parameterCount,
Map<V,Set<MethodDescription.TypeToken>> identifiers)
Creates a new harmonized key.
|
| Modifier and Type | Method and Description |
|---|---|
Implementation.SpecialMethodInvocation |
RebaseImplementationTarget.RebasedMethodInvocation.withCheckedCompatibilityTo(MethodDescription.TypeToken token)
Checks that this special method invocation is compatible with the supplied type representation.
|
| Modifier and Type | Method and Description |
|---|---|
Implementation.SpecialMethodInvocation |
Implementation.SpecialMethodInvocation.withCheckedCompatibilityTo(MethodDescription.TypeToken token)
Checks that this special method invocation is compatible with the supplied type representation.
|
Implementation.SpecialMethodInvocation |
Implementation.SpecialMethodInvocation.Illegal.withCheckedCompatibilityTo(MethodDescription.TypeToken token)
Checks that this special method invocation is compatible with the supplied type representation.
|
Implementation.SpecialMethodInvocation |
Implementation.SpecialMethodInvocation.Simple.withCheckedCompatibilityTo(MethodDescription.TypeToken token)
Checks that this special method invocation is compatible with the supplied type representation.
|
Copyright © 2014–2025. All rights reserved.