public static class TypeList.ForLoadedTypes extends TypeList.AbstractBase
TypeList.AbstractBase, TypeList.Empty, TypeList.Explicit, TypeList.ForLoadedTypes, TypeList.Generic
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends java.lang.Class<?>> |
types
The loaded types this type list represents.
|
NO_INTERFACES
Constructor and Description |
---|
ForLoadedTypes(java.lang.Class<?>... type)
Creates a new type list for an array of loaded types.
|
ForLoadedTypes(java.util.List<? extends java.lang.Class<?>> types)
Creates a new type list for an array of loaded types.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
get(int index) |
int |
size() |
java.lang.String[] |
toInternalNames()
Returns a list of internal names of all types represented by this list.
|
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 java.util.List<? extends java.lang.Class<?>> types
public ForLoadedTypes(java.lang.Class<?>... type)
type
- The types to be represented by this list.public ForLoadedTypes(java.util.List<? extends java.lang.Class<?>> types)
types
- The types to be represented by this list.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.