Class RecordComponentList.Empty<S extends RecordComponentDescription>
java.lang.Object
java.util.AbstractCollection<S>
java.util.AbstractList<S>
net.bytebuddy.matcher.FilterableList.Empty<S, RecordComponentList<S>>
net.bytebuddy.description.type.RecordComponentList.Empty<S>
- Type Parameters:
S- The type of record component descriptions represented by this list.
- All Implemented Interfaces:
Iterable<S>, Collection<S>, List<S>, SequencedCollection<S>, RecordComponentList<S>, FilterableList<S, RecordComponentList<S>>
- Enclosing interface:
RecordComponentList<T extends RecordComponentDescription>
public static class RecordComponentList.Empty<S extends RecordComponentDescription>
extends FilterableList.Empty<S, RecordComponentList<S>>
implements RecordComponentList<S>
An empty list of record components.
-
Nested Class Summary
Nested classes/interfaces inherited from interface FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> Nested classes/interfaces inherited from interface RecordComponentList
RecordComponentList.AbstractBase<S>, RecordComponentList.Empty<S>, RecordComponentList.Explicit<S>, RecordComponentList.ForLoadedRecordComponents, RecordComponentList.ForTokens, RecordComponentList.TypeSubstituting -
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this list of these record component descriptions resolved to their defined shape.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens.Returns a list of all types of the records of this list.Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface FilterableList
filter, getOnly, subListMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
Empty
public Empty()
-
-
Method Details
-
asDefined
Returns this list of these record component descriptions resolved to their defined shape.- Specified by:
asDefinedin interfaceRecordComponentList<S extends RecordComponentDescription>- Returns:
- A list of record components in their defined shape.
-
asTokenList
public ByteCodeElement.Token.TokenList<RecordComponentDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of record component descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted byTargetType.- Specified by:
asTokenListin interfaceRecordComponentList<S extends RecordComponentDescription>- Parameters:
matcher- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asTypeList
Returns a list of all types of the records of this list.- Specified by:
asTypeListin interfaceRecordComponentList<S extends RecordComponentDescription>- Returns:
- A list of all types of the records of this list.
-