Package | Description |
---|---|
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 | 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–2020. All rights reserved.