protected static class TypePool.Default.LazyTypeDescription.TokenizedGenericType.TokenList 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 each type's type annotation tokens by its index.
|
private java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> |
genericTypeTokens
Type tokens that describe the represented generic types.
|
private java.util.List<java.lang.String> |
rawTypeDescriptors
A list of the generic types' erasures.
|
private TypePool |
typePool
The type pool to use for locating types.
|
private TypeVariableSource |
typeVariableSource
The closest type variable source of this generic type's declaration context.
|
Modifier | Constructor and Description |
---|---|
private |
TokenList(TypePool typePool,
java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens,
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> rawTypeDescriptors,
TypeVariableSource typeVariableSource)
Creates a list of tokenized generic types.
|
Modifier and Type | Method and Description |
---|---|
TypeList |
asErasures()
Returns a list of the generic types' erasures.
|
TypeDescription.Generic |
get(int index) |
int |
size() |
accept, asRawTypes, asTokenList, getStackSize, 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.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens
private final java.util.List<java.lang.String> rawTypeDescriptors
private final TypeVariableSource typeVariableSource
private final java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> annotationTokens
private TokenList(TypePool typePool, java.util.List<TypePool.Default.LazyTypeDescription.GenericTypeToken> genericTypeTokens, 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> rawTypeDescriptors, TypeVariableSource typeVariableSource)
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.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