Package | Description |
---|---|
net.bytebuddy.build |
A package for types that allow for applying Byte Buddy transformation during a build process.
|
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.dynamic.scaffold.subclass |
All classes and types in this package are related to creating a
DynamicType by
creating a subclass of a given type. |
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
Constructor and Description |
---|
PrefixingMethodVisitor(MethodVisitor methodVisitor,
TypeDescription instrumentedType,
MethodDescription.SignatureToken token,
String name,
int offset,
Implementation.Context.FrameGeneration frameGeneration)
Creates a new prefixing method visitor.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.SignatureToken |
MethodDescription.asSignatureToken()
Returns a signature token representing this method.
|
MethodDescription.SignatureToken |
MethodDescription.AbstractBase.asSignatureToken()
Returns a signature token representing this method.
|
MethodDescription.SignatureToken |
MethodDescription.Token.asSignatureToken(TypeDescription declaringType)
Creates a signature token that represents the method that is represented by this token.
|
Modifier and Type | Method and Description |
---|---|
List<MethodDescription.SignatureToken> |
MethodList.asSignatureTokenList()
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.AbstractBase.asSignatureTokenList()
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.Empty.asSignatureTokenList()
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.AbstractBase.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
List<MethodDescription.SignatureToken> |
MethodList.Empty.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher,
TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.
|
Modifier and Type | Method and Description |
---|---|
MethodGraph.Node |
MethodGraph.locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.
|
MethodGraph.Node |
MethodGraph.Empty.locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.
|
MethodGraph.Node |
MethodGraph.Linked.Delegation.locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.
|
MethodGraph.Node |
MethodGraph.Compiler.Default.Key.Store.Graph.locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.
|
MethodGraph.Node |
MethodGraph.Simple.locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.
|
protected static MethodGraph.Compiler.Default.Key.Detached |
MethodGraph.Compiler.Default.Key.Detached.of(MethodDescription.SignatureToken token)
Creates a new detached key of the given method token.
|
Constructor and Description |
---|
Simple(LinkedHashMap<MethodDescription.SignatureToken,MethodGraph.Node> nodes)
Creates a new simple method graph.
|
Modifier and Type | Method and Description |
---|---|
Map<MethodDescription.SignatureToken,MethodRebaseResolver.Resolution> |
MethodRebaseResolver.asTokenMap()
Returns a map of all rebasable methods' signature tokens to their resolution.
|
Map<MethodDescription.SignatureToken,MethodRebaseResolver.Resolution> |
MethodRebaseResolver.Disabled.asTokenMap()
Returns a map of all rebasable methods' signature tokens to their resolution.
|
Map<MethodDescription.SignatureToken,MethodRebaseResolver.Resolution> |
MethodRebaseResolver.Default.asTokenMap()
Returns a map of all rebasable methods' signature tokens to their resolution.
|
Modifier and Type | Method and Description |
---|---|
Implementation.SpecialMethodInvocation |
RebaseImplementationTarget.invokeSuper(MethodDescription.SignatureToken token)
Creates a special method invocation for invoking the super method of the given method.
|
Modifier and Type | Method and Description |
---|---|
static MethodRebaseResolver |
MethodRebaseResolver.Default.make(TypeDescription instrumentedType,
Set<? extends MethodDescription.SignatureToken> rebaseables,
ClassFileVersion classFileVersion,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
MethodNameTransformer methodNameTransformer)
Creates a new method rebase resolver.
|
Constructor and Description |
---|
RebaseImplementationTarget(TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation,
Map<MethodDescription.SignatureToken,MethodRebaseResolver.Resolution> rebaseableMethods)
Creates a rebase implementation target.
|
Modifier and Type | Method and Description |
---|---|
Implementation.SpecialMethodInvocation |
SubclassImplementationTarget.invokeSuper(MethodDescription.SignatureToken token)
Creates a special method invocation for invoking the super method of the given method.
|
Modifier and Type | Method and Description |
---|---|
Implementation.SpecialMethodInvocation |
Implementation.Target.invokeDefault(MethodDescription.SignatureToken token)
Creates a special method invocation for invoking a default method with the given token.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.AbstractBase.invokeDefault(MethodDescription.SignatureToken token)
Creates a special method invocation for invoking a default method with the given token.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.invokeDefault(MethodDescription.SignatureToken token,
TypeDescription targetType)
Creates a special method invocation for invoking a default method.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.AbstractBase.invokeDefault(MethodDescription.SignatureToken token,
TypeDescription targetType)
Creates a special method invocation for invoking a default method.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.invokeDominant(MethodDescription.SignatureToken token)
Invokes a dominant method, i.e.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.AbstractBase.invokeDominant(MethodDescription.SignatureToken token)
Invokes a dominant method, i.e.
|
Implementation.SpecialMethodInvocation |
Implementation.Target.invokeSuper(MethodDescription.SignatureToken token)
Creates a special method invocation for invoking the super method of the given method.
|
Modifier and Type | Method and Description |
---|---|
static <T extends MethodDescription> |
ElementMatchers.hasSignature(MethodDescription.SignatureToken token)
Only matches method descriptions that yield the provided signature token.
|
Constructor and Description |
---|
ResolvedMatcher(MethodDescription.SignatureToken signatureToken)
Creates a new resolved matcher.
|
Constructor and Description |
---|
SignatureTokenMatcher(ElementMatcher<? super MethodDescription.SignatureToken> matcher)
Creates a new signature token matcher.
|
Copyright © 2014–2023. All rights reserved.