Package net.bytebuddy.description.field
Interface FieldList<T extends FieldDescription>
- Type Parameters:
T
- The type of field descriptions represented by this list.
- All Superinterfaces:
Collection<T>
,FilterableList<T,
,FieldList<T>> Iterable<T>
,List<T>
,SequencedCollection<T>
- All Known Implementing Classes:
FieldList.AbstractBase
,FieldList.Empty
,FieldList.Explicit
,FieldList.ForLoadedFields
,FieldList.ForTokens
,FieldList.TypeSubstituting
,TypePool.Default.LazyTypeDescription.FieldTokenList
,TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList
Implementations represent a list of field descriptions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
FieldList.AbstractBase<S extends FieldDescription>
An abstract base implementation of aFieldList
.static class
FieldList.Empty<S extends FieldDescription>
An implementation of an empty field list.static class
FieldList.Explicit<S extends FieldDescription>
A wrapper implementation of a field list for a given list of field descriptions.static class
An implementation of a field list for an array of loaded fields.static class
A list of field descriptions for a list of detached tokens.static class
A list of field descriptions that yieldsFieldDescription.TypeSubstituting
. -
Method Summary
Modifier and TypeMethodDescriptionReturns this list of these field descriptions resolved to their defined shape.asTokenList
(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
Methods 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<FieldDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field 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.
-
asDefined
FieldList<FieldDescription.InDefinedShape> asDefined()Returns this list of these field descriptions resolved to their defined shape.- Returns:
- A list of fields in their defined shape.
-