protected static class TypePool.Default.LazyTypeDescription.LazyTypeList extends TypeList.AbstractBase
TypePool.Default.WithLazyResolution.LazyTypeDescription
s.TypeList.AbstractBase, TypeList.Empty, TypeList.Explicit, TypeList.ForLoadedTypes, TypeList.Generic
Modifier and Type | Field and Description |
---|---|
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.
|
NO_INTERFACES
Modifier | Constructor and Description |
---|---|
protected |
LazyTypeList(TypePool typePool,
java.util.List<java.lang.String> descriptors)
Creates a list of lazy type descriptions.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
get(int index) |
int |
getStackSize()
Returns the sum of the size of all types contained in this list.
|
int |
size() |
java.lang.String[] |
toInternalNames()
Returns a list of internal names of all types represented by this list.
|
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<java.lang.String> descriptors
protected LazyTypeList(TypePool typePool, java.util.List<java.lang.String> descriptors)
typePool
- The type pool to use for locating types.descriptors
- A list of type descriptors that this list represents.public TypeDescription get(int index)
get
in interface java.util.List<TypeDescription>
get
in class java.util.AbstractList<TypeDescription>
public int size()
size
in interface java.util.Collection<TypeDescription>
size
in interface java.util.List<TypeDescription>
size
in class java.util.AbstractCollection<TypeDescription>
public java.lang.String[] toInternalNames()
toInternalNames
in interface TypeList
toInternalNames
in class TypeList.AbstractBase
null
if the list is empty.public int getStackSize()
getStackSize
in interface TypeList
getStackSize
in class TypeList.AbstractBase