| 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) |
TypePool |
AgentBuilder.BinaryLocator.WithTypePoolCache.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.AbstractBase.Hierarchical
Implements a hierarchical view of type pools, similarly to class loader hierarchies.
|
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.Empty
An empty type pool that cannot describe any type.
|
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.of(ClassLoader classLoader)
Returns a type pool for the provided class loader.
|
static TypePool |
TypePool.Default.ClassLoading.of(ClassLoader classLoader)
Returns a class loading type pool that does not attempt to parse a class file but immediately 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 precomputed. |
| Modifier and Type | Method and Description |
|---|---|
MethodDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
MethodDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.SelfDeclared.getEnclosingMethod(TypePool typePool) |
MethodDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.DeclaredInType.getEnclosingMethod(TypePool typePool) |
MethodDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.DeclaredInMethod.getEnclosingMethod(TypePool typePool) |
TypeDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
TypeDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.SelfDeclared.getEnclosingType(TypePool typePool) |
TypeDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.DeclaredInType.getEnclosingType(TypePool typePool) |
TypeDescription |
TypePool.Default.LazyTypeDescription.DeclarationContext.DeclaredInMethod.getEnclosingType(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.isPrimaryBound(TypePool typePool)
Determines if a generic type tokens represents a primary bound of a type variable.
|
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.isPrimaryBound(TypePool typePool) |
boolean |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.isPrimaryBound(TypePool typePool) |
protected static TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList.of(TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
List<String> descriptors)
Creates generic type list only representing raw types.
|
protected static TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.of(TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
String descriptor)
Creates a new raw annotated type.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveExceptionTypes(List<String> exceptionTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField)
Resolves the field type of the represented field.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForField.Tokenized.resolveFieldType(String fieldTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
FieldDescription.InDefinedShape definingField) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType)
Resolves the generic interface types of the represented type.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveInterfaceTypes(List<String> interfaceTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
TypeDescription definingType) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the generic parameter types of the represented method.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveParameterTypes(List<String> parameterTypeDescriptors,
TypePool typePool,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod)
Resolves the return type of the represented method.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveReturnType(String returnTypeDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
MethodDescription.InDefinedShape definingMethod) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType)
Resolves the generic super type of the represented type.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveSuperClass(String superClassDescriptor,
TypePool typePool,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
TypeDescription definingType) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens)
Resolves the type variables of the represented element.
|
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Malformed.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType.Tokenized.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) |
TypeList.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod.Tokenized.resolveTypeVariables(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens,
Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> boundAnnotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.OfFormalTypeVariable.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens)
Transforms this token into a generic type representation.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> boundaryAnnotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens)
Transforms this token into a generic type representation.
|
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForRawType.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
TypeDescription.Generic |
TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.toGenericType(TypePool typePool,
TypeVariableSource typeVariableSource,
String typePath,
Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> annotationTokens) |
Copyright © 2014–2016. All rights reserved.