Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList
- 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.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList
-
- 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:
- 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 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.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>
annotationTokens
A mapping of the represented types' type annotation tokens by their indices.private java.util.List<java.lang.String>
descriptors
A list of type descriptors that this list represents.private TypePool
typePool
The type pool to use for locating types.
-
Constructor Summary
Constructors Modifier Constructor Description protected
LazyRawAnnotatedTypeList(TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.List<java.lang.String> descriptors)
Creates a generic type list only representing raw types.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeList
asErasures()
Returns a list of the generic types' erasures.TypeList.Generic
asRawTypes()
Returns a list of the generic types' raw types.TypeDescription.Generic
get(int index)
int
getStackSize()
Returns the sum of the size of all types contained in this list.protected static TypeList.Generic
of(TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.List<java.lang.String> descriptors)
Creates generic type list only representing raw types.int
size()
-
Methods inherited from class net.bytebuddy.description.type.TypeList.Generic.AbstractBase
accept, asTokenList, 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
-
typePool
private final TypePool typePool
The type pool to use for locating types.
-
annotationTokens
private final java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens
A mapping of the represented types' type annotation tokens by their indices.
-
descriptors
private final java.util.List<java.lang.String> descriptors
A list of type descriptors that this list represents.
-
-
Constructor Detail
-
LazyRawAnnotatedTypeList
protected LazyRawAnnotatedTypeList(TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.List<java.lang.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 Detail
-
of
protected static TypeList.Generic of(TypePool typePool, java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens, java.util.List<java.lang.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 ornull
if 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
public TypeDescription.Generic get(int index)
- Specified by:
get
in interfacejava.util.List<TypeDescription.Generic>
- Specified by:
get
in classjava.util.AbstractList<TypeDescription.Generic>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<TypeDescription.Generic>
- Specified by:
size
in interfacejava.util.List<TypeDescription.Generic>
- Specified by:
size
in classjava.util.AbstractCollection<TypeDescription.Generic>
-
asErasures
public TypeList 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.
-
asRawTypes
public TypeList.Generic asRawTypes()
Returns a list of the generic types' raw types.- Specified by:
asRawTypes
in interfaceTypeList.Generic
- Overrides:
asRawTypes
in 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:
getStackSize
in interfaceTypeList.Generic
- Overrides:
getStackSize
in classTypeList.Generic.AbstractBase
- Returns:
- The sum of the size of all types contained in this list.
-
-