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.
|
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 | Field and Description |
---|---|
private MethodDescription.TypeToken |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.bridgeType
The bridge's type token.
|
private MethodDescription.TypeToken |
MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token.typeToken
The represented type token.
|
private MethodDescription.TypeToken |
MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token.typeToken
The represented type token.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MethodDescription.TypeToken> |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.bridgeTypes
A collection of all tokens representing all bridge methods.
|
private java.util.Set<MethodDescription.TypeToken> |
MethodRegistry.Default.Compiled.Entry.bridgeTypes
The type tokens representing all bridge methods for the method.
|
private java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> |
MethodGraph.Compiler.Default.Key.Store.Graph.entries
A mapping of a node's type tokens to the represented node.
|
private java.util.Map<V,java.util.Set<MethodDescription.TypeToken>> |
MethodGraph.Compiler.Default.Key.Harmonized.identifiers
A mapping of identifiers to the type tokens they represent.
|
private java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Detached.identifiers
The type tokens represented by this key.
|
private java.util.Set<MethodDescription.TypeToken> |
MethodRegistry.Default.Prepared.Entry.typeTokens
The method's type tokens.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Detached.getIdentifiers() |
java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Node.getMethodTypes()
Returns a set of type tokens that this method represents.
|
java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Node.Unresolved.getMethodTypes()
Returns a set of type tokens that this method represents.
|
java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Node.Simple.getMethodTypes()
Returns a set of type tokens that this method represents.
|
java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node.getMethodTypes()
Returns a set of type tokens that this method represents.
|
java.util.Set<MethodDescription.TypeToken> |
MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.Node.getMethodTypes()
Returns a set of type tokens that this method represents.
|
protected java.util.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,
java.util.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,
java.util.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,
java.util.Set<MethodDescription.TypeToken> bridgeTypes,
MethodAttributeAppender attributeAppender)
Creates a wrapper for adding accessor bridges.
|
Detached(java.lang.String internalName,
int parameterCount,
java.util.Set<MethodDescription.TypeToken> identifiers)
Creates a new detached key.
|
Entry(MethodRegistry.Handler.Compiled handler,
MethodAttributeAppender attributeAppender,
MethodDescription methodDescription,
java.util.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,
java.util.Set<MethodDescription.TypeToken> typeTokens,
Visibility visibility,
boolean bridgeMethod)
Creates a new prepared entry.
|
Graph(java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> entries)
Creates a new graph.
|
Harmonized(java.lang.String internalName,
int parameterCount,
java.util.Map<V,java.util.Set<MethodDescription.TypeToken>> identifiers)
Creates a new harmonized key.
|