Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
net.bytebuddy.description |
Classes of this package allow the representation of Java classes, their member and their meta data.
|
net.bytebuddy.description.annotation |
Contains descriptions of annotations and annotation values.
|
net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
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.
|
net.bytebuddy.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e.
|
net.bytebuddy.implementation.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
net.bytebuddy.implementation.bytecode.constant |
StackManipulation s in this package are responsible for
creating compile-time constants and pushing them onto the operand stack. |
net.bytebuddy.implementation.bytecode.member |
StackManipulation s of this package are responsible for
accessing type or method members, i.e. |
net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
net.bytebuddy.pool |
Classes of this package allow for the creating
TypeDescription s without
loading any classes. |
net.bytebuddy.utility |
This package contains utility classes for common use within any Byte Buddy logic.
|
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
Advice.StackMapFrameHandler.Default.ForAdvice.adviceMethod
The method description for which frames are translated.
|
protected MethodDescription.InDefinedShape |
Advice.Dispatcher.Resolved.AbstractBase.adviceMethod
The represented advice method.
|
protected MethodDescription.InDefinedShape |
Advice.Dispatcher.Inlining.adviceMethod
The advice method.
|
protected MethodDescription.InDefinedShape |
Advice.Dispatcher.Inlining.CodeTranslationVisitor.adviceMethod
The advice method.
|
protected MethodDescription.InDefinedShape |
Advice.Dispatcher.Delegating.adviceMethod
The advice method.
|
protected MethodDescription.InDefinedShape |
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.adviceMethod
The advice method.
|
Modifier and Type | Method and Description |
---|---|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.ForInstrumentedMethod.bindEnter(MethodDescription.InDefinedShape adviceMethod)
Binds a method size handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.NoOp.bindEnter(MethodDescription.InDefinedShape adviceMethod)
Binds a method size handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.Default.bindEnter(MethodDescription.InDefinedShape adviceMethod)
Binds a method size handler for the enter advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.ForInstrumentedMethod.bindEnter(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the enter advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.NoOp.bindEnter(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the enter advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.Default.bindEnter(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the enter advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.ForInstrumentedMethod.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds the method size handler for the exit advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.NoOp.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds the method size handler for the exit advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.Default.WithRetainedArguments.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds the method size handler for the exit advice.
|
Advice.MethodSizeHandler.ForAdvice |
Advice.MethodSizeHandler.Default.WithCopiedArguments.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds the method size handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.ForInstrumentedMethod.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.NoOp.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.Default.Trivial.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the exit advice.
|
Advice.StackMapFrameHandler.ForAdvice |
Advice.StackMapFrameHandler.Default.WithPreservedArguments.bindExit(MethodDescription.InDefinedShape adviceMethod)
Binds this meta data handler for the exit advice.
|
static Advice.OffsetMapping.Target |
Advice.OffsetMapping.Target.ForStackManipulation.of(MethodDescription.InDefinedShape methodDescription)
Creates a target for a
Method or Constructor constant. |
protected static Advice.OffsetMapping.Factory<?> |
Advice.OffsetMapping.ForThrowable.Factory.of(MethodDescription.InDefinedShape adviceMethod)
Resolves an appropriate offset mapping factory for the
Advice.Thrown parameter annotation. |
protected static Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.of(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
boolean methodExit)
Resolves enter advice that only exposes the enter type if this is necessary.
|
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Inlining.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
org.objectweb.asm.ClassReader classReader,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
protected static Advice.Dispatcher.Resolved.ForMethodExit |
Advice.Dispatcher.Delegating.Resolved.ForMethodExit.of(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Resolves exit advice that handles exceptions depending on the specification of the exit advice.
|
protected static Advice.Dispatcher.Resolved.ForMethodEnter |
Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.of(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
org.objectweb.asm.ClassReader classReader,
boolean methodExit)
Resolves enter advice that only exposes the enter type if this is necessary.
|
Constructor and Description |
---|
AbstractBase(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
Advice.OffsetMapping.Factory.AdviceType adviceType)
Creates a new resolved version of a dispatcher.
|
AdviceMethodWriter(MethodDescription.InDefinedShape adviceMethod,
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)
Creates a new advice method writer.
|
CodeTranslationVisitor(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription instrumentedMethod,
MethodDescription.InDefinedShape adviceMethod,
Map<Integer,Advice.OffsetMapping.Target> offsetMappings,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
Creates a new code translation visitor.
|
Delegating(MethodDescription.InDefinedShape adviceMethod)
Creates a new delegating advice dispatcher.
|
ForAdvice(MethodDescription.InDefinedShape adviceMethod,
int baseLocalVariableLength)
Creates a default method size handler for an advice method.
|
ForAdvice(MethodDescription.InDefinedShape adviceMethod,
List<? extends TypeDescription> startTypes,
List<? extends TypeDescription> endTypes,
Advice.StackMapFrameHandler.Default.TranslationMode translationMode,
Advice.StackMapFrameHandler.Default.Initialization initialization)
Creates a new meta data handler for an advice method.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
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)
Creates a new advice method writer.
|
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
org.objectweb.asm.ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice.
|
ForMethodEnter(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription instrumentedMethod,
MethodDescription.InDefinedShape adviceMethod,
Map<Integer,Advice.OffsetMapping.Target> offsetMappings,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
Creates a code translation visitor for translating exit advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
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)
Creates a new advice method writer.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
org.objectweb.asm.ClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
ForMethodExit(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice.
|
ForMethodExit(org.objectweb.asm.MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Advice.ArgumentHandler.ForAdvice argumentHandler,
Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
MethodDescription instrumentedMethod,
MethodDescription.InDefinedShape adviceMethod,
Map<Integer,Advice.OffsetMapping.Target> offsetMappings,
Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler,
Advice.Dispatcher.RelocationHandler.Bound relocationHandler)
Creates a code translation visitor for translating exit advice.
|
Inlining(MethodDescription.InDefinedShape adviceMethod)
Creates a dispatcher for inlined advice method.
|
OfAnnotationProperty(Class<T> annotationType,
MethodDescription.InDefinedShape property)
Creates a factory for binding an annotation property.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType)
Creates a new resolved version of a dispatcher.
|
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
org.objectweb.asm.ClassReader classReader)
Creates a new resolved version of a dispatcher.
|
WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType)
Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.
|
WithDiscardedEnterType(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
org.objectweb.asm.ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice that does not expose the enter type.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
org.objectweb.asm.ClassReader classReader,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType,
TypeDescription throwable)
Creates a new resolved dispatcher for implementing method exit advice that handles exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
org.objectweb.asm.ClassReader classReader,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithoutExceptionHandler(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition enterType)
Creates a new resolved dispatcher for implementing method exit advice that does not handle exceptions.
|
WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType)
Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.
|
WithRetainedEnterType(MethodDescription.InDefinedShape adviceMethod,
Map<String,TypeDefinition> namedTypes,
List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
TypeDefinition exitType,
org.objectweb.asm.ClassReader classReader)
Creates a new resolved dispatcher for implementing method enter advice that does expose the enter type.
|
Modifier and Type | Method and Description |
---|---|
T |
TypeVariableSource.Visitor.onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.
|
TypeVariableSource |
TypeVariableSource.Visitor.NoOp.onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.
|
Modifier and Type | Method and Description |
---|---|
AnnotationValue<?,?> |
AnnotationDescription.getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
AnnotationValue<?,?> |
AnnotationDescription.ForLoadedAnnotation.getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
AnnotationValue<?,?> |
AnnotationDescription.Latent.getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
AnnotationValue<?,?> |
AnnotationDescription.Latent.Loadable.getValue(MethodDescription.InDefinedShape property)
Returns the value of this annotation.
|
Modifier and Type | Class and Description |
---|---|
static class |
MethodDescription.ForLoadedConstructor
An implementation of a method description for a loaded constructor.
|
static class |
MethodDescription.ForLoadedMethod
An implementation of a method description for a loaded method.
|
static class |
MethodDescription.InDefinedShape.AbstractBase
An abstract base implementation of a method description in its defined shape.
|
static class |
MethodDescription.Latent
A latent method description describes a method that is not attached to a declaring
TypeDescription . |
static class |
MethodDescription.Latent.TypeInitializer
A method description that represents the type initializer.
|
Modifier and Type | Field and Description |
---|---|
static MethodDescription.InDefinedShape |
MethodDescription.UNDEFINED
Represents any undefined property of a type description that is instead represented as
null in order
to resemble the Java reflection API which returns null and is intuitive to many Java developers. |
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
MethodDescription.InDefinedShape.AbstractBase.asDefined()
Returns this type dependant in its defined shape, i.e.
|
MethodDescription.InDefinedShape |
MethodDescription.TypeSubstituting.asDefined()
Returns this type dependant in its defined shape, i.e.
|
MethodDescription.InDefinedShape |
MethodList.ForLoadedMethods.get(int index) |
MethodDescription.InDefinedShape |
MethodList.ForTokens.get(int index) |
MethodDescription.InDefinedShape |
ParameterDescription.InDefinedShape.getDeclaringMethod()
Returns the method that declares this parameter.
|
MethodDescription.InDefinedShape |
ParameterDescription.ForLoadedParameter.OfMethod.getDeclaringMethod()
Returns the method that declares this parameter.
|
MethodDescription.InDefinedShape |
ParameterDescription.ForLoadedParameter.OfConstructor.getDeclaringMethod()
Returns the method that declares this parameter.
|
MethodDescription.InDefinedShape |
ParameterDescription.ForLoadedParameter.OfLegacyVmMethod.getDeclaringMethod()
Returns the method that declares this parameter.
|
MethodDescription.InDefinedShape |
ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor.getDeclaringMethod()
Returns the method that declares this parameter.
|
MethodDescription.InDefinedShape |
ParameterDescription.Latent.getDeclaringMethod()
Returns the method that declares this parameter.
|
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
MethodList.asDefined()
Returns this list of these method descriptions resolved to their defined shape.
|
MethodList<MethodDescription.InDefinedShape> |
MethodList.AbstractBase.asDefined()
Returns this list of these method descriptions resolved to their defined shape.
|
MethodList<MethodDescription.InDefinedShape> |
MethodList.Empty.asDefined()
Returns this list of these method descriptions resolved to their defined shape.
|
Constructor and Description |
---|
ForTokens(MethodDescription.InDefinedShape declaringMethod,
List<? extends ParameterDescription.Token> tokens)
Creates a new parameter list for the provided tokens.
|
ForTypes(MethodDescription.InDefinedShape methodDescription,
List<? extends TypeDefinition> typeDefinitions)
Creates a new parameter type list.
|
ForTypes(MethodDescription.InDefinedShape methodDescription,
TypeDefinition... typeDefinition)
Creates a new parameter type list.
|
Latent(MethodDescription.InDefinedShape declaringMethod,
ParameterDescription.Token token,
int index,
int offset)
Creates a latent parameter description.
|
Latent(MethodDescription.InDefinedShape declaringMethod,
TypeDescription.Generic parameterType,
int index,
int offset)
Creates a new latent parameter descriptions for a parameter without explicit meta data or annotations.
|
Latent(MethodDescription.InDefinedShape declaringMethod,
TypeDescription.Generic parameterType,
List<? extends AnnotationDescription> declaredAnnotations,
String name,
Integer modifiers,
int index,
int offset)
Creates a latent parameter description.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
TypeDescription.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypeDescription.ForLoadedType.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypeDescription.ArrayProjection.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypeDescription.Latent.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypeDescription.ForPackageDescription.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypeDescription.SuperTypeLoading.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.AbstractBase.OfSimpleType.WithDelegation.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.ForLoadedType.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.ArrayProjection.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.Latent.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.ForPackageDescription.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
TypeDescription.SuperTypeLoading.getDeclaredMethods()
Returns the methods that this type declares.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.TypeVariableSubstitutor.onMethod(MethodDescription.InDefinedShape methodDescription)
Applies the visitor on a method.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
Transformer.ForMethod.TransformedMethod.asDefined()
Returns this type dependant in its defined shape, i.e.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.InnerTypeDefinition<T> |
DynamicType.Builder.innerTypeOf(MethodDescription.InDefinedShape methodDescription)
Defines this type as an inner type that was declared within the supplied method or constructor.
|
DynamicType.Builder.InnerTypeDefinition<U> |
DynamicType.Builder.AbstractBase.Delegator.innerTypeOf(MethodDescription.InDefinedShape methodDescription)
Defines this type as an inner type that was declared within the supplied method or constructor.
|
DynamicType.Builder.InnerTypeDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.innerTypeOf(MethodDescription.InDefinedShape methodDescription)
Defines this type as an inner type that was declared within the supplied method or constructor.
|
Constructor and Description |
---|
InnerTypeDefinitionForMethodAdapter(MethodDescription.InDefinedShape methodDescription)
Creates a new adapter for defining a type that is declared within a method or constructor.
|
TransformedMethod(TypeDescription instrumentedType,
TypeDefinition declaringType,
MethodDescription.Token token,
MethodDescription.InDefinedShape methodDescription)
Creates a new transformed method.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge
A method representing an accessor bridge method.
|
protected static class |
TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget
A method representing a bridge's target method in its defined shape.
|
protected static class |
TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge
A method describing a visibility bridge.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
InstrumentedType.Default.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
InstrumentedType.Frozen.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
InstrumentedType.Default.getDeclaredMethods()
Returns the methods that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
InstrumentedType.Frozen.getDeclaredMethods()
Returns the methods that this type declares.
|
Modifier and Type | Method and Description |
---|---|
protected MethodGraph.Compiler.Default.Key.Harmonized<V> |
MethodGraph.Compiler.Default.Key.Harmonized.extend(MethodDescription.InDefinedShape methodDescription,
MethodGraph.Compiler.Default.Harmonizer<V> harmonizer)
Extends this key by the given method description.
|
InstrumentedType |
InstrumentedType.withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod)
Creates a new instrumented type with the supplied enclosing method.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.WithFlexibleName.withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod)
Creates a new instrumented type with the supplied enclosing method.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod)
Creates a new instrumented type with the supplied enclosing method.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Frozen.withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod)
Creates a new instrumented type with the supplied enclosing method.
|
Constructor and Description |
---|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
List<? extends MethodDescription.Token> methodTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
boolean anonymousClass,
boolean localClass,
TypeDescription nestHost,
List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor
An description of a rebased constructor.
|
protected static class |
MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod
A description of a rebased method.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
MethodRebaseResolver.Resolution.getResolvedMethod()
Returns the resolved method if this resolution represents a rebased method or the original method.
|
MethodDescription.InDefinedShape |
MethodRebaseResolver.Resolution.Preserved.getResolvedMethod()
Returns the resolved method if this resolution represents a rebased method or the original method.
|
MethodDescription.InDefinedShape |
MethodRebaseResolver.Resolution.ForRebasedMethod.getResolvedMethod()
Returns the resolved method if this resolution represents a rebased method or the original method.
|
MethodDescription.InDefinedShape |
MethodRebaseResolver.Resolution.ForRebasedConstructor.getResolvedMethod()
Returns the resolved method if this resolution represents a rebased method or the original method.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.InnerTypeDefinition<T> |
DecoratingDynamicTypeBuilder.innerTypeOf(MethodDescription.InDefinedShape methodDescription)
Defines this type as an inner type that was declared within the supplied method or constructor.
|
static MethodRebaseResolver.Resolution |
MethodRebaseResolver.Resolution.ForRebasedConstructor.of(MethodDescription.InDefinedShape methodDescription,
TypeDescription placeholderType)
Resolves a constructor rebasement.
|
static MethodRebaseResolver.Resolution |
MethodRebaseResolver.Resolution.ForRebasedMethod.of(TypeDescription instrumentedType,
MethodDescription.InDefinedShape methodDescription,
MethodNameTransformer methodNameTransformer)
Resolves a rebasement for the provided method.
|
MethodRebaseResolver.Resolution |
MethodRebaseResolver.resolve(MethodDescription.InDefinedShape methodDescription)
Checks if a method is eligible for rebasing and resolves this possibly rebased method.
|
MethodRebaseResolver.Resolution |
MethodRebaseResolver.Disabled.resolve(MethodDescription.InDefinedShape methodDescription)
Checks if a method is eligible for rebasing and resolves this possibly rebased method.
|
MethodRebaseResolver.Resolution |
MethodRebaseResolver.Default.resolve(MethodDescription.InDefinedShape methodDescription)
Checks if a method is eligible for rebasing and resolves this possibly rebased method.
|
Constructor and Description |
---|
ForRebasedConstructor(MethodDescription.InDefinedShape methodDescription)
Creates a new resolution for a rebased constructor.
|
ForRebasedMethod(MethodDescription.InDefinedShape methodDescription)
Creates a resolution for a rebased method.
|
Preserved(MethodDescription.InDefinedShape methodDescription)
Creates a new
MethodRebaseResolver.Resolution for
a non-rebased method. |
RebasedConstructor(MethodDescription.InDefinedShape methodDescription,
TypeDescription placeholderType)
Creates a new rebased constructor.
|
RebasedMethod(TypeDescription instrumentedType,
MethodDescription.InDefinedShape methodDescription,
MethodNameTransformer methodNameTransformer)
Creates a new rebased method.
|
Constructor and Description |
---|
Default(Map<MethodDescription.InDefinedShape,MethodRebaseResolver.Resolution> resolutions,
List<DynamicType> dynamicTypes)
Creates a new default method rebased resolver.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
Implementation.Context.Default.AbstractPropertyAccessorMethod
A base implementation of a method that accesses a property of an instrumented type.
|
protected static class |
Implementation.Context.Default.AccessorMethod
A description of an accessor method to access another method from outside the instrumented type.
|
protected static class |
Implementation.Context.Default.FieldGetter
A description of a field getter method.
|
protected static class |
Implementation.Context.Default.FieldSetter
A description of a field setter method.
|
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
InvokeDynamic.bootstrapMethod
The bootstrap method.
|
protected static MethodDescription.InDefinedShape |
EqualsMethod.TypeCompatibilityCheck.GET_CLASS
The
Object.getClass() method. |
protected MethodDescription.InDefinedShape |
Implementation.Context.Default.DelegationRecord.methodDescription
The delegation method.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
Implementation.Context.Default.DelegationRecord.getMethod()
Returns the method that is implemented where the returned method resembles a potential transformation.
|
MethodDescription.InDefinedShape |
MethodAccessorFactory.registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation,
MethodAccessorFactory.AccessType accessType)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription.InDefinedShape |
MethodAccessorFactory.Illegal.registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation,
MethodAccessorFactory.AccessType accessType)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription.InDefinedShape |
Implementation.Context.Disabled.registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation,
MethodAccessorFactory.AccessType accessType)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription.InDefinedShape |
Implementation.Context.Default.registerAccessorFor(Implementation.SpecialMethodInvocation specialMethodInvocation,
MethodAccessorFactory.AccessType accessType)
Registers an accessor method for a
Implementation.SpecialMethodInvocation which cannot itself be
triggered invoked directly from outside a type. |
MethodDescription.InDefinedShape |
MethodAccessorFactory.registerGetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
MethodAccessorFactory.Illegal.registerGetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
Implementation.Context.Disabled.registerGetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
Implementation.Context.Default.registerGetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a getter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
MethodAccessorFactory.registerSetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
MethodAccessorFactory.Illegal.registerSetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
Implementation.Context.Disabled.registerSetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
MethodDescription.InDefinedShape |
Implementation.Context.Default.registerSetterFor(FieldDescription fieldDescription,
MethodAccessorFactory.AccessType accessType)
Registers a setter for the given
FieldDescription which might
itself not be accessible from outside the class. |
Modifier and Type | Method and Description |
---|---|
static InvokeDynamic.WithImplicitTarget |
InvokeDynamic.bootstrap(MethodDescription.InDefinedShape bootstrapMethod,
List<?> rawArguments)
Implements the instrumented method with a dynamic method invocation which is linked at runtime using the
specified bootstrap method or constructor.
|
static InvokeDynamic.WithImplicitTarget |
InvokeDynamic.bootstrap(MethodDescription.InDefinedShape bootstrapMethod,
Object... rawArgument)
Implements the instrumented method with a dynamic method invocation which is linked at runtime using the
specified bootstrap method or constructor.
|
static InvokeDynamic.WithImplicitArguments |
InvokeDynamic.lambda(MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface)
Creates a lambda expression using the JVM's lambda meta factory.
|
static InvokeDynamic.WithImplicitArguments |
InvokeDynamic.lambda(MethodDescription.InDefinedShape methodDescription,
TypeDescription functionalInterface,
MethodGraph.Compiler methodGraphCompiler)
Creates a lambda expression using the JVM's lambda meta factory.
|
Constructor and Description |
---|
AbstractDelegator(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing)
Creates a new abstract delegator for a dynamic method invocation.
|
DelegationRecord(MethodDescription.InDefinedShape methodDescription,
Visibility visibility)
Creates a new delegation record.
|
InvokeDynamic(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing)
Creates a new invoke dynamic implementation.
|
OfArgument(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
int index)
Creates a new invoke dynamic instance with an implicit field type for the provided value.
|
OfField(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
String fieldName,
FieldLocator.Factory fieldLocatorFactory)
Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.
|
OfInstance(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing,
Object value)
Creates a new invoke dynamic instance with an implicit field type for the provided value.
|
WithImplicitArguments(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing)
Creates a new dynamic method invocation with implicit arguments.
|
WithImplicitTarget(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing)
Creates a new dynamic method invocation with implicit arguments and an implicit invocation target.
|
WithImplicitType(MethodDescription.InDefinedShape bootstrapMethod,
List<?> handleArguments,
InvokeDynamic.InvocationProvider invocationProvider,
InvokeDynamic.TerminationHandler terminationHandler,
Assigner assigner,
Assigner.Typing typing)
Creates a new abstract delegator for a dynamic method invocation where the last argument is assigned an implicit type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AnnotationValueFilter.isRelevant(AnnotationDescription annotationDescription,
MethodDescription.InDefinedShape methodDescription)
Checks if the given annotation value should be written as the value of the provided annotation property.
|
Constructor and Description |
---|
Binder(MethodDescription.InDefinedShape getterMethod,
MethodDescription.InDefinedShape setterMethod)
Creates a new binder for a
FieldProxy in simplex mode. |
Binder(TypeDescription proxyType,
MethodDescription.InDefinedShape getterMethod,
MethodDescription.InDefinedShape setterMethod)
Creates a new binder for a
FieldProxy in duplex mode. |
Duplex(TypeDescription proxyType,
MethodDescription.InDefinedShape getterMethod,
MethodDescription.InDefinedShape setterMethod)
Creates a new duplex factory.
|
ForGetter(MethodDescription.InDefinedShape getterMethod)
Creates a new getter field resolver.
|
ForGetterSetterPair(TypeDescription proxyType,
MethodDescription.InDefinedShape getterMethod,
MethodDescription.InDefinedShape setterMethod)
Creates a new field resolver for an accessor that both gets and sets a field value.
|
ForSetter(MethodDescription.InDefinedShape setterMethod)
Creates a new field resolver for a setter accessor.
|
Simplex(MethodDescription.InDefinedShape getterMethod,
MethodDescription.InDefinedShape setterMethod)
Creates a simplex factory.
|
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
MethodConstant.methodDescription
A description of the method to be loaded onto the stack.
|
Modifier and Type | Method and Description |
---|---|
protected abstract MethodDescription.InDefinedShape |
MethodConstant.accessorMethod()
Returns the method for loading a declared method or constructor onto the operand stack.
|
protected MethodDescription.InDefinedShape |
MethodConstant.ForMethod.accessorMethod() |
protected MethodDescription.InDefinedShape |
MethodConstant.ForConstructor.accessorMethod() |
Modifier and Type | Method and Description |
---|---|
static MethodConstant.CanCache |
MethodConstant.of(MethodDescription.InDefinedShape methodDescription)
Creates a stack manipulation that loads a method constant onto the operand stack.
|
static MethodConstant.CanCache |
MethodConstant.ofPrivileged(MethodDescription.InDefinedShape methodDescription)
Creates a stack manipulation that loads a method constant onto the operand stack using an
AccessController . |
Constructor and Description |
---|
ForConstructor(MethodDescription.InDefinedShape methodDescription)
Creates a new
MethodConstant for
creating a Constructor instance. |
ForMethod(MethodDescription.InDefinedShape methodDescription)
Creates a new
MethodConstant for
creating a Method instance. |
MethodConstant(MethodDescription.InDefinedShape methodDescription)
Creates a new method constant.
|
PrivilegedLookup(MethodDescription.InDefinedShape methodDescription,
StackManipulation methodName)
Creates a new privileged lookup.
|
Modifier and Type | Method and Description |
---|---|
static MethodInvocation.WithImplicitInvocationTargetType |
MethodInvocation.invoke(MethodDescription.InDefinedShape methodDescription)
Creates a method invocation with an implicitly determined invocation type.
|
Constructor and Description |
---|
DynamicInvocation(String methodName,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes,
MethodDescription.InDefinedShape bootstrapMethod,
List<?> arguments)
Creates a new dynamic method invocation.
|
HandleInvocation(MethodDescription.InDefinedShape methodDescription,
MethodInvocation.HandleType type)
Creates a new method handle invocation.
|
Invocation(MethodDescription.InDefinedShape methodDescription)
Creates an invocation of a given method on its declaring type as an invocation target.
|
Invocation(MethodDescription.InDefinedShape methodDescription,
TypeDescription typeDescription)
Creates an invocation of a given method on a given invocation target type.
|
Modifier and Type | Method and Description |
---|---|
static <T extends MethodDescription> |
ElementMatchers.is(MethodDescription.InDefinedShape method)
Exactly matches a given method or constructor as a
MethodDescription in its defined shape. |
Modifier and Type | Method and Description |
---|---|
static <T extends MethodDescription> |
ElementMatchers.definedMethod(ElementMatcher<? super MethodDescription.InDefinedShape> matcher)
Matches a method in its defined shape.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.MethodTokenList.get(int index) |
MethodDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.getEnclosingMethod()
Returns a description of the method that encloses this type.
|
MethodDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.TypeContainment.getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
MethodDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained.getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
MethodDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.TypeContainment.WithinType.getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
MethodDescription.InDefinedShape |
TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod.getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
Modifier and Type | Method and Description |
---|---|
MethodList<MethodDescription.InDefinedShape> |
TypePool.Default.LazyTypeDescription.getDeclaredMethods()
Returns the methods that this type declares.
|
Modifier and Type | Method and Description |
---|---|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the return type of the represented method.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the return type of the represented method.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the return type of the represented method.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the return type of the represented method.
|
Modifier and Type | Method and Description |
---|---|
static JavaConstant.Dynamic |
JavaConstant.Dynamic.bootstrap(String name,
MethodDescription.InDefinedShape bootstrapMethod,
List<?> rawArguments)
Binds the supplied bootstrap method or constructor for the resolution of a dynamic constant.
|
static JavaConstant.Dynamic |
JavaConstant.Dynamic.bootstrap(String name,
MethodDescription.InDefinedShape bootstrapMethod,
Object... rawArgument)
Binds the supplied bootstrap method or constructor for the resolution of a dynamic constant.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.of(MethodDescription.InDefinedShape methodDescription)
Creates a method handle representation of the given method.
|
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.of(MethodDescription.InDefinedShape methodDescription)
Extracts a handle type for invoking the given method.
|
static JavaConstant.Dynamic |
JavaConstant.Dynamic.ofInvocation(MethodDescription.InDefinedShape methodDescription,
List<?> rawArguments)
Represents a constant that is resolved by invoking a
static factory method or a constructor. |
static JavaConstant.Dynamic |
JavaConstant.Dynamic.ofInvocation(MethodDescription.InDefinedShape methodDescription,
Object... rawArgument)
Represents a constant that is resolved by invoking a
static factory method or a constructor. |
protected static JavaConstant.MethodHandle.HandleType |
JavaConstant.MethodHandle.HandleType.ofSpecial(MethodDescription.InDefinedShape methodDescription)
Extracts a handle type for invoking the given method via invokespecial.
|
static JavaConstant.MethodHandle |
JavaConstant.MethodHandle.ofSpecial(MethodDescription.InDefinedShape methodDescription,
TypeDescription typeDescription)
Creates a method handle representation of the given method for an explicit special method invocation of an otherwise virtual method.
|
Copyright © 2014–2019. All rights reserved.