Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
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.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.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.implementation.auxiliary |
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType . |
net.bytebuddy.implementation.bytecode |
Types and classes in this package are responsible for creating Java byte code for a given byte code target
which is represented by a
MethodDescription . |
net.bytebuddy.implementation.bytecode.assign |
An
Assigner is responsible for transforming
a given TypeDescription into another one. |
net.bytebuddy.implementation.bytecode.assign.primitive |
Assigner implementations of this package
are capable of handling primitive types or the void type. |
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. reading and writing of fields, invoking of methods, access of local variables
within a method invocation or returning values from method invocations. |
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. |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
ByteBuddy.makeInterface(TypeDefinition... interfaceType)
Creates a new interface type that extends the provided interface.
|
<T> DynamicType.Builder<T> |
ByteBuddy.subclass(TypeDefinition superType)
Creates a new builder for subclassing the provided type.
|
<T> DynamicType.Builder<T> |
ByteBuddy.subclass(TypeDefinition superType,
ConstructorStrategy constructorStrategy)
Creates a new builder for subclassing the provided type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
ByteBuddy.makeInterface(Collection<? extends TypeDefinition> interfaceTypes)
Creates a new interface type that extends the provided interface.
|
Modifier and Type | Method and Description |
---|---|
protected static Advice.Dispatcher.OffsetMapping.Target |
Advice.Dispatcher.OffsetMapping.Target.ForBoxedParameter.of(int offset,
TypeDefinition type)
Resolves a target representing an assignment of a boxed, primitive parameter value.
|
protected static Advice.Dispatcher.OffsetMapping.Target.ForBoxedParameter.BoxingDispatcher |
Advice.Dispatcher.OffsetMapping.Target.ForBoxedParameter.BoxingDispatcher.of(TypeDefinition typeDefinition)
Resolves a boxing dispatcher for the supplied primitive type.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
DeclaredByType.getDeclaringType()
Returns the declaring type of this instance.
|
Constructor and Description |
---|
ForTypes(MethodDescription.InDefinedShape methodDescription,
TypeDefinition... typeDefinition)
Creates a new parameter type list.
|
Constructor and Description |
---|
ForTypes(MethodDescription.InDefinedShape methodDescription,
List<? extends TypeDefinition> typeDefinitions)
Creates a new parameter type list.
|
TypeList(List<? extends TypeDefinition> typeDescriptions)
Creates a new list of types that represent parameters.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TypeDescription
Implementations of this interface represent a Java type, i.e. a class or interface.
|
static interface |
TypeDescription.Generic
Represents a generic type of the Java programming language.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeDescription.AbstractBase
An abstract base implementation of a type description.
|
static class |
TypeDescription.AbstractBase.OfSimpleType
An adapter implementation of a
TypeDescription that
describes any type that is not an array or a primitive type. |
static class |
TypeDescription.ArrayProjection
A projection for an array type based on an existing
TypeDescription . |
static class |
TypeDescription.ForLoadedType
A type description implementation that represents a loaded type.
|
static class |
TypeDescription.ForPackageDescription
A type representation of a package description.
|
static class |
TypeDescription.Generic.AbstractBase
An abstract base implementation of a generic type description.
|
static class |
TypeDescription.Generic.LazyProjection
A lazy projection of a generic type.
|
static class |
TypeDescription.Generic.LazyProjection.ForLoadedFieldType
A lazy projection of a field's type.
|
static class |
TypeDescription.Generic.LazyProjection.ForLoadedReturnType
A lazy projection of a method's generic return type.
|
static class |
TypeDescription.Generic.LazyProjection.ForLoadedSuperClass
A lazy projection of a generic super type.
|
protected static class |
TypeDescription.Generic.LazyProjection.OfAnnotatedElement
A base implementation of a lazy type projection of an annotated element that resolves its type annotations
via an
TypeDescription.Generic.AnnotationReader . |
static class |
TypeDescription.Generic.LazyProjection.OfConstructorParameter
A lazy projection of the parameter type of a
Constructor . |
static class |
TypeDescription.Generic.LazyProjection.OfMethodParameter
A lazy projection of the parameter type of a
Method . |
static class |
TypeDescription.Generic.OfGenericArray
A base implementation of a generic type description that represents a potentially generic array.
|
static class |
TypeDescription.Generic.OfGenericArray.ForLoadedType
A description of a loaded generic array type.
|
static class |
TypeDescription.Generic.OfGenericArray.Latent
A latent implementation of a generic array type.
|
static class |
TypeDescription.Generic.OfNonGenericType
A raw type representation of a non-generic type.
|
static class |
TypeDescription.Generic.OfNonGenericType.ForLoadedType
Represents a non-generic type for a loaded
Class . |
static class |
TypeDescription.Generic.OfNonGenericType.Latent
A latent description of a non-generic type.
|
static class |
TypeDescription.Generic.OfNonGenericType.OfErasure
Represents a non-generic type for an erasure as a
TypeDescription . |
static class |
TypeDescription.Generic.OfParameterizedType
A base implementation of a generic type description that represents a parameterized type.
|
static class |
TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure
Represents a type erasure as a parameterized type where any type variable is used as a type argument
of the parameterized type and where the declaring type is defined as the type's owner type.
|
static class |
TypeDescription.Generic.OfParameterizedType.ForLoadedType
Description of a loaded parameterized type.
|
static class |
TypeDescription.Generic.OfParameterizedType.Latent
A latent description of a parameterized type.
|
static class |
TypeDescription.Generic.OfTypeVariable
A base implementation of a generic type description that represents a type variable.
|
static class |
TypeDescription.Generic.OfTypeVariable.ForLoadedType
Description of a loaded type variable.
|
static class |
TypeDescription.Generic.OfTypeVariable.Symbolic
Implementation of a symbolic type variable.
|
static class |
TypeDescription.Generic.OfWildcardType
A base implementation of a generic type description that represents a wildcard type.
|
static class |
TypeDescription.Generic.OfWildcardType.ForLoadedType
Description of a loaded wildcard.
|
static class |
TypeDescription.Generic.OfWildcardType.Latent
A latent description of a wildcard type.
|
protected static class |
TypeDescription.Generic.Visitor.AnnotationStripper.NonAnnotatedTypeVariable
Representation of a type variable without annotations.
|
protected static class |
TypeDescription.Generic.Visitor.Substitutor.ForAttachment.AnnotatedTypeVariable
Wraps a formal type variable to allow for representing type annotations.
|
protected class |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable
Implementation of a type variable on a method that is not substituted.
|
protected static class |
TypeDescription.Generic.Visitor.TypeVariableErasing.RetainedTypeVariable
A retained type variable that is not erased.
|
static class |
TypeDescription.Latent
A latent type description for a type without methods or fields.
|
protected static class |
TypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariable
A wrapper for representing a type variable in its attached state.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
TypeDefinition.getComponentType()
Returns the component type of this type.
|
TypeDefinition |
TypeDefinition.SuperClassIterator.next() |
Modifier and Type | Method and Description |
---|---|
Iterator<TypeDefinition> |
TypeDescription.Generic.OfNonGenericType.iterator() |
Iterator<TypeDefinition> |
TypeDescription.Generic.OfGenericArray.iterator() |
Iterator<TypeDefinition> |
TypeDescription.Generic.OfWildcardType.iterator() |
Iterator<TypeDefinition> |
TypeDescription.Generic.OfParameterizedType.iterator() |
Iterator<TypeDefinition> |
TypeDescription.Generic.OfTypeVariable.iterator() |
Iterator<TypeDefinition> |
TypeDescription.Generic.OfTypeVariable.Symbolic.iterator() |
Iterator<TypeDefinition> |
TypeDescription.Generic.LazyProjection.iterator() |
Iterator<TypeDefinition> |
TypeDescription.AbstractBase.iterator() |
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Visitor<TypeDescription.Generic> |
TypeDescription.Generic.Visitor.Substitutor.ForDetachment.of(TypeDefinition typeDefinition)
Returns a new detachment visitor that detaches any type matching the supplied type description.
|
static TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.parameterizedType(TypeDescription rawType,
TypeDefinition... parameter)
Creates a parameterized type without an owner type or with a non-generic owner type.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.parameterizedType(TypeDescription rawType,
Collection<? extends TypeDefinition> parameters)
Creates a parameterized type without an owner type or with a non-generic owner type.
|
static TypeDescription.Generic.Builder |
TypeDescription.Generic.Builder.parameterizedType(TypeDescription rawType,
TypeDescription.Generic ownerType,
Collection<? extends TypeDefinition> parameters)
Creates a parameterized type.
|
Constructor and Description |
---|
Explicit(TypeDefinition... typeDefinition)
Creates a new explicit list of generic types.
|
ForAttachment(TypeDefinition declaringType,
TypeVariableSource typeVariableSource)
Creates a visitor for attaching type variables.
|
SuperClassIterator(TypeDefinition initialType)
Creates a new iterator.
|
Constructor and Description |
---|
Explicit(List<? extends TypeDefinition> typeDefinitions)
Creates a new explicit list of generic types.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
MethodTransformer.Simple.TransformedMethod.getDeclaringType() |
TypeDefinition |
FieldTransformer.Simple.TransformedField.getDeclaringType() |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
TypeDefinition type,
Collection<? extends ModifierContributor.ForField> modifierContributors)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<S> |
DynamicType.Builder.AbstractBase.defineField(String name,
TypeDefinition type,
Collection<? extends ModifierContributor.ForField> modifierContributors) |
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
TypeDefinition type,
int modifiers)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<U> |
DynamicType.Builder.AbstractBase.Delegator.defineField(String name,
TypeDefinition type,
int modifiers) |
DynamicType.Builder.FieldDefinition.Optional.Valuable<U> |
DynamicType.Builder.AbstractBase.Adapter.defineField(String name,
TypeDefinition type,
int modifiers) |
DynamicType.Builder.FieldDefinition.Optional.Valuable<T> |
DynamicType.Builder.defineField(String name,
TypeDefinition type,
ModifierContributor.ForField... modifierContributor)
Defines the specified field as a field of the built dynamic type.
|
DynamicType.Builder.FieldDefinition.Optional.Valuable<S> |
DynamicType.Builder.AbstractBase.defineField(String name,
TypeDefinition type,
ModifierContributor.ForField... modifierContributor) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T> |
DynamicType.Builder.defineMethod(String name,
TypeDefinition returnType,
Collection<? extends ModifierContributor.ForMethod> modifierContributors)
Defines the specified method to be declared by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<S> |
DynamicType.Builder.AbstractBase.defineMethod(String name,
TypeDefinition returnType,
Collection<? extends ModifierContributor.ForMethod> modifierContributors) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T> |
DynamicType.Builder.defineMethod(String name,
TypeDefinition returnType,
int modifiers)
Defines the specified method to be declared by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<U> |
DynamicType.Builder.AbstractBase.Delegator.defineMethod(String name,
TypeDefinition returnType,
int modifiers) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<U> |
DynamicType.Builder.AbstractBase.Adapter.defineMethod(String name,
TypeDefinition returnType,
int modifiers) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<T> |
DynamicType.Builder.defineMethod(String name,
TypeDefinition returnType,
ModifierContributor.ForMethod... modifierContributor)
Defines the specified method to be declared by the instrumented type.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<S> |
DynamicType.Builder.AbstractBase.defineMethod(String name,
TypeDefinition returnType,
ModifierContributor.ForMethod... modifierContributor) |
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<T> |
DynamicType.Builder.implement(TypeDefinition... interfaceType)
Implements the supplied interfaces for the instrumented type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<S> |
DynamicType.Builder.AbstractBase.implement(TypeDefinition... interfaceType) |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> |
DynamicType.Builder.MethodDefinition.ExceptionDefinition.throwing(TypeDefinition... type)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> |
DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase.throwing(TypeDefinition... type) |
DynamicType.Builder.TypeVariableDefinition<T> |
DynamicType.Builder.typeVariable(String symbol,
TypeDefinition... bound)
Defines the supplied type variable with the given bound as a type variable of the instrumented type.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.typeVariable(String symbol,
TypeDefinition... bound)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.AbstractBase.typeVariable(String symbol,
TypeDefinition... bound) |
DynamicType.Builder.TypeVariableDefinition<S> |
DynamicType.Builder.AbstractBase.typeVariable(String symbol,
TypeDefinition... bound) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.withParameter(TypeDefinition type)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter.withParameter(TypeDefinition type) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.withParameter(TypeDefinition type) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.withParameter(TypeDefinition type,
String name,
Collection<? extends ModifierContributor.ForParameter> modifierContributors)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase.withParameter(TypeDefinition type,
String name,
Collection<? extends ModifierContributor.ForParameter> modifierContributors) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.withParameter(TypeDefinition type,
String name,
int modifiers)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter.withParameter(TypeDefinition type,
String name,
int modifiers) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.withParameter(TypeDefinition type,
String name,
int modifiers) |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<U> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.withParameter(TypeDefinition type,
String name,
ModifierContributor.ForParameter... modifierContributor)
Defines the specified parameter for the currently defined method as the last parameter of the currently defined method.
|
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase.withParameter(TypeDefinition type,
String name,
ModifierContributor.ForParameter... modifierContributor) |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.withParameters(TypeDefinition... type)
Defines the specified parameters for the currently defined method.
|
DynamicType.Builder.MethodDefinition.ExceptionDefinition<W> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase.withParameters(TypeDefinition... type) |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<T> |
DynamicType.Builder.implement(Collection<? extends TypeDefinition> interfaceTypes)
Implements the supplied interfaces for the instrumented type.
|
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Delegator.implement(Collection<? extends TypeDefinition> interfaceTypes) |
DynamicType.Builder.MethodDefinition.ImplementationDefinition.Optional<U> |
DynamicType.Builder.AbstractBase.Adapter.implement(Collection<? extends TypeDefinition> interfaceTypes) |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> |
DynamicType.Builder.MethodDefinition.ExceptionDefinition.throwing(Collection<? extends TypeDefinition> types)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.ExceptionDefinition<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter.throwing(Collection<? extends TypeDefinition> types) |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter.throwing(Collection<? extends TypeDefinition> types) |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.throwing(Collection<? extends TypeDefinition> types) |
DynamicType.Builder.TypeVariableDefinition<T> |
DynamicType.Builder.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds)
Defines the supplied type variable with the given bound as a type variable of the instrumented type.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds)
Defines a method variable to be declared by the currently defined method.
|
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable.AbstractBase.Adapter.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds) |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds) |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<X> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds) |
DynamicType.Builder.TypeVariableDefinition<U> |
DynamicType.Builder.AbstractBase.Delegator.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds) |
DynamicType.Builder.TypeVariableDefinition<U> |
DynamicType.Builder.AbstractBase.Adapter.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds) |
DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> |
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.typeVariable(String symbol,
Collection<? extends TypeDefinition> bounds) |
DynamicType.Builder.MethodDefinition.ExceptionDefinition<V> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.withParameters(Collection<? extends TypeDefinition> types)
Defines the specified parameters for the currently defined method.
|
DynamicType.Builder.MethodDefinition.ExceptionDefinition<W> |
DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase.withParameters(Collection<? extends TypeDefinition> types) |
Constructor and Description |
---|
TransformedField(TypeDefinition declaringType,
FieldDescription.Token token,
FieldDescription.InDefinedShape fieldDescription)
Creates a new transformed field.
|
TransformedMethod(TypeDefinition declaringType,
MethodDescription.Token token,
MethodDescription.InDefinedShape methodDescription)
Creates a new transformed method.
|
Modifier and Type | Interface and Description |
---|---|
interface |
InstrumentedType
Implementations of this interface represent an instrumented type that is subject to change.
|
static interface |
InstrumentedType.WithFlexibleName
Implementations represent an
InstrumentedType with a flexible name. |
Modifier and Type | Class and Description |
---|---|
static class |
InstrumentedType.Default
A default implementation of an instrumented type.
|
Modifier and Type | Method and Description |
---|---|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.analyze(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description without checking if the end of the type hierarchy was reached.
|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.analyzeNullable(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description.
|
MethodGraph.Linked |
MethodGraph.Empty.compile(TypeDefinition typeDefinition,
TypeDescription viewPoint) |
MethodGraph.Linked |
MethodGraph.Compiler.compile(TypeDefinition typeDefinition,
TypeDescription viewPoint)
Compiles the given type into a method graph.
|
MethodGraph.Linked |
MethodGraph.Compiler.Default.compile(TypeDefinition typeDefinition,
TypeDescription viewPoint) |
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.doAnalyze(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description without checking if it is already presented in the key store.
|
Modifier and Type | Method and Description |
---|---|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.analyze(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description without checking if the end of the type hierarchy was reached.
|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.analyzeNullable(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description.
|
protected MethodGraph.Compiler.Default.Key.Store<T> |
MethodGraph.Compiler.Default.doAnalyze(TypeDefinition typeDefinition,
Map<TypeDefinition,MethodGraph.Compiler.Default.Key.Store<T>> snapshots,
ElementMatcher<? super MethodDescription> relevanceMatcher)
Analyzes the given type description without checking if it is already presented in the key store.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
SubclassImplementationTarget.getOriginType() |
protected abstract TypeDefinition |
SubclassImplementationTarget.OriginTypeResolver.identify(TypeDescription typeDescription)
Identifies the origin type to a given type description.
|
Modifier and Type | Method and Description |
---|---|
TypeDefinition |
Implementation.Target.getOriginType()
Identifies the origin type of an implementation.
|
Modifier and Type | Method and Description |
---|---|
InvokeDynamic |
InvokeDynamic.WithImplicitFieldType.as(TypeDefinition typeDefinition)
Defines the given value to be treated as an instance of the provided type.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.FieldDefinable.defineAs(TypeDefinition typeDefinition,
ModifierContributor.ForField... modifier)
Defines a field with the given name in the instrumented type.
|
FieldAccessor.AssignerConfigurable |
FieldAccessor.ForNamedField.defineAs(TypeDefinition typeDefinition,
ModifierContributor.ForField... modifier) |
static Implementation |
Forwarding.toInstanceField(String fieldName,
TypeDefinition fieldType)
Forwards all intercepted method invocations to an instance field of the instrumented class.
|
static MethodDelegation |
MethodDelegation.toInstanceField(TypeDefinition typeDefinition,
String fieldName,
MethodGraph.Compiler methodGraphCompiler)
Creates an implementation where method calls are delegated to an instance that is manually stored in a field
fieldName that is defined for the instrumented type. |
static Implementation |
Forwarding.toStaticField(String fieldName,
TypeDefinition fieldType)
Forwards all intercepted method invocations to a
static field of the instrumented class. |
InvokeDynamic |
InvokeDynamic.withInstanceField(String fieldName,
TypeDefinition fieldType)
Passes the value of the specified instance field to the bootstrapped method.
|
InvokeDynamic |
InvokeDynamic.AbstractDelegator.withInstanceField(String fieldName,
TypeDefinition fieldType) |
MethodCall |
MethodCall.withInstanceField(TypeDefinition typeDefinition,
String name)
Defines a method call which fetches a value from an instance field.
|
Modifier and Type | Method and Description |
---|---|
MethodGraph.Linked |
MethodCallProxy.PrecomputedMethodGraph.compile(TypeDefinition typeDefinition,
TypeDescription viewPoint) |
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
Removal.pop(TypeDefinition typeDefinition)
Removes a value from the operand stack dependant of its size.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
TypeCasting.to(TypeDefinition typeDefinition)
Creates a casting to the given, non-primitive type.
|
Modifier and Type | Method and Description |
---|---|
static PrimitiveWideningDelegate |
PrimitiveWideningDelegate.forPrimitive(TypeDefinition typeDefinition)
Locates the delegate that is capable of widening the given type into another type.
|
static PrimitiveBoxingDelegate |
PrimitiveBoxingDelegate.forPrimitive(TypeDefinition typeDefinition)
Locates a boxing delegate for a given primitive type.
|
static PrimitiveUnboxingDelegate.UnboxingResponsible |
PrimitiveUnboxingDelegate.forReferenceType(TypeDefinition typeDefinition)
Creates an unboxing responsible that is capable of unboxing a wrapper type.
|
StackManipulation |
PrimitiveWideningDelegate.widenTo(TypeDefinition typeDefinition)
Attempts to widen the represented type into another type.
|
Modifier and Type | Method and Description |
---|---|
static StackManipulation |
DefaultValue.of(TypeDefinition typeDefinition)
Creates a stack assignment that loads the default value for a given type.
|
Modifier and Type | Method and Description |
---|---|
static MethodVariableAccess |
MethodVariableAccess.of(TypeDefinition typeDefinition)
Locates the correct accessor for a variable of a given type.
|
Constructor and Description |
---|
OfGenericField(TypeDefinition targetType,
FieldAccess.Defined defined)
Creates a new dispatcher for a generic field.
|
Modifier and Type | Class and Description |
---|---|
class |
CollectionRawTypeMatcher<T extends Iterable<? extends TypeDefinition>>
An element matcher that matches a collection of types by their raw types.
|
class |
DeclaringFieldMatcher<T extends TypeDefinition>
An element matcher that checks if a type description declares fields of a given property.
|
class |
DeclaringMethodMatcher<T extends TypeDefinition>
An element matcher that checks if a type description declares methods of a given property.
|
class |
RawTypeMatcher<T extends TypeDefinition>
An element matcher that matches its argument's
TypeDescription.Generic raw type against the
given matcher for a TypeDescription . |
class |
TypeSortMatcher<T extends TypeDefinition>
An element matcher that validates that a given generic type description represents a type of a given name.
|
Modifier and Type | Method and Description |
---|---|
static <T extends TypeDefinition> |
ElementMatchers.anyOf(Type... value)
Creates a matcher that matches any of the given types as
TypeDescription s
by the Object.equals(Object) method. |
static <T extends TypeDefinition> |
ElementMatchers.declaresField(ElementMatcher<? super FieldDescription> matcher)
Matches a type by a another matcher that is applied on any of its declared fields.
|
static <T extends TypeDefinition> |
ElementMatchers.declaresMethod(ElementMatcher<? super MethodDescription> matcher)
Matches a type by a another matcher that is applied on any of its declared methods.
|
static <T extends TypeDefinition> |
ElementMatchers.is(Type type)
Exactly matches a given type as a
TypeDescription . |
static <T extends TypeDefinition> |
ElementMatchers.isVariable(ElementMatcher<? super NamedElement> matcher)
Matches a type variable with the given name.
|
static <T extends TypeDefinition> |
ElementMatchers.isVariable(String symbol)
Matches a type variable with the given name.
|
static <T extends TypeDefinition> |
ElementMatchers.noneOf(Type... value)
Creates a matcher that matches none of the given types as
TypeDescription s
by the Object.equals(Object) method. |
static <T extends TypeDefinition> |
ElementMatchers.ofSort(ElementMatcher<? super TypeDefinition.Sort> matcher)
Matches generic type descriptions of the given sort.
|
static <T extends TypeDefinition> |
ElementMatchers.ofSort(TypeDefinition.Sort sort)
Matches generic type descriptions of the given sort.
|
Modifier and Type | Method and Description |
---|---|
static <T extends MethodDescription> |
ElementMatchers.takesGenericArguments(TypeDefinition... type)
Matches a method description that takes the provided generic arguments.
|
Modifier and Type | Method and Description |
---|---|
static <T extends MethodDescription> |
ElementMatchers.takesGenericArguments(List<? extends TypeDefinition> types)
Matches a method description that takes the provided generic arguments.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypePool.Default.LazyTypeDescription
A type description that looks up any referenced
ByteCodeElement or
AnnotationDescription by querying a type pool at lookup time. |
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.LazyGenericArray
A generic type representation of a generic array.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.LazyLowerBoundWildcard
A generic type representation of a lower bound wildcard.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType
A generic type description that represents a parameterized type without an enclosing generic owner type.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType
A lazy description of a parameterized type with an owner type.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType
A representation of a lazy primitive type.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariable
An annotated representation of a formal type variable.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable
A type description that represents a type variable with bounds that are resolved lazily.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.LazyUnboundWildcard
A generic type representation of a generic unbound wildcard.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.LazyUpperBoundWildcard
A generic type representation of a tokenized wildcard with an upper bound.
|
protected static class |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType
Represents a non-generic type that defines type annotations.
|
protected static class |
TypePool.LazyFacade.LazyResolution.LazyTypeDescription
A lazy type description for a lazy facade of a type pool.
|
Copyright © 2014–2016. All rights reserved.