Class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList
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.pool.TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList
- All Implemented Interfaces:
Iterable<TypeDescription.Generic>, Collection<TypeDescription.Generic>, List<TypeDescription.Generic>, SequencedCollection<TypeDescription.Generic>, TypeList.Generic, FilterableList<TypeDescription.Generic, TypeList.Generic>
- Enclosing class:
TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType
protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList
extends TypeList.Generic.AbstractBase
A generic type list representing raw types.
-
Nested Class Summary
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 TypeFieldDescriptionA mapping of the represented types' type annotation tokens by their indices.A list of type descriptors that this list represents.private final TypePoolThe type pool to use for locating types.Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLazyRawAnnotatedTypeList(TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> descriptors) Creates a generic type list only representing raw types. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of the generic types' erasures.Returns a list of the generic types' raw types.get(int index) intReturns the sum of the size of all types contained in this list.protected static TypeList.Genericof(TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> descriptors) Creates generic type list only representing raw types.intsize()Methods inherited from class TypeList.Generic.AbstractBase
accept, asTokenList, 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
-
typePool
The type pool to use for locating types. -
annotationTokens
-
descriptors
-
-
Constructor Details
-
LazyRawAnnotatedTypeList
protected LazyRawAnnotatedTypeList(TypePool typePool, Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> descriptors) Creates a generic type list only representing raw types.- Parameters:
typePool- The type pool to use for locating types.annotationTokens- A mapping of the represented types' type annotation tokens by their indices.descriptors- A list of type descriptors that this list represents.
-
-
Method Details
-
of
protected static TypeList.Generic of(TypePool typePool, @MaybeNull Map<Integer, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, List<String> descriptors) Creates generic type list only representing raw types.- Parameters:
typePool- The type pool to use for locating types.annotationTokens- A mapping of the represented types' type annotation tokens by their indices ornullif no type annotations are defined for any type.descriptors- A list of type descriptors that this list represents.- Returns:
- A generic type list representing the raw types this list represents.
-
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>
-
asErasures
Returns a list of the generic types' erasures.- Specified by:
asErasuresin interfaceTypeList.Generic- Overrides:
asErasuresin classTypeList.Generic.AbstractBase- Returns:
- A list of the generic types' erasures.
-
asRawTypes
Returns a list of the generic types' raw types.- Specified by:
asRawTypesin interfaceTypeList.Generic- Overrides:
asRawTypesin classTypeList.Generic.AbstractBase- Returns:
- A list of the generic types' raw types.
-
getStackSize
public int getStackSize()Returns the sum of the size of all types contained in this list.- Specified by:
getStackSizein interfaceTypeList.Generic- Overrides:
getStackSizein classTypeList.Generic.AbstractBase- Returns:
- The sum of the size of all types contained in this list.
-