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.OfMethodExceptionTypes
modCount
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, subList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
add, 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, toArray
parallelStream, removeIf, stream
protected TypeList.Generic wrap(List<TypeDescription.Generic> values)
FilterableList.AbstractBase
wrap
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.Generic
visitor
- 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.Generic
matcher
- The visitor to use for detaching the type variable's bounds.public int getStackSize()
getStackSize
in interface TypeList.Generic
public TypeList asErasures()
asErasures
in interface TypeList.Generic
public TypeList.Generic asRawTypes()
asRawTypes
in interface TypeList.Generic
Copyright © 2014–2020. All rights reserved.