public interface MethodList extends List<MethodDescription>
Modifier and Type | Interface and Description |
---|---|
static class |
MethodList.Empty
An implementation of an empty method list.
|
static class |
MethodList.Explicit
A method list that is a wrapper for a given list of method descriptions.
|
static class |
MethodList.ForLoadedType
A method list implementation that returns all loaded byte code methods (methods and constructors) that
are declared for a given type.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
filter(MethodMatcher methodMatcher)
Returns a new list that only includes the methods that are matched by the given method matcher.
|
MethodDescription |
getOnly()
Returns the only element in this method list or throws an exception if there is more than or less than
one element in this list.
|
MethodList |
subList(int fromIndex,
int toIndex) |
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
parallelStream, removeIf, stream
MethodList filter(MethodMatcher methodMatcher)
methodMatcher
- A filter applied to this list.methodMatcher
.MethodList subList(int fromIndex, int toIndex)
subList
in interface List<MethodDescription>
MethodDescription getOnly()
Copyright © 2014. All rights reserved.