Package net.bytebuddy.description.field
Class FieldList.AbstractBase<S extends FieldDescription>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.bytebuddy.matcher.FilterableList.AbstractBase<S,FieldList<S>>
-
- net.bytebuddy.description.field.FieldList.AbstractBase<S>
-
- Type Parameters:
S- The type of field descriptions represented by this list.
- All Implemented Interfaces:
java.lang.Iterable<S>,java.util.Collection<S>,java.util.List<S>,FieldList<S>,FilterableList<S,FieldList<S>>
- Direct Known Subclasses:
FieldList.Explicit,FieldList.ForLoadedFields,FieldList.ForTokens,FieldList.TypeSubstituting,TypePool.Default.LazyTypeDescription.FieldTokenList,TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList
- Enclosing interface:
- FieldList<T extends FieldDescription>
public abstract static class FieldList.AbstractBase<S extends FieldDescription> extends FilterableList.AbstractBase<S,FieldList<S>> implements FieldList<S>
An abstract base implementation of aFieldList.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.field.FieldList
FieldList.AbstractBase<S extends FieldDescription>, FieldList.Empty<S extends FieldDescription>, FieldList.Explicit<S extends FieldDescription>, FieldList.ForLoadedFields, FieldList.ForTokens, FieldList.TypeSubstituting
-
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>>
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete 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.protected FieldList<S>wrap(java.util.List<S> values)Represents a list of values as an instance of this instance's list type.-
Methods inherited from class net.bytebuddy.matcher.FilterableList.AbstractBase
filter, getOnly, subList
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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
-
asTokenList
public 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.- Specified by:
asTokenListin interfaceFieldList<S extends FieldDescription>- Parameters:
matcher- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asDefined
public FieldList<FieldDescription.InDefinedShape> asDefined()
Returns this list of these field descriptions resolved to their defined shape.- Specified by:
asDefinedin interfaceFieldList<S extends FieldDescription>- Returns:
- A list of fields in their defined shape.
-
wrap
protected FieldList<S> wrap(java.util.List<S> values)
Description copied from class:FilterableList.AbstractBaseRepresents a list of values as an instance of this instance's list type.- Specified by:
wrapin classFilterableList.AbstractBase<S extends FieldDescription,FieldList<S extends FieldDescription>>- Parameters:
values- The values to wrap in an instance of this list's type.- Returns:
- A wrapped instance of the given
values.
-
-