Package net.bytebuddy.description.type
Class RecordComponentList.Empty<S extends RecordComponentDescription>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- 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:
java.lang.Iterable<S>
,java.util.Collection<S>
,java.util.List<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 net.bytebuddy.matcher.FilterableList
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>, FilterableList.Empty<T,S extends FilterableList<T,S>>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.RecordComponentList
RecordComponentList.AbstractBase<S extends RecordComponentDescription>, RecordComponentList.Empty<S extends RecordComponentDescription>, RecordComponentList.Explicit<S extends RecordComponentDescription>, RecordComponentList.ForLoadedRecordComponents, RecordComponentList.ForTokens, RecordComponentList.TypeSubstituting
-
-
Constructor Summary
Constructors Constructor Description Empty()
-
Method Summary
All Methods Instance Methods Concrete 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 class net.bytebuddy.matcher.FilterableList.Empty
filter, get, getOnly, size, subList
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Method Detail
-
asDefined
public RecordComponentList<RecordComponentDescription.InDefinedShape> asDefined()
Returns this list of these record component descriptions resolved to their defined shape.- Specified by:
asDefined
in 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:
asTokenList
in interfaceRecordComponentList<S extends RecordComponentDescription>
- Parameters:
matcher
- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asTypeList
public TypeList.Generic asTypeList()
Returns a list of all types of the records of this list.- Specified by:
asTypeList
in interfaceRecordComponentList<S extends RecordComponentDescription>
- Returns:
- A list of all types of the records of this list.
-
-