| Package | Description |
|---|---|
| net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
| 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.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.pool |
Classes of this package allow for the creating
TypeDescriptions without
loading any classes. |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentBuilder.DescriptionStrategy.Default.LazyTypeDescriptionWithEagerProperties
A type description that lazily resolves a instance of
AgentBuilder.DescriptionStrategy.Default.LazyTypeDescriptionWithEagerProperties. |
protected static class |
AgentBuilder.DescriptionStrategy.Default.TypeDescriptionWithFallbackProperties
A type description that falls back to a
TypePool description if the type's declared types,
fields or methods cannot be resolved successfully. |
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeVariableSource.AbstractBase
An abstract base implementation of a type variable source.
|
| Modifier and Type | Field and Description |
|---|---|
static TypeVariableSource |
TypeVariableSource.UNDEFINED
Indicates that a type variable source is undefined.
|
| Modifier and Type | Method and Description |
|---|---|
TypeVariableSource |
TypeVariableSource.getEnclosingSource()
Returns the enclosing source of type variables that are valid in the scope of this type variable source.
|
TypeVariableSource |
TypeVariableSource.Visitor.NoOp.onMethod(MethodDescription.InDefinedShape methodDescription) |
TypeVariableSource |
TypeVariableSource.Visitor.NoOp.onType(TypeDefinition typeDefinition) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MethodDescription
Implementations of this interface describe a Java method, i.e. a method or a constructor.
|
static interface |
MethodDescription.InDefinedShape
Represents a method in its defined shape, i.e. in the form it is defined by a class without its type variables being resolved.
|
static interface |
MethodDescription.InGenericShape
Represents a method description in its generic shape, i.e. in the shape it is defined by a generic or raw type.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodDescription.AbstractBase
An abstract base implementation of a method 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.
|
static class |
MethodDescription.TypeSubstituting
A method description that represents a given method but with substituted method types.
|
| Modifier and Type | Method and Description |
|---|---|
TypeVariableSource |
MethodDescription.AbstractBase.getEnclosingSource() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TypeDefinition
Implementations define a type, either as a
TypeDescription or as a TypeDescription.Generic. |
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.AbstractBase.OfSimpleType.WithDelegation
An implementation of a type description that delegates all properties but the type's name to a delegate.
|
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.ForLoadedType.WithEagerProperties
A type description of a loaded type that resolves any field, constructor or method property eagerly, i.e. calls all of
Class.getDeclaredFields(), Class.getDeclaredMethods(), Class.getDeclaredConstructors() and
Class.getDeclaredClasses(). |
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 |
|---|---|
TypeVariableSource |
TypeDescription.Generic.AbstractBase.getEnclosingSource() |
TypeVariableSource |
TypeDescription.AbstractBase.getEnclosingSource() |
TypeVariableSource |
TypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariable.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.getVariableSource()
Returns the source of this type variable.
|
TypeVariableSource |
TypeDescription.Generic.Visitor.AnnotationStripper.NonAnnotatedTypeVariable.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.Visitor.TypeVariableErasing.RetainedTypeVariable.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.Visitor.Substitutor.ForAttachment.AnnotatedTypeVariable.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.OfNonGenericType.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.OfGenericArray.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.OfWildcardType.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.OfParameterizedType.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.OfTypeVariable.Symbolic.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.OfTypeVariable.ForLoadedType.getVariableSource() |
TypeVariableSource |
TypeDescription.Generic.LazyProjection.getVariableSource() |
| Constructor and Description |
|---|
AttachedTypeVariable(TypeVariableSource typeVariableSource,
TypeVariableToken typeVariableToken,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new attached type variable.
|
ForAttachment(TypeDefinition declaringType,
TypeVariableSource typeVariableSource)
Creates a visitor for attaching type variables.
|
ForAttachment(TypeDescription declaringType,
TypeVariableSource typeVariableSource)
Creates a visitor for attaching type variables.
|
OfTypeVariables(TypeVariableSource typeVariableSource,
List<? extends TypeVariableToken> detachedTypeVariables,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new list of attached type variables representing a list of type variable tokens.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Transformer.ForMethod.TransformedMethod
The 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.
|
protected static class |
TypeWriter.Default.ForInlining.TypeInitializerDelegate
A method containing the original type initializer of a redefined class.
|
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 | 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 | 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 | Class and Description |
|---|---|
protected 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 class |
TypePool.Default.WithLazyResolution.LazyTypeDescription
A lazy type description that resolves any property that is not the name only when requested.
|
protected static class |
TypePool.LazyFacade.LazyTypeDescription
A description of a type that delegates to another type pool once a property that is not the name is resolved.
|
| Modifier and Type | Method and Description |
|---|---|
TypeVariableSource |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariable.getVariableSource() |
TypeVariableSource |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable.getVariableSource() |
Copyright © 2014–2016. All rights reserved.