public static interface TypeList.Generic extends FilterableList<TypeDescription.Generic,TypeList.Generic>
| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeList.Generic.AbstractBase
An abstract base implementation of a generic type list.
|
static class |
TypeList.Generic.Empty
An empty list of generic types.
|
static class |
TypeList.Generic.Explicit
An explicit list of generic types.
|
static class |
TypeList.Generic.ForDetachedTypes
A list of detached types that are attached on reception.
|
static class |
TypeList.Generic.ForLoadedTypes
A list of loaded generic types.
|
static class |
TypeList.Generic.OfConstructorExceptionTypes
A lazy projection of a constructor's exception types.
|
static class |
TypeList.Generic.OfLoadedInterfaceTypes
A lazy projection of a type's generic interface types.
|
static class |
TypeList.Generic.OfMethodExceptionTypes
A lazy projection of a method's exception types.
|
| Modifier and Type | Method and Description |
|---|---|
TypeList.Generic |
accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms the generic types by applying the supplied visitor to each of them.
|
TypeList |
asErasures()
Returns a list of the generic types' erasures.
|
TypeList.Generic |
asRawTypes()
Returns a list of the generic types' raw types.
|
ByteCodeElement.Token.TokenList<TypeVariableToken> |
asTokenList(ElementMatcher<? super TypeDescription> visitor)
Transforms a list of attached type variables into their tokenized form.
|
int |
getStackSize()
Returns the sum of the size of all types contained in this list.
|
filter, getOnly, subListadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streamTypeList asErasures()
TypeList.Generic asRawTypes()
ByteCodeElement.Token.TokenList<TypeVariableToken> asTokenList(ElementMatcher<? super TypeDescription> visitor)
IllegalStateException
if any type in this list does not represent a type variable (TypeDefinition.Sort.VARIABLE).visitor - The visitor to use for detaching the type variable's bounds.TypeList.Generic accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
visitor - The visitor to apply to each type.int getStackSize()
Copyright © 2014–2019. All rights reserved.