public abstract static class TypeList.Generic.AbstractBase extends FilterableList.AbstractBase<TypeDescription.Generic,TypeList.Generic> implements TypeList.Generic
TypeList.Generic.AbstractBase, TypeList.Generic.Empty, TypeList.Generic.Explicit, TypeList.Generic.ForDetachedTypes, TypeList.Generic.ForLoadedTypes, TypeList.Generic.OfConstructorExceptionTypes, TypeList.Generic.OfLoadedInterfaceTypes, TypeList.Generic.OfMethodExceptionTypesmodCount| Constructor and Description |
|---|
AbstractBase() |
| 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> matcher)
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.
|
protected TypeList.Generic |
wrap(List<TypeDescription.Generic> values)
Represents a list of values as an instance of this instance's list type.
|
filter, getOnly, subListadd, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfilter, 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, streamprotected TypeList.Generic wrap(List<TypeDescription.Generic> values)
FilterableList.AbstractBasewrap in class FilterableList.AbstractBase<TypeDescription.Generic,TypeList.Generic>values - The values to wrap in an instance of this list's type.values.public TypeList.Generic accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
accept in interface TypeList.Genericvisitor - The visitor to apply to each type.public ByteCodeElement.Token.TokenList<TypeVariableToken> asTokenList(ElementMatcher<? super TypeDescription> matcher)
IllegalStateException
if any type in this list does not represent a type variable (TypeDefinition.Sort.VARIABLE).asTokenList in interface TypeList.Genericmatcher - The visitor to use for detaching the type variable's bounds.public int getStackSize()
getStackSize in interface TypeList.Genericpublic TypeList asErasures()
asErasures in interface TypeList.Genericpublic TypeList.Generic asRawTypes()
asRawTypes in interface TypeList.GenericCopyright © 2014–2019. All rights reserved.