Package | Description |
---|---|
net.bytebuddy.description |
Classes of this package allow the representation of Java classes, their member and their meta data.
|
net.bytebuddy.description.enumeration |
A package that contains classes for describing enumeration values.
|
net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
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.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 | Interface and Description |
---|---|
interface |
ByteCodeElement
Implementations describe an element represented in byte code, i.e.
|
static interface |
NamedElement.WithDescriptor
A named element with a class file descriptor and a generic signature.
|
static interface |
NamedElement.WithGenericName
A named element with a generic type name.
|
static interface |
NamedElement.WithOptionalName
Describes a named element where naming the element is optional and an alternative default name is provided if no explicit name is given.
|
static interface |
NamedElement.WithRuntimeName
A named element with a name that has a particular meaning to the Java runtime.
|
Modifier and Type | Interface and Description |
---|---|
interface |
EnumerationDescription
Describes an enumeration value.
|
Modifier and Type | Class and Description |
---|---|
static class |
EnumerationDescription.AbstractBase
An adapter implementation of an enumeration description.
|
static class |
EnumerationDescription.ForLoadedEnumeration
An enumeration description representing a loaded enumeration.
|
static class |
EnumerationDescription.Latent
A latent description of an enumeration value.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FieldDescription
Implementations of this interface describe a Java field.
|
static interface |
FieldDescription.InDefinedShape
Represents a field in its defined shape, i.e.
|
static interface |
FieldDescription.InGenericShape
Represents a field description in its generic shape, i.e.
|
Modifier and Type | Class and Description |
---|---|
static class |
FieldDescription.AbstractBase
An abstract base implementation of a field description.
|
static class |
FieldDescription.ForLoadedField
An implementation of a field description for a loaded field.
|
static class |
FieldDescription.InDefinedShape.AbstractBase
An abstract base implementation of a field description in its defined shape.
|
static class |
FieldDescription.Latent
A latent field description describes a field that is not attached to a declaring
TypeDescription . |
static class |
FieldDescription.TypeSubstituting
A field description that represents a given field but with a substituted field type.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MethodDescription
Implementations of this interface describe a Java method, i.e.
|
static interface |
MethodDescription.InDefinedShape
Represents a method in its defined shape, i.e.
|
static interface |
MethodDescription.InGenericShape
Represents a method description in its generic shape, i.e.
|
interface |
ParameterDescription
Description of the parameter of a Java method or constructor.
|
static interface |
ParameterDescription.InDefinedShape
Represents a parameter in its defined shape, i.e.
|
static interface |
ParameterDescription.InGenericShape
Represents a parameter description in its generic shape, i.e.
|
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.
|
protected static class |
MethodDescription.InDefinedShape.AbstractBase.ForLoadedExecutable<T extends AnnotatedElement>
A base implementation for a loaded instance representation for a
java.lang.reflect.Executable . |
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.
|
static class |
ParameterDescription.AbstractBase
A base implementation of a method parameter description.
|
static class |
ParameterDescription.ForLoadedParameter<T extends AccessibleObject>
Description of a loaded parameter with support for the information exposed by
java.lang.reflect.Parameter . |
protected static class |
ParameterDescription.ForLoadedParameter.OfConstructor
A description of a loaded
Constructor parameter for a modern VM. |
protected static class |
ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor
Description of a loaded constructor's parameter on a virtual machine where
java.lang.reflect.Parameter
is not available. |
protected static class |
ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
Description of a loaded method's parameter on a virtual machine where
java.lang.reflect.Parameter
is not available. |
protected static class |
ParameterDescription.ForLoadedParameter.OfMethod
A description of a loaded
Method parameter for a modern VM. |
static class |
ParameterDescription.InDefinedShape.AbstractBase
An abstract base implementation of a parameter description in its defined shape.
|
static class |
ParameterDescription.Latent
A latent description of a parameter that is not attached to a method or constructor.
|
static class |
ParameterDescription.TypeSubstituting
A parameter description that represents a given parameter but with a substituted parameter type.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PackageDescription
A package description represents a Java package.
|
interface |
RecordComponentDescription
Represents a component of a Java record.
|
static interface |
RecordComponentDescription.InDefinedShape
A description of a record component in its defined shape.
|
static interface |
RecordComponentDescription.InGenericShape
A description of a record component in generic shape.
|
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.
|
static interface |
TypeDescription.Generic
Represents a generic type of the Java programming language.
|
Modifier and Type | Class and Description |
---|---|
static class |
PackageDescription.AbstractBase
An abstract base implementation of a package description.
|
static class |
PackageDescription.ForLoadedPackage
Represents a loaded
Package wrapped as a
PackageDescription . |
static class |
PackageDescription.Simple
A simple implementation of a package without annotations.
|
static class |
RecordComponentDescription.AbstractBase
An abstract base implementation for a record component description.
|
static class |
RecordComponentDescription.ForLoadedRecordComponent
Represents a loaded record component.
|
static class |
RecordComponentDescription.InDefinedShape.AbstractBase
An abstract base implementation of a record component description in its defined shape.
|
static class |
RecordComponentDescription.Latent
A latent record component description.
|
static class |
RecordComponentDescription.TypeSubstituting
A type substituting representation of a record component 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.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.
|
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.LazyProjection.OfRecordComponent
A lazy projection of a
java.lang.reflect.RecordComponent 's type. |
static class |
TypeDescription.Generic.LazyProjection.WithEagerNavigation
A lazy projection of a type that resolves super class and interface types eagerly.
|
protected static class |
TypeDescription.Generic.LazyProjection.WithEagerNavigation.OfAnnotatedElement
A description of an annotated lazy type with eager navigation.
|
static class |
TypeDescription.Generic.LazyProjection.WithLazyNavigation
A lazy projection of a type with a lazy resolution of super class and interface types.
|
protected static class |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType
A lazy interface type description for a lazy projection.
|
protected static class |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClass
A lazy super class description for a lazy projection.
|
protected static class |
TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement
A description of an annotated lazy type with lazy navigation.
|
static class |
TypeDescription.Generic.LazyProjection.WithResolvedErasure
A lazy projection that applies a visitor only when resolving the generic type but not when reading the erasure.
|
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.ForErasure
A type description for a type erasure.
|
static class |
TypeDescription.Generic.OfNonGenericType.ForLoadedType
Represents a non-generic type for a loaded
Class . |
static class |
TypeDescription.Generic.OfNonGenericType.ForReifiedErasure
A representation of a raw type that preserves its generic super types' generic information with a minimum
but erases all of their members' types.
|
static class |
TypeDescription.Generic.OfNonGenericType.Latent
A latent description of a non-generic type.
|
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 an erasure as a generic type where all type variables are representing their own arguments.
|
static class |
TypeDescription.Generic.OfParameterizedType.ForLoadedType
Description of a loaded parameterized type.
|
static class |
TypeDescription.Generic.OfParameterizedType.ForReifiedType
A representation of a parameterized type that is a super type of a raw type but preserves the minimal type information
that is required for allowing creating correct erasures for overridden methods.
|
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.OfTypeVariable.WithAnnotationOverlay
A type variable with explicit annotations that replace the annotations that are declared by the provided 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 class |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable
Implementation of a type variable on a method that is not substituted.
|
static class |
TypeDescription.Latent
A latent type description for a type without methods or fields.
|
static class |
TypeDescription.SuperTypeLoading
A delegating type description that always attempts to load the super types of a delegate type.
|
protected static class |
TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection
A type projection that attempts to load any super type of the delegate type.
|
protected static class |
TypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariable
A wrapper for representing a type variable in its attached state.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
Transformer.ForField.TransformedField
An implementation of a transformed field.
|
protected static class |
Transformer.ForMethod.TransformedMethod
The transformed method.
|
protected class |
Transformer.ForMethod.TransformedMethod.TransformedParameter
A transformed method's parameter.
|
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.
|
static class |
InstrumentedType.Frozen
A frozen representation of an instrumented type of which the structure must not be modified.
|
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.CacheValueField
A description of a field that stores a cached value.
|
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 |
---|---|
class |
NameMatcher<T extends NamedElement>
A method matcher that matches a byte code element's source code name:
The source code name of types is equal to their binary name where arrays are appended a
[] by
their arity and where inner classes are appended by dollar signs to their outer class's source name.
Constructors and the type initializer methods are represented by the empty string as they do not
represent a source code name.
Fields are named as in the source code.
|
Modifier and Type | Method and Description |
---|---|
static <T extends NamedElement> |
ElementMatchers.nameContains(String infix)
Matches a
NamedElement for an infix of its name. |
static <T extends NamedElement> |
ElementMatchers.nameContainsIgnoreCase(String infix)
Matches a
NamedElement for an infix of its name. |
static <T extends NamedElement> |
ElementMatchers.named(String name)
Matches a
NamedElement for its exact name. |
static <T extends NamedElement> |
ElementMatchers.namedIgnoreCase(String name)
Matches a
NamedElement for its name. |
static <T extends NamedElement> |
ElementMatchers.namedOneOf(String... names)
Matches a
NamedElement for its membership of a set. |
static <T extends NamedElement> |
ElementMatchers.nameEndsWith(String suffix)
Matches a
NamedElement for its name's suffix. |
static <T extends NamedElement> |
ElementMatchers.nameEndsWithIgnoreCase(String suffix)
Matches a
NamedElement for its name's suffix. |
static <T extends NamedElement> |
ElementMatchers.nameMatches(String regex)
Matches a
NamedElement name against a regular expression. |
static <T extends NamedElement> |
ElementMatchers.nameStartsWith(String prefix)
Matches a
NamedElement for its name's prefix. |
static <T extends NamedElement> |
ElementMatchers.nameStartsWithIgnoreCase(String prefix)
Matches a
NamedElement for its name's prefix. |
Modifier and Type | Method and Description |
---|---|
static <T extends TypeDefinition> |
ElementMatchers.isVariable(ElementMatcher<? super NamedElement> matcher)
Matches a type variable with the given name.
|
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.ForTypeVariable.UnresolvedTypeVariable
Represents a type variable that a type references but that does not exist.
|
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.Default.LazyTypeDescription.TokenizedGenericType
A representation of a generic type that is described by a
TypePool.Default.LazyTypeDescription.GenericTypeToken . |
protected static class |
TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed
A lazy description of a non-well-defined described generic type.
|
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 | Class and Description |
---|---|
class |
JavaModule
Type-safe representation of a
java.lang.Module . |
protected static class |
JavaType.LatentTypeWithSimpleName
A latent type that resolves the simple name without considering the declaring type which is not normally available.
|
Copyright © 2014–2021. All rights reserved.