Package | Description |
---|---|
net.bytebuddy.description |
Classes of this package allow the representation of Java classes, their member and their meta data.
|
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.description.type.generic |
Contains descriptions for generic types as defined in the Java programming language.
|
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. |
Modifier and Type | Interface and Description |
---|---|
interface |
ByteCodeElement
Implementations describe an element represented in byte code, i.e.
|
static interface |
NamedElement.WithGenericName
A named element with a generic type name.
|
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 |
FieldDescription
Implementations of this interface describe a Java field.
|
static interface |
FieldDescription.InDefinedShape
Represents a field in its defined 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.
|
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.
|
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.
|
protected class |
MethodDescription.TypeSubstituting.VariableRetainingDelegator.RetainedVariable
A retained type variable that is declared by the method.
|
static class |
ParameterDescription.AbstractBase
A base implementation of a method parameter description.
|
static class |
ParameterDescription.ForLoadedParameter
Description of a loaded parameter, represented by a Java 8
java.lang.reflect.Parameter . |
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. |
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 |
TypeDescription
Implementations of this interface represent a Java type, i.e.
|
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 |
TypeDescription.AbstractTypeDescription
An abstract base implementation of a type description.
|
static class |
TypeDescription.AbstractTypeDescription.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.Latent
A latent type description for a type without methods or fields.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GenericTypeDescription
Represents a generic type of the Java programming language.
|
interface |
TypeVariableSource
A type variable source represents a byte code element that can declare type variables.
|
Modifier and Type | Class and Description |
---|---|
static class |
GenericTypeDescription.ForGenericArray
A base implementation of a generic type description that represents a potentially generic array.
|
static class |
GenericTypeDescription.ForGenericArray.Latent
A latent implementation of a generic array type.
|
static class |
GenericTypeDescription.ForGenericArray.OfLoadedType
A description of a loaded generic array type.
|
static class |
GenericTypeDescription.ForParameterizedType
A base implementation of a generic type description that represents a parameterized type.
|
static class |
GenericTypeDescription.ForParameterizedType.Latent
A latent description of a parameterized type.
|
static class |
GenericTypeDescription.ForParameterizedType.OfLoadedType
Description of a loaded parameterized type.
|
static class |
GenericTypeDescription.ForParameterizedType.Raw
A raw type representation of a non-generic type.
|
static class |
GenericTypeDescription.ForTypeVariable
A base implementation of a generic type description that represents a type variable.
|
static class |
GenericTypeDescription.ForTypeVariable.InDetachedForm
An abstract implementation of a description of a type variable in detached form.
|
static class |
GenericTypeDescription.ForTypeVariable.OfLoadedType
Description of a loaded type variable.
|
static class |
GenericTypeDescription.ForWildcardType
A base implementation of a generic type description that represents a wildcard type.
|
static class |
GenericTypeDescription.ForWildcardType.Latent
A latent description of a wildcard type.
|
static class |
GenericTypeDescription.ForWildcardType.OfLoadedType
Description of a loaded wildcard.
|
static class |
GenericTypeDescription.LazyProjection
A lazy projection of a generic type.
|
static class |
GenericTypeDescription.LazyProjection.OfLoadedFieldType
A lazy projection of a field's type.
|
static class |
GenericTypeDescription.LazyProjection.OfLoadedParameter
A lazy projection of a loaded parameter.
|
static class |
GenericTypeDescription.LazyProjection.OfLoadedParameter.OfLegacyVmConstructor
Represents a constructor's parameter on a JVM that does not know the
java.lang.reflect.Parameter type. |
static class |
GenericTypeDescription.LazyProjection.OfLoadedParameter.OfLegacyVmMethod
Represents a method's parameter on a JVM that does not know the
java.lang.reflect.Parameter type. |
static class |
GenericTypeDescription.LazyProjection.OfLoadedReturnType
A lazy projection of a method's generic return type.
|
static class |
GenericTypeDescription.LazyProjection.OfLoadedSuperType
A lazy projection of a generic super type.
|
static class |
GenericTypeDescription.LazyProjection.OfPotentiallyRawType
A lazy projection of potentially raw types.
|
protected static class |
GenericTypeDescription.Visitor.Substitutor.ForDetachment.DetachedTypeVariable
A description of a detached type variable.
|
protected static class |
GenericTypeList.ForDetachedTypes.OfTypeVariable.LazyTypeVariable
A lazy type variable.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodTransformer.Simple.TransformedMethod
The transformed method.
|
protected class |
MethodTransformer.Simple.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.
|
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.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 dots 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.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 GenericTypeDescription> |
ElementMatchers.isVariable(ElementMatcher<? super NamedElement> matcher)
Matches a type variable with the given name.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypePool.LazyTypeDescription
A type description that looks up any referenced
ByteCodeElement or
AnnotationDescription by querying a type pool at lookup time. |
protected class |
TypePool.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType
A generic type description that represents a parameterized type without an enclosing generic owner type.
|
protected class |
TypePool.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType
A lazy description of a parameterized type with an owner type.
|
protected class |
TypePool.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable
A type description that represents a type variable with bounds that are resolved lazily.
|
Copyright © 2014–2015. All rights reserved.