Class TypeList.Generic.ForDetachedTypes
java.lang.Object
java.util.AbstractCollection<TypeDescription.Generic>
java.util.AbstractList<TypeDescription.Generic>
net.bytebuddy.matcher.FilterableList.AbstractBase<TypeDescription.Generic, TypeList.Generic>
net.bytebuddy.description.type.TypeList.Generic.AbstractBase
net.bytebuddy.description.type.TypeList.Generic.ForDetachedTypes
- All Implemented Interfaces:
Iterable<TypeDescription.Generic>, Collection<TypeDescription.Generic>, List<TypeDescription.Generic>, SequencedCollection<TypeDescription.Generic>, TypeList.Generic, FilterableList<TypeDescription.Generic, TypeList.Generic>
- Enclosing interface:
TypeList.Generic
A list of detached types that are attached on reception.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA list of attached type variables represented by a list of type variable tokens.static classA list of detached types that are attached on reception but not when computing an erasure.Nested classes/interfaces inherited from interface FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> Nested classes/interfaces inherited from interface TypeList.Generic
TypeList.Generic.AbstractBase, TypeList.Generic.Empty, TypeList.Generic.Explicit, TypeList.Generic.ForDetachedTypes, TypeList.Generic.ForLoadedTypes, TypeList.Generic.OfConstructorExceptionTypes, TypeList.Generic.OfLoadedInterfaceTypes, TypeList.Generic.OfMethodExceptionTypes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<? extends TypeDescription.Generic> The detached types this list represents.private final TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> The visitor to use for attaching the detached types.Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionForDetachedTypes(List<? extends TypeDescription.Generic> detachedTypes, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a list of detached types that are attached on reception. -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeList.Genericattach(FieldDescription fieldDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided field.static TypeList.Genericattach(MethodDescription methodDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided method.static TypeList.Genericattach(ParameterDescription parameterDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided parameter.static TypeList.GenericattachVariables(MethodDescription methodDescription, List<? extends TypeVariableToken> detachedTypeVariables) Creates a list of type variables that are attached to the provided method.static TypeList.GenericattachVariables(TypeDescription typeDescription, List<? extends TypeVariableToken> detachedTypeVariables) Creates a list of type variables that are attached to the provided type.get(int index) intsize()Methods inherited from class TypeList.Generic.AbstractBase
accept, asErasures, asRawTypes, asTokenList, getStackSize, wrapMethods inherited from class FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface FilterableList
filter, getOnly, subListMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, toArray, toArray
-
Field Details
-
detachedTypes
The detached types this list represents. -
visitor
The visitor to use for attaching the detached types.
-
-
Constructor Details
-
ForDetachedTypes
public ForDetachedTypes(List<? extends TypeDescription.Generic> detachedTypes, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) Creates a list of detached types that are attached on reception.- Parameters:
detachedTypes- The detached types this list represents.visitor- The visitor to use for attaching the detached types.
-
-
Method Details
-
attachVariables
public static TypeList.Generic attachVariables(TypeDescription typeDescription, List<? extends TypeVariableToken> detachedTypeVariables) Creates a list of type variables that are attached to the provided type.- Parameters:
typeDescription- The type to which the type variables are to be attached to.detachedTypeVariables- A mapping of type variable symbols to their detached type variable bounds.- Returns:
- A type list representing the symbolic type variables in their attached state to the given type description.
-
attach
public static TypeList.Generic attach(FieldDescription fieldDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided field.- Parameters:
fieldDescription- The field to which the detached variables are attached to.detachedTypes- The detached types.- Returns:
- A type list representing the detached types being attached to the provided field description.
-
attach
public static TypeList.Generic attach(MethodDescription methodDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided method.- Parameters:
methodDescription- The method to which the detached variables are attached to.detachedTypes- The detached types.- Returns:
- A type list representing the detached types being attached to the provided method description.
-
attachVariables
public static TypeList.Generic attachVariables(MethodDescription methodDescription, List<? extends TypeVariableToken> detachedTypeVariables) Creates a list of type variables that are attached to the provided method.- Parameters:
methodDescription- The method to which the type variables are to be attached to.detachedTypeVariables- A mapping of type variable symbols to their detached type variable bounds.- Returns:
- A type list representing the symbolic type variables in their attached state to the given method description.
-
attach
public static TypeList.Generic attach(ParameterDescription parameterDescription, List<? extends TypeDescription.Generic> detachedTypes) Creates a list of types that are attached to the provided parameter.- Parameters:
parameterDescription- The parameter to which the detached variables are attached to.detachedTypes- The detached types.- Returns:
- A type list representing the detached types being attached to the provided parameter description.
-
get
- Specified by:
getin interfaceList<TypeDescription.Generic>- Specified by:
getin classAbstractList<TypeDescription.Generic>
-
size
public int size()- Specified by:
sizein interfaceCollection<TypeDescription.Generic>- Specified by:
sizein interfaceList<TypeDescription.Generic>- Specified by:
sizein classAbstractCollection<TypeDescription.Generic>
-