protected static class TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList extends TypeList.Generic.AbstractBase
TypeList.Generic.AbstractBase, TypeList.Generic.Empty, TypeList.Generic.Explicit, TypeList.Generic.ForDetachedTypes, TypeList.Generic.ForLoadedTypes, TypeList.Generic.OfConstructorExceptionTypes, TypeList.Generic.OfLoadedInterfaceTypes, TypeList.Generic.OfMethodExceptionTypes
Modifier and Type | Field and 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.
|
Modifier | Constructor and 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.
|
Modifier and Type | Method and 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() |
accept, asTokenList, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
private final TypePool typePool
private final java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens
private final java.util.List<java.lang.String> descriptors
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)
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.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)
typePool
- The type pool to use for locating types.annotationTokens
- A mapping of the represented types' type annotation tokens by their indices or
null
if no type annotations are defined for any type.descriptors
- A list of type descriptors that this list represents.public TypeDescription.Generic get(int index)
get
in interface java.util.List<TypeDescription.Generic>
get
in class java.util.AbstractList<TypeDescription.Generic>
public int size()
size
in interface java.util.Collection<TypeDescription.Generic>
size
in interface java.util.List<TypeDescription.Generic>
size
in class java.util.AbstractCollection<TypeDescription.Generic>
public TypeList asErasures()
asErasures
in interface TypeList.Generic
asErasures
in class TypeList.Generic.AbstractBase
public TypeList.Generic asRawTypes()
asRawTypes
in interface TypeList.Generic
asRawTypes
in class TypeList.Generic.AbstractBase
public int getStackSize()
getStackSize
in interface TypeList.Generic
getStackSize
in class TypeList.Generic.AbstractBase