Package net.bytebuddy.description.type
Interface RecordComponentList<T extends RecordComponentDescription>
- Type Parameters:
T- The type of record component descriptions represented by this list.
- All Superinterfaces:
Collection<T>,FilterableList<T,,RecordComponentList<T>> Iterable<T>,List<T>,SequencedCollection<T>
- All Known Implementing Classes:
RecordComponentList.AbstractBase,RecordComponentList.Empty,RecordComponentList.Explicit,RecordComponentList.ForLoadedRecordComponents,RecordComponentList.ForTokens,RecordComponentList.TypeSubstituting,TypePool.Default.LazyTypeDescription.RecordComponentTokenList
public interface RecordComponentList<T extends RecordComponentDescription>
extends FilterableList<T,RecordComponentList<T>>
Implementations represent a list of record component descriptions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of a list of record components.static classAn empty list of record components.static classA wrapper implementation of an explicit list of record components.static classA list of loaded record components.static classA list of record components described as tokens.static classA type-substituting list of record component descriptions. -
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 interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subListMethods inherited from interface java.util.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
-
Method Details
-
asTokenList
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.- Parameters:
matcher- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asTypeList
TypeList.Generic asTypeList()Returns a list of all types of the records of this list.- Returns:
- A list of all types of the records of this list.
-
asDefined
Returns this list of these record component descriptions resolved to their defined shape.- Returns:
- A list of record components in their defined shape.
-