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.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.implementation.attribute |
All types and classes in this package are responsible for writing attributes for a given Java byte code element,
i.e. fields, types and byte code methods.
|
Modifier and Type | Method and Description |
---|---|
T |
ByteCodeElement.Token.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms the types represented by this token by applying the given visitor to them.
|
ByteCodeElement.Token.TokenList<S> |
ByteCodeElement.Token.TokenList.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms all tokens that are represented by this list.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.Token |
FieldDescription.Token.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
Constructor and Description |
---|
TypeSubstituting(TypeDescription.Generic declaringType,
FieldDescription fieldDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a field description with a substituted field type.
|
TypeSubstituting(TypeDescription.Generic declaringType,
List<? extends FieldDescription> fieldDescriptions,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting field list.
|
Modifier and Type | Field and Description |
---|---|
protected TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> |
MethodList.TypeSubstituting.visitor
The visitor to apply to each method description before returning it.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescription.Token |
ParameterDescription.Token.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
MethodDescription.Token |
MethodDescription.Token.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
Constructor and Description |
---|
TypeSubstituting(MethodDescription.InGenericShape declaringMethod,
List<? extends ParameterDescription> parameterDescriptions,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting parameter list.
|
TypeSubstituting(MethodDescription.InGenericShape declaringMethod,
ParameterDescription parameterDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting parameter.
|
TypeSubstituting(TypeDescription.Generic declaringType,
List<? extends MethodDescription> methodDescriptions,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting method list.
|
TypeSubstituting(TypeDescription.Generic declaringType,
MethodDescription methodDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a method description with substituted method types.
|
Modifier and Type | Class and Description |
---|---|
static class |
TypeDescription.Generic.Visitor.AnnotationStripper
A visitor that strips all type annotations of all types.
|
static class |
TypeDescription.Generic.Visitor.Assigner
A visitor that determines the direct assignability of a type to another generic type.
|
static class |
TypeDescription.Generic.Visitor.Assigner.Dispatcher.AbstractBase
An abstract base implementation of a dispatcher that forwards the decision to a visitor implementation.
|
static class |
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForGenericArray
A dispatcher for checking the assignability of a generic array type.
|
static class |
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForNonGenericType
A dispatcher for checking the assignability of a non-generic type.
|
static class |
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType
A dispatcher for checking the assignability of a parameterized type.
|
protected static class |
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForParameterizedType.ParameterAssigner
An assigner for a parameter of a parameterized type.
|
static class |
TypeDescription.Generic.Visitor.Assigner.Dispatcher.ForTypeVariable
A dispatcher for checking the assignability of a type variable.
|
static class |
TypeDescription.Generic.Visitor.ForRawType
A visitor that transforms any type into a raw type if declaring type is generified.
|
static class |
TypeDescription.Generic.Visitor.ForSignatureVisitor
Visits a generic type and appends the discovered type to the supplied signature visitor.
|
protected static class |
TypeDescription.Generic.Visitor.ForSignatureVisitor.OfTypeArgument
Visits a parameter while visiting a generic type for delegating discoveries to a signature visitor.
|
static class |
TypeDescription.Generic.Visitor.NoOp
A non-operational generic type visitor.
|
static class |
TypeDescription.Generic.Visitor.Reducing
A visitor that reduces a detached generic type to its erasure.
|
static class |
TypeDescription.Generic.Visitor.Reifying
A visitor that reifies type descriptions if they represent raw types.
|
static class |
TypeDescription.Generic.Visitor.Substitutor
An abstract implementation of a visitor that substitutes generic types by replacing (nested)
type variables and/or non-generic component types.
|
static class |
TypeDescription.Generic.Visitor.Substitutor.ForAttachment
A substitutor that attaches type variables to a type variable source and replaces representations of
TargetType with a given declaring type. |
static class |
TypeDescription.Generic.Visitor.Substitutor.ForDetachment
A visitor for detaching a type from its declaration context by detaching type variables.
|
static class |
TypeDescription.Generic.Visitor.Substitutor.ForTokenNormalization
A substitutor that normalizes a token to represent all
TargetType by a given type and that symbolizes all type variables. |
static class |
TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding
A visitor for binding type variables to their values.
|
static class |
TypeDescription.Generic.Visitor.Substitutor.WithoutTypeSubstitution
A
TypeDescription.Generic.Visitor.Substitutor that only substitutes type variables but fully preserves non-generic type definitions. |
static class |
TypeDescription.Generic.Visitor.TypeErasing
A visitor that returns the erasure of any visited type.
|
static class |
TypeDescription.Generic.Visitor.Validator
A validator for Java types that are defined for a specified type use within a Java class file.
|
static class |
TypeDescription.Generic.Visitor.Validator.ForTypeAnnotations
A type validator for checking type annotations.
|
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Visitor<TypeDescription.Generic> |
TypeDescription.Generic.Visitor.Substitutor.ForDetachment.of(TypeDefinition typeDefinition)
Returns a new detachment visitor that detaches any type matching the supplied type description.
|
Modifier and Type | Method and Description |
---|---|
TypeVariableToken |
TypeVariableToken.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
TypeList.Generic |
TypeList.Generic.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms the generic types by applying the supplied visitor to each of them.
|
TypeList.Generic |
TypeList.Generic.AbstractBase.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
TypeList.Generic |
TypeList.Generic.Empty.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
<T> T |
TypeDescription.Generic.accept(TypeDescription.Generic.Visitor<T> visitor)
Applies a visitor to this generic type description.
|
<T> T |
TypeDescription.Generic.OfNonGenericType.accept(TypeDescription.Generic.Visitor<T> visitor) |
<T> T |
TypeDescription.Generic.OfGenericArray.accept(TypeDescription.Generic.Visitor<T> visitor) |
<T> T |
TypeDescription.Generic.OfWildcardType.accept(TypeDescription.Generic.Visitor<T> visitor) |
<T> T |
TypeDescription.Generic.OfParameterizedType.accept(TypeDescription.Generic.Visitor<T> visitor) |
<T> T |
TypeDescription.Generic.OfTypeVariable.accept(TypeDescription.Generic.Visitor<T> visitor) |
<T> T |
TypeDescription.Generic.OfTypeVariable.Symbolic.accept(TypeDescription.Generic.Visitor<T> visitor) |
<T> T |
TypeDescription.Generic.LazyProjection.accept(TypeDescription.Generic.Visitor<T> visitor) |
Constructor and Description |
---|
AttachedTypeVariable(TypeVariableSource typeVariableSource,
TypeVariableToken typeVariableToken,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new attached type variable.
|
ForDetachedTypes(List<? extends TypeDescription.Generic> detachedTypes,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a list of detached types that are attached on reception.
|
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.
|
WithResolvedErasure(List<? extends TypeDescription.Generic> detachedTypes,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a list of generic type descriptions that are resolved lazily, i.e. type variables are not resolved
when computing an erausre.
|
WithResolvedErasure(TypeDescription.Generic delegate,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a lazy projection with a resolved erasure that retains the delegates type annotations.
|
WithResolvedErasure(TypeDescription.Generic delegate,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor,
AnnotationSource annotationSource)
Creates a lazy projection with a resolved erasure.
|
Modifier and Type | Class and Description |
---|---|
protected class |
Transformer.ForMethod.TransformedMethod.AttachmentVisitor
A visitor that attaches type variables based on the transformed method's type variables and the instrumented type.
|
Modifier and Type | Method and Description |
---|---|
static <S> MethodGraph.Compiler |
MethodGraph.Compiler.Default.of(MethodGraph.Compiler.Default.Harmonizer<S> harmonizer,
MethodGraph.Compiler.Default.Merger merger,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a default compiler using the given harmonizer and merger.
|
Constructor and Description |
---|
Default(MethodGraph.Compiler.Default.Harmonizer<T> harmonizer,
MethodGraph.Compiler.Default.Merger merger,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new default method graph compiler.
|
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationAppender.ForTypeAnnotations
A type visitor that visits all type annotations of a generic type and writes any discovered annotation to a
supplied
AnnotationAppender . |
Modifier and Type | Method and Description |
---|---|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofExceptionType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int index)
Creates a type annotation appender for type annotations of a method's exception type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofFieldType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for type annotations of a field's type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofInterfaceType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int index)
Creates a type annotation appender for type annotations of an interface type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofMethodParameterType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter,
int index)
Creates a type annotation appender for type annotations of a method's parameter type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofMethodReturnType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for type annotations of a method's return type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofReceiverType(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for type annotations of a method's receiver type.
|
static TypeDescription.Generic.Visitor<AnnotationAppender> |
AnnotationAppender.ForTypeAnnotations.ofSuperClass(AnnotationAppender annotationAppender,
AnnotationValueFilter annotationValueFilter)
Creates a type annotation appender for a type annotations of a super class type.
|
Copyright © 2014–2017. All rights reserved.