public static class TypeList.ForLoadedType extends TypeList.AbstractBase
TypeList.AbstractBase, TypeList.Empty, TypeList.Explicit, TypeList.ForLoadedType
modCount
NO_INTERFACES
Constructor and Description |
---|
ForLoadedType(Class<?>... type)
Creates a new type list for an array of loaded types.
|
ForLoadedType(List<? extends Class<?>> types)
Creates a new type list for an array of loaded types.
|
Modifier and Type | Method and Description |
---|---|
GenericTypeList |
asGenericTypes()
Represents this list of types into a list of generic types.
|
TypeDescription |
get(int index) |
int |
getStackSize()
Returns the sum of the size of all types contained in this list.
|
int |
size() |
String[] |
toInternalNames()
Returns a list of internal names of all types represented by this list.
|
accept, 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
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public ForLoadedType(Class<?>... type)
type
- The types to be represented by this list.public TypeDescription get(int index)
get
in interface List<TypeDescription>
get
in class AbstractList<TypeDescription>
public int size()
size
in interface Collection<TypeDescription>
size
in interface List<TypeDescription>
size
in class AbstractCollection<TypeDescription>
public String[] toInternalNames()
TypeList
null
if the list is empty.public int getStackSize()
TypeList
public GenericTypeList asGenericTypes()
TypeList
Copyright © 2014–2015. All rights reserved.