Uses of Class
net.bytebuddy.description.method.MethodDescription.TypeToken
Packages that use MethodDescription.TypeToken
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
Contains descriptions of Java methods and constructors as well as their parameters.
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
All classes and types in this package are related to creating a
DynamicType
by
enhancing a given type.The implementation package contains any logic for intercepting method calls.
-
Uses of MethodDescription.TypeToken in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as MethodDescription.TypeTokenModifier and TypeFieldDescriptionprotected final MethodDescription.TypeToken
Advice.ArgumentHandler.ForAdvice.Default.typeToken
The type token of the advice method.protected final MethodDescription.TypeToken
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.typeToken
The advice method.private final MethodDescription.TypeToken
Advice.MethodSizeHandler.Default.ForAdvice.typeToken
The advice method.protected final MethodDescription.TypeToken
Advice.StackMapFrameHandler.Default.ForAdvice.typeToken
A token for the method description for which frames are translated.Methods in net.bytebuddy.asm that return MethodDescription.TypeTokenModifier and TypeMethodDescriptionAdvice.Delegator.ForDynamicInvocation.getTypeToken()
Returns the advice method's type token.Advice.Delegator.ForRegularInvocation.getTypeToken()
Returns the advice method's type token.Advice.Delegator.getTypeToken()
Returns the advice method's type token.Methods in net.bytebuddy.asm with parameters of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionAdvice.ArgumentHandler.ForInstrumentedMethod.bindEnter
(MethodDescription.TypeToken typeToken) Binds an advice method as enter advice for this handler.Advice.ArgumentHandler.ForInstrumentedMethod.Default.bindEnter
(MethodDescription.TypeToken typeToken) Binds an advice method as enter advice for this handler.Advice.MethodSizeHandler.Default.bindEnter
(MethodDescription.TypeToken typeToken) Binds a method size handler for the enter advice.Advice.MethodSizeHandler.ForInstrumentedMethod.bindEnter
(MethodDescription.TypeToken typeToken) Binds a method size handler for the enter advice.Advice.MethodSizeHandler.NoOp.bindEnter
(MethodDescription.TypeToken typeToken) Binds a method size handler for the enter advice.Advice.StackMapFrameHandler.Default.bindEnter
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the enter advice.Advice.StackMapFrameHandler.ForInstrumentedMethod.bindEnter
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the enter advice.Advice.StackMapFrameHandler.NoOp.bindEnter
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the enter advice.Advice.ArgumentHandler.ForInstrumentedMethod.bindExit
(MethodDescription.TypeToken typeToken, boolean skipThrowable) Binds an advice method as exit advice for this handler.Advice.ArgumentHandler.ForInstrumentedMethod.Default.bindExit
(MethodDescription.TypeToken typeToken, boolean skipThrowable) Binds an advice method as exit advice for this handler.Advice.MethodSizeHandler.Default.WithCopiedArguments.bindExit
(MethodDescription.TypeToken typeToken) Binds the method size handler for the exit advice.Advice.MethodSizeHandler.Default.WithRetainedArguments.bindExit
(MethodDescription.TypeToken typeToken) Binds the method size handler for the exit advice.Advice.MethodSizeHandler.ForInstrumentedMethod.bindExit
(MethodDescription.TypeToken typeToken) Binds the method size handler for the exit advice.Advice.MethodSizeHandler.NoOp.bindExit
(MethodDescription.TypeToken typeToken) Binds the method size handler for the exit advice.Advice.StackMapFrameHandler.Default.Trivial.bindExit
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the exit advice.Advice.StackMapFrameHandler.Default.WithPreservedArguments.bindExit
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the exit advice.Advice.StackMapFrameHandler.ForInstrumentedMethod.bindExit
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the exit advice.Advice.StackMapFrameHandler.NoOp.bindExit
(MethodDescription.TypeToken typeToken) Binds this metadata handler for the exit advice.protected void
Advice.StackMapFrameHandler.Default.translateFrame
(org.objectweb.asm.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
(org.objectweb.asm.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) Constructors in net.bytebuddy.asm with parameters of type MethodDescription.TypeTokenModifierConstructorDescriptionprotected
AdviceMethodWriter
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
Default
(MethodDescription instrumentedMethod, MethodDescription.TypeToken typeToken, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes) Creates a new argument handler for an enter advice.protected
ForAdvice
(MethodDescription.TypeToken typeToken, int baseLocalVariableLength) Creates a default method size handler for an advice method.protected
ForAdvice
(MethodDescription.TypeToken typeToken, List<? extends TypeDescription> startTypes, List<? extends TypeDescription> intermediateTypes, List<? extends TypeDescription> endTypes, Advice.StackMapFrameHandler.Default.TranslationMode translationMode, Advice.StackMapFrameHandler.Default.Initialization initialization) Creates a new metadata handler for an advice method.protected
ForMethodEnter
(MethodDescription instrumentedMethod, MethodDescription.TypeToken typeToken, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes) Creates a new argument handler for an enter advice method.protected
ForMethodEnter
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer.protected
ForMethodExit
(MethodDescription instrumentedMethod, MethodDescription.TypeToken typeToken, TypeDefinition exitType, SortedMap<String, TypeDefinition> namedTypes, TypeDefinition enterType, StackSize throwableSize) Creates a new argument handler for an exit advice method.protected
ForMethodExit
(MethodDescription.TypeToken typeToken, TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.PostProcessor postProcessor, List<Advice.OffsetMapping.Target> offsetMappings, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Advice.ArgumentHandler.ForAdvice argumentHandler, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler, Advice.Dispatcher.RelocationHandler.Bound relocationHandler, StackManipulation exceptionHandler, Advice.Delegator delegator) Creates a new advice method writer. -
Uses of MethodDescription.TypeToken in net.bytebuddy.description.method
Methods in net.bytebuddy.description.method that return MethodDescription.TypeTokenModifier and TypeMethodDescriptionMethodDescription.AbstractBase.asTypeToken()
Returns a type token that represents this method's raw return and parameter types.MethodDescription.asTypeToken()
Returns a type token that represents this method's raw return and parameter types.MethodDescription.SignatureToken.asTypeToken()
Returns this signature token as a type token.Methods in net.bytebuddy.description.method with parameters of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionboolean
MethodDescription.AbstractBase.isBridgeCompatible
(MethodDescription.TypeToken typeToken) Validates that the supplied type token can implement a bridge method to this method.boolean
MethodDescription.isBridgeCompatible
(MethodDescription.TypeToken typeToken) Validates that the supplied type token can implement a bridge method to this method. -
Uses of MethodDescription.TypeToken in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold declared as MethodDescription.TypeTokenModifier and TypeFieldDescriptionprivate final MethodDescription.TypeToken
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge.bridgeType
The bridge's type token.private final MethodDescription.TypeToken
MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token.typeToken
The represented type token.private final MethodDescription.TypeToken
MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token.typeToken
The represented type token.Fields in net.bytebuddy.dynamic.scaffold with type parameters of type MethodDescription.TypeTokenModifier and TypeFieldDescriptionprivate final Set
<MethodDescription.TypeToken> MethodRegistry.Default.Compiled.Entry.bridgeTypes
The type tokens representing all bridge methods for the method.private final Set
<MethodDescription.TypeToken> TypeWriter.MethodPool.Record.AccessBridgeWrapper.bridgeTypes
A collection of all tokens representing all bridge methods.private final 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 final Set
<MethodDescription.TypeToken> MethodGraph.Compiler.Default.Key.Detached.identifiers
The type tokens represented by this key.private final Map
<V, Set<MethodDescription.TypeToken>> MethodGraph.Compiler.Default.Key.Harmonized.identifiers
A mapping of identifiers to the type tokens they represent.private final Set
<MethodDescription.TypeToken> MethodRegistry.Default.Prepared.Entry.typeTokens
The method's type tokens.Methods in net.bytebuddy.dynamic.scaffold that return types with arguments of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionprotected Set
<MethodDescription.TypeToken> MethodGraph.Compiler.Default.Key.Detached.getIdentifiers()
MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous.Node.getMethodTypes()
Returns a set of type tokens that this method represents.MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node.getMethodTypes()
Returns a set of type tokens that this method represents.MethodGraph.Node.getMethodTypes()
Returns a set of type tokens that this method represents.MethodGraph.Node.Simple.getMethodTypes()
Returns a set of type tokens that this method represents.MethodGraph.Node.Unresolved.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.Methods in net.bytebuddy.dynamic.scaffold with parameters of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionMethodGraph.Compiler.Default.Key.Harmonized.detach
(MethodDescription.TypeToken typeToken) Creates a detached version of this key.MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.harmonize
(MethodDescription.TypeToken typeToken) Harmonizes the given type token.MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.harmonize
(MethodDescription.TypeToken typeToken) Harmonizes the given type token.MethodGraph.Compiler.Default.Harmonizer.harmonize
(MethodDescription.TypeToken typeToken) Harmonizes the given type token.Method parameters in net.bytebuddy.dynamic.scaffold with type arguments of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionprotected 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.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type MethodDescription.TypeTokenModifierConstructorDescriptionprotected
AccessorBridge
(MethodDescription bridgeTarget, MethodDescription.TypeToken bridgeType, TypeDescription instrumentedType) Creates a new accessor bridge method.protected
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 parameters in net.bytebuddy.dynamic.scaffold with type arguments of type MethodDescription.TypeTokenModifierConstructorDescriptionprotected
AccessBridgeWrapper
(TypeWriter.MethodPool.Record delegate, TypeDescription instrumentedType, MethodDescription bridgeTarget, Set<MethodDescription.TypeToken> bridgeTypes, MethodAttributeAppender attributeAppender) Creates a wrapper for adding accessor bridges.protected
Detached
(String internalName, int parameterCount, Set<MethodDescription.TypeToken> identifiers) Creates a new detached key.protected
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.protected
Entry
(MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodDescription methodDescription, Set<MethodDescription.TypeToken> typeTokens, Visibility visibility, boolean bridgeMethod) Creates a new prepared entry.protected
Graph
(LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>, MethodGraph.Node> entries) Creates a new graph.protected
Harmonized
(String internalName, int parameterCount, Map<V, Set<MethodDescription.TypeToken>> identifiers) Creates a new harmonized key. -
Uses of MethodDescription.TypeToken in net.bytebuddy.dynamic.scaffold.inline
Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionRebaseImplementationTarget.RebasedMethodInvocation.withCheckedCompatibilityTo
(MethodDescription.TypeToken token) Checks that this special method invocation is compatible with the supplied type representation. -
Uses of MethodDescription.TypeToken in net.bytebuddy.implementation
Methods in net.bytebuddy.implementation with parameters of type MethodDescription.TypeTokenModifier and TypeMethodDescriptionImplementation.SpecialMethodInvocation.Illegal.withCheckedCompatibilityTo
(MethodDescription.TypeToken token) Checks that this special method invocation is compatible with the supplied type representation.Implementation.SpecialMethodInvocation.Simple.withCheckedCompatibilityTo
(MethodDescription.TypeToken token) Checks that this special method invocation is compatible with the supplied type representation.Implementation.SpecialMethodInvocation.withCheckedCompatibilityTo
(MethodDescription.TypeToken token) Checks that this special method invocation is compatible with the supplied type representation.