Package net.bytebuddy.description.type
Class TypeList.Generic.ForDetachedTypes.OfTypeVariables
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.bytebuddy.matcher.FilterableList.AbstractBase<TypeDescription.Generic,TypeList.Generic>
-
- net.bytebuddy.description.type.TypeList.Generic.AbstractBase
-
- net.bytebuddy.description.type.TypeList.Generic.ForDetachedTypes.OfTypeVariables
-
- All Implemented Interfaces:
java.lang.Iterable<TypeDescription.Generic>,java.util.Collection<TypeDescription.Generic>,java.util.List<TypeDescription.Generic>,TypeList.Generic,FilterableList<TypeDescription.Generic,TypeList.Generic>
- Enclosing class:
- TypeList.Generic.ForDetachedTypes
public static class TypeList.Generic.ForDetachedTypes.OfTypeVariables extends TypeList.Generic.AbstractBase
A list of attached type variables represented by a list of type variable tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariableA wrapper for representing a type variable in its attached state.-
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.FilterableList
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>, FilterableList.Empty<T,S extends FilterableList<T,S>>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.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
Fields Modifier and Type Field Description private java.util.List<? extends TypeVariableToken>detachedTypeVariablesA token representing the type variable in its detached state.private TypeVariableSourcetypeVariableSourceThe type variable's source.private TypeDescription.Generic.Visitor<? extends TypeDescription.Generic>visitorA visitor for attaching the type variable's bounds.
-
Constructor Summary
Constructors Constructor Description OfTypeVariables(TypeVariableSource typeVariableSource, java.util.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDescription.Genericget(int index)intsize()-
Methods inherited from class net.bytebuddy.description.type.TypeList.Generic.AbstractBase
accept, asErasures, asRawTypes, asTokenList, getStackSize, wrap
-
Methods inherited from class net.bytebuddy.matcher.FilterableList.AbstractBase
filter, getOnly, subList
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Field Detail
-
typeVariableSource
private final TypeVariableSource typeVariableSource
The type variable's source.
-
detachedTypeVariables
private final java.util.List<? extends TypeVariableToken> detachedTypeVariables
A token representing the type variable in its detached state.
-
visitor
private final TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor
A visitor for attaching the type variable's bounds.
-
-
Constructor Detail
-
OfTypeVariables
public OfTypeVariables(TypeVariableSource typeVariableSource, java.util.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.- Parameters:
typeVariableSource- The type variable's source.detachedTypeVariables- A token representing the type variable in its detached state.visitor- A visitor for attaching the type variable's bounds.
-
-
Method Detail
-
get
public TypeDescription.Generic get(int index)
- Specified by:
getin interfacejava.util.List<TypeDescription.Generic>- Specified by:
getin classjava.util.AbstractList<TypeDescription.Generic>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<TypeDescription.Generic>- Specified by:
sizein interfacejava.util.List<TypeDescription.Generic>- Specified by:
sizein classjava.util.AbstractCollection<TypeDescription.Generic>
-
-