Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.TokenizedGenericType.TokenList
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.pool.TypePool.Default.LazyTypeDescription.TokenizedGenericType.TokenList
- All Implemented Interfaces:
Iterable<TypeDescription.Generic>
,Collection<TypeDescription.Generic>
,List<TypeDescription.Generic>
,TypeList.Generic
,FilterableList<TypeDescription.Generic,
TypeList.Generic>
- Enclosing class:
- TypePool.Default.LazyTypeDescription.TokenizedGenericType
protected static class TypePool.Default.LazyTypeDescription.TokenizedGenericType.TokenList
extends TypeList.Generic.AbstractBase
A tokenized list of generic types.
-
Nested Class Summary
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
FieldsModifier and TypeFieldDescriptionA mapping of each type's type annotation tokens by its index.private final List<TypePool.Default.LazyTypeDescription.GenericTypeToken>
Type tokens that describe the represented generic types.A list of the generic types' erasures.private final TypePool
The type pool to use for locating types.private final TypeVariableSource
The closest type variable source of this generic type's declaration context.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
TokenList
(TypePool typePool, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> rawTypeDescriptors, TypeVariableSource typeVariableSource) Creates a list of tokenized generic types. -
Method Summary
Methods inherited from class net.bytebuddy.description.type.TypeList.Generic.AbstractBase
accept, 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 java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
-
Field Details
-
typePool
The type pool to use for locating types. -
genericTypeTokens
Type tokens that describe the represented generic types. -
rawTypeDescriptors
A list of the generic types' erasures. -
typeVariableSource
The closest type variable source of this generic type's declaration context. -
annotationTokens
private final Map<Integer,Map<String, annotationTokensList<TypePool.Default.LazyTypeDescription.AnnotationToken>>> A mapping of each type's type annotation tokens by its index.
-
-
Constructor Details
-
TokenList
private TokenList(TypePool typePool, List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> rawTypeDescriptors, TypeVariableSource typeVariableSource) Creates a list of tokenized generic types.- Parameters:
typePool
- The type pool to use for locating type descriptions.genericTypeTokens
- A list of tokens describing the represented generic types.annotationTokens
- A mapping of each type's type annotation tokens by its index.rawTypeDescriptors
- A list of the generic types' erasures.typeVariableSource
- The closest type variable source of this generic type's declaration context.
-
-
Method Details
-
get
- Specified by:
get
in interfaceList<TypeDescription.Generic>
- Specified by:
get
in classAbstractList<TypeDescription.Generic>
-
size
public int size()- Specified by:
size
in interfaceCollection<TypeDescription.Generic>
- Specified by:
size
in interfaceList<TypeDescription.Generic>
- Specified by:
size
in classAbstractCollection<TypeDescription.Generic>
-
asErasures
Returns a list of the generic types' erasures.- Specified by:
asErasures
in interfaceTypeList.Generic
- Overrides:
asErasures
in classTypeList.Generic.AbstractBase
- Returns:
- A list of the generic types' erasures.
-