Class MethodList.AbstractBase<S extends MethodDescription>
java.lang.Object
java.util.AbstractCollection<S>
java.util.AbstractList<S>
net.bytebuddy.matcher.FilterableList.AbstractBase<S, MethodList<S>>
net.bytebuddy.description.method.MethodList.AbstractBase<S>
- Type Parameters:
S- The type of method descriptions represented by this list.
- All Implemented Interfaces:
Iterable<S>, Collection<S>, List<S>, SequencedCollection<S>, MethodList<S>, FilterableList<S, MethodList<S>>
- Direct Known Subclasses:
MethodList.Explicit, MethodList.ForLoadedMethods, MethodList.ForTokens, MethodList.TypeSubstituting, TypePool.Default.LazyTypeDescription.MethodTokenList
- Enclosing interface:
MethodList<T extends MethodDescription>
public abstract static class MethodList.AbstractBase<S extends MethodDescription>
extends FilterableList.AbstractBase<S, MethodList<S>>
implements MethodList<S>
A base implementation of a
MethodList.-
Nested Class Summary
Nested classes/interfaces inherited from interface FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> Nested classes/interfaces inherited from interface MethodList
MethodList.AbstractBase<S>, MethodList.Empty<S>, MethodList.Explicit<S>, MethodList.ForLoadedMethods, MethodList.ForTokens, MethodList.TypeSubstituting -
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this list of these method descriptions resolved to their defined shape.Returns a list of signature tokens for this list of methods.asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens.protected MethodList<S> Represents a list of values as an instance of this instance's list type.Methods inherited from class FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface FilterableList
filter, getOnly, subListMethods inherited from interface 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
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
wrap
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 MethodDescription, MethodList<S extends MethodDescription>>- Parameters:
values- The values to wrap in an instance of this list's type.- Returns:
- A wrapped instance of the given
values.
-
asTokenList
public ByteCodeElement.Token.TokenList<MethodDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of method descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted byTargetType.- Specified by:
asTokenListin interfaceMethodList<S extends MethodDescription>- Parameters:
matcher- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asSignatureTokenList
Returns a list of signature tokens for this list of methods.- Specified by:
asSignatureTokenListin interfaceMethodList<S extends MethodDescription>- Returns:
- A list of signature tokens for this list of methods.
-
asSignatureTokenList
public List<MethodDescription.SignatureToken> asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription) Returns a list of signature tokens for this list of methods.- Specified by:
asSignatureTokenListin interfaceMethodList<S extends MethodDescription>- Parameters:
matcher- A matcher for resolving methods toMethodDescription.Tokens.typeDescription- The type description to resolve theMethodDescription.SignatureTokens to.- Returns:
- A list of signature tokens for this list of methods.
-
asDefined
Returns this list of these method descriptions resolved to their defined shape.- Specified by:
asDefinedin interfaceMethodList<S extends MethodDescription>- Returns:
- A list of methods in their defined shape.
-