| Package | Description |
|---|---|
| net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
| 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.pool |
Classes of this package allow for the creating
TypeDescriptions without
loading any classes. |
| Modifier and Type | Method and Description |
|---|---|
TypePool |
AgentBuilder.BinaryLocator.typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader)
Creates a type pool for a given class file locator.
|
TypePool |
AgentBuilder.BinaryLocator.Default.typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader) |
TypePool |
AgentBuilder.BinaryLocator.ClassLoading.typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader) |
| Constructor and Description |
|---|
FrameComputingClassWriter(ClassReader classReader,
int flags,
TypePool typePool)
Creates a new frame computing class writer.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
TypePool.AbstractBase
A base implementation of a
TypePool that is managing a cache provider and
that handles the description of array and primitive types. |
static class |
TypePool.Default
A default implementation of a
TypePool that models binary data in the
Java byte code format into a TypeDescription. |
static class |
TypePool.Default.ClassLoading
A class file locator that loads classes and describes the loaded classes as a
TypeDescription.ForLoadedType
if a type cannot be located as its class file. |
static class |
TypePool.Default.Precomputed
A class file locator that maintains a map of precomputed classes which are returned as a resolution in case that a type name is known.
|
static class |
TypePool.LazyFacade
A lazy facade of a type pool that delegates any lookups to another type pool only if another value than the type's name is looked up.
|
| Modifier and Type | Method and Description |
|---|---|
static TypePool |
TypePool.Default.of(ClassFileLocator classFileLocator)
Creates a default
TypePool that looks up data by querying the supplied class
file locator. |
static TypePool |
TypePool.Default.ClassLoading.of(ClassFileLocator classFileLocator,
ClassLoader classLoader)
Returns a class loading type pool that uses a simple cache.
|
static TypePool |
TypePool.Default.ClassLoading.of(ClassLoader classLoader)
Returns a class loading type pool that does not attempt to parse a class file but immediatly falls back to loading one.
|
static TypePool |
TypePool.Default.ofClassPath()
Creates a default
TypePool that looks up data by querying the system class
loader. |
static TypePool |
TypePool.Default.Precomputed.withObjectType(TypePool.CacheProvider cacheProvider,
ClassFileLocator classFileLocator,
TypePool.Default.ReaderMode readerMode)
Creates a new precomputed type pool with the
Object type being precomuted. |
| Modifier and Type | Method and Description |
|---|---|
MethodDescription |
TypePool.LazyTypeDescription.DeclarationContext.getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
MethodDescription |
TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared.getEnclosingMethod(TypePool typePool) |
MethodDescription |
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInType.getEnclosingMethod(TypePool typePool) |
MethodDescription |
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInMethod.getEnclosingMethod(TypePool typePool) |
TypeDescription |
TypePool.LazyTypeDescription.DeclarationContext.getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
TypeDescription |
TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared.getEnclosingType(TypePool typePool) |
TypeDescription |
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInType.getEnclosingType(TypePool typePool) |
TypeDescription |
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInMethod.getEnclosingType(TypePool typePool) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod)
Resolves the generic parameter types of the represented method.
|
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
FieldDescription definingField) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
FieldDescription definingField) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForField.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
FieldDescription definingField)
Resolves the field type of the represented field.
|
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForField.Tokenized.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
FieldDescription definingField) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
TypeDescription definingType) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
TypeDescription definingType) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
TypeDescription definingType)
Resolves the generic interface types of the represented type.
|
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
TypeDescription definingType) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod)
Resolves the generic parameter types of the represented method.
|
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
MethodDescription definingMethod)
Resolves the return type of the represented method.
|
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
MethodDescription definingMethod) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveSuperType(String superTypeDescriptor,
TypePool typePool,
TypeDescription definingType) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveSuperType(String superTypeDescriptor,
TypePool typePool,
TypeDescription definingType) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveSuperType(String superTypeDescriptor,
TypePool typePool,
TypeDescription definingType)
Resolves the generic super type of the represented type.
|
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveSuperType(String superTypeDescriptor,
TypePool typePool,
TypeDescription definingType) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource)
Resolves the type variables of the represented element.
|
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeList |
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource)
Transforms this token into a generic type reprsentation.
|
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForRawType.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForTypeVariable.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForGenericArray.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForParameterizedType.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
GenericTypeDescription |
TypePool.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource) |
| Constructor and Description |
|---|
ForAnnotationProperty(TypePool typePool,
String annotationDescriptor)
Creates a new component type locator for an array value.
|
LazyFacade(TypePool typePool)
Creates a lazy facade for a type pool.
|
LazyParameterizedType(TypePool typePool,
TypeVariableSource typeVariableSource)
Creates a lazy description of a parameterized type with an owner type.
|
LazyParameterizedType(TypePool typePool,
TypeVariableSource typeVariableSource)
Creates a new description of a parameterized type.
|
LazyResolution(TypePool typePool,
String name)
Creates a lazy resolution for a lazy facade for a type pool.
|
LazyTypeDescription(TypePool typePool,
int modifiers,
String name,
String superTypeInternalName,
String[] interfaceInternalName,
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType signatureResolution,
TypePool.LazyTypeDescription.DeclarationContext declarationContext,
List<String> declaredTypes,
boolean anonymousType,
List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens,
List<TypePool.LazyTypeDescription.FieldToken> fieldTokens,
List<TypePool.LazyTypeDescription.MethodToken> methodTokens)
Creates a new lazy type description.
|
LazyTypeDescription(TypePool typePool,
String name)
Creates a lazy type description for a lazy facade of a type pool.
|
LazyTypeVariable(TypePool typePool,
TypeVariableSource typeVariableSource)
Creates a lazy type description of a type variables.
|
RawAnnotationValue(TypePool typePool,
TypePool.LazyTypeDescription.AnnotationToken annotationToken)
Creates a new annotation value for a nested annotation.
|
RawEnumerationValue(TypePool typePool,
String descriptor,
String value)
Creates a new enumeration value representation.
|
RawNonPrimitiveArray(TypePool typePool,
TypePool.AbstractBase.RawNonPrimitiveArray.ComponentTypeReference componentTypeReference,
List<AnnotationDescription.AnnotationValue<?,?>> value)
Creates a new array value representation of a complex array.
|
RawTypeValue(TypePool typePool,
Type type)
Represents a type value of an annotation.
|
Copyright © 2014–2015. All rights reserved.