| 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.
|
| Modifier and Type | Method and Description |
|---|---|
T |
ByteCodeElement.Token.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Transforms the types represented by this token by applying the given visitor to them.
|
ByteCodeElement.Token.TokenList<S> |
ByteCodeElement.Token.TokenList.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Transforms all tokens that are represented by this list.
|
| Modifier and Type | Method and Description |
|---|---|
FieldDescription.Token |
FieldDescription.Token.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
| Constructor and Description |
|---|
TypeSubstituting(GenericTypeDescription declaringType,
FieldDescription fieldDescription,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a field description with a substituted field type.
|
TypeSubstituting(GenericTypeDescription declaringType,
List<? extends FieldDescription> fieldDescriptions,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a new type substituting field list.
|
| Modifier and Type | Class and Description |
|---|---|
protected class |
MethodDescription.TypeSubstituting.VariableRetainingDelegator
A visitor that only escalates to the actual visitor if a non-generic type is discovered or if a type variable
that is not declared by the represented method is discovered.
|
| Modifier and Type | Method and Description |
|---|---|
ParameterDescription.Token |
ParameterDescription.Token.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
MethodDescription.Token |
MethodDescription.Token.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
| Constructor and Description |
|---|
TypeSubstituting(GenericTypeDescription declaringType,
List<? extends MethodDescription> methodDescriptions,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a new type substituting method list.
|
TypeSubstituting(GenericTypeDescription declaringType,
MethodDescription methodDescription,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a method description with substituted method types.
|
TypeSubstituting(MethodDescription declaringMethod,
List<? extends ParameterDescription> parameterDescriptions,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a new type substituting parameter list.
|
TypeSubstituting(MethodDescription declaringMethod,
ParameterDescription parameterDescription,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a new type substituting parameter.
|
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypeDescription.AbstractBase.RawTypeWrapper
A visitor that represents all
TypeDescription instances as raw generic types. |
| Modifier and Type | Method and Description |
|---|---|
GenericTypeList |
TypeList.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Transforms the types of this list by applying the supplied visitor.
|
GenericTypeList |
TypeList.AbstractBase.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
GenericTypeList |
TypeList.Empty.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
<T> T |
TypeDescription.AbstractBase.accept(GenericTypeDescription.Visitor<T> visitor) |
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericTypeDescription.Visitor.ForSignatureVisitor
Visits a generic type and appends the discovered type to the supplied signature visitor.
|
protected static class |
GenericTypeDescription.Visitor.ForSignatureVisitor.OfParameter
Visits a parameter while visiting a generic type for delegating discoveries to a signature visitor.
|
static class |
GenericTypeDescription.Visitor.NoOp
A non-operational generic type visitor.
|
static class |
GenericTypeDescription.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 |
GenericTypeDescription.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 |
GenericTypeDescription.Visitor.Substitutor.ForDetachment
A visitor for detaching a type from its declaration context by detaching type variables.
|
static class |
GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBinding
A visitor for binding type variables to their values.
|
static class |
GenericTypeDescription.Visitor.TypeErasing
A visitor that returns the erasure of any visited type.
|
static class |
GenericTypeDescription.Visitor.TypeVariableErasing
A visitor for erasing type variables on the most fine-grained level.
|
protected static class |
GenericTypeDescription.Visitor.TypeVariableErasing.PartialErasureReviser
A visitor for checking if a type can be erased partially when defined as a parameter of a parameterized type.
|
| Modifier and Type | Method and Description |
|---|---|
static GenericTypeDescription.Visitor<GenericTypeDescription> |
GenericTypeDescription.Visitor.Substitutor.ForTypeVariableBinding.bind(GenericTypeDescription typeDescription)
Creates a visitor that binds the variables of the given generic type by the generic type's values.
|
| Modifier and Type | Method and Description |
|---|---|
GenericTypeList |
GenericTypeList.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Transforms the generic types by applying the supplied visitor to each of them.
|
GenericTypeList |
GenericTypeList.AbstractBase.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
GenericTypeList |
GenericTypeList.Empty.accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor) |
<T> T |
GenericTypeDescription.accept(GenericTypeDescription.Visitor<T> visitor)
Applies a visitor to this generic type description.
|
<T> T |
GenericTypeDescription.ForNonGenericType.accept(GenericTypeDescription.Visitor<T> visitor) |
<T> T |
GenericTypeDescription.ForGenericArray.accept(GenericTypeDescription.Visitor<T> visitor) |
<T> T |
GenericTypeDescription.ForWildcardType.accept(GenericTypeDescription.Visitor<T> visitor) |
<T> T |
GenericTypeDescription.ForParameterizedType.accept(GenericTypeDescription.Visitor<T> visitor) |
<T> T |
GenericTypeDescription.ForTypeVariable.accept(GenericTypeDescription.Visitor<T> visitor) |
<T> T |
GenericTypeDescription.LazyProjection.accept(GenericTypeDescription.Visitor<T> visitor) |
static GenericTypeDescription |
GenericTypeList.ForDetachedTypes.OfTypeVariable.LazyTypeVariable.of(GenericTypeDescription detachedVariable,
TypeVariableSource typeVariableSource,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a lazy type variable representation.
|
| Constructor and Description |
|---|
ForDetachedTypes(List<? extends GenericTypeDescription> detachedTypes,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a list of detached types that are attached on reception.
|
LazyTypeVariable(String symbol,
TypeVariableSource typeVariableSource,
List<? extends GenericTypeDescription> detachedBounds,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Creates a new lazy type variable.
|
OfTypeVariable(TypeVariableSource typeVariableSource,
GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor,
List<? extends GenericTypeDescription> detachedTypes)
Creates a new list of attached type variables.
|
Copyright © 2014–2015. All rights reserved.