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>
- 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
public interface FieldList<T extends FieldDescription> extends FilterableList<T,FieldList<T>>
Implementations represent a list of field descriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static 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
FieldList.ForLoadedFields
An implementation of a field list for an array of loaded fields.static class
FieldList.ForTokens
A list of field descriptions for a list of detached tokens.static class
FieldList.TypeSubstituting
A list of field descriptions that yieldsFieldDescription.TypeSubstituting
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldList<FieldDescription.InDefinedShape>
asDefined()
Returns this list of these field descriptions resolved to their defined shape.ByteCodeElement.Token.TokenList<FieldDescription.Token>
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
-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
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.
-
-