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:
java.util.Collection<T>
,FilterableList<T,RecordComponentList<T>>
,java.lang.Iterable<T>
,java.util.List<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 Classes Modifier and Type Interface Description static class
RecordComponentList.AbstractBase<S extends RecordComponentDescription>
An abstract base implementation of a list of record components.static class
RecordComponentList.Empty<S extends RecordComponentDescription>
An empty list of record components.static class
RecordComponentList.Explicit<S extends RecordComponentDescription>
A wrapper implementation of an explicit list of record components.static class
RecordComponentList.ForLoadedRecordComponents
A list of loaded record components.static class
RecordComponentList.ForTokens
A list of record components described as tokens.static class
RecordComponentList.TypeSubstituting
A type-substituting list of record component descriptions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecordComponentList<RecordComponentDescription.InDefinedShape>
asDefined()
Returns this list of these record component descriptions resolved to their defined shape.ByteCodeElement.Token.TokenList<RecordComponentDescription.Token>
asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of record component descriptions into a list of detached tokens.TypeList.Generic
asTypeList()
Returns a list of all types of the records of this list.-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Method Detail
-
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
RecordComponentList<RecordComponentDescription.InDefinedShape> asDefined()
Returns this list of these record component descriptions resolved to their defined shape.- Returns:
- A list of record components in their defined shape.
-
-