Package net.bytebuddy.description.method
Class MethodList.AbstractBase<S extends MethodDescription>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
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>
,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 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.method.MethodList
MethodList.AbstractBase<S extends MethodDescription>, MethodList.Empty<S extends MethodDescription>, MethodList.Explicit<S extends MethodDescription>, MethodList.ForLoadedMethods, MethodList.ForTokens, MethodList.TypeSubstituting
-
Field Summary
Fields inherited from class java.util.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 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 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, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
wrap
Description copied from class:FilterableList.AbstractBase
Represents a list of values as an instance of this instance's list type.- Specified by:
wrap
in 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:
asTokenList
in 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:
asSignatureTokenList
in 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:
asSignatureTokenList
in interfaceMethodList<S extends MethodDescription>
- Parameters:
matcher
- A matcher for resolving methods toMethodDescription.Token
s.typeDescription
- The type description to resolve theMethodDescription.SignatureToken
s 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:
asDefined
in interfaceMethodList<S extends MethodDescription>
- Returns:
- A list of methods in their defined shape.
-