Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.NodeList
java.lang.Object
java.util.AbstractCollection<MethodGraph.Node>
java.util.AbstractList<MethodGraph.Node>
net.bytebuddy.matcher.FilterableList.AbstractBase<MethodGraph.Node,MethodGraph.NodeList>
net.bytebuddy.dynamic.scaffold.MethodGraph.NodeList
- All Implemented Interfaces:
Iterable<MethodGraph.Node>
,Collection<MethodGraph.Node>
,List<MethodGraph.Node>
,SequencedCollection<MethodGraph.Node>
,FilterableList<MethodGraph.Node,
MethodGraph.NodeList>
- Enclosing interface:
MethodGraph
public static class MethodGraph.NodeList
extends FilterableList.AbstractBase<MethodGraph.Node,MethodGraph.NodeList>
A list of nodes.
-
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>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends MethodGraph.Node> The represented nodes.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethodList
<?> Transforms this list of nodes into a list of the node's representatives.get
(int index) int
size()
protected MethodGraph.NodeList
wrap
(List<MethodGraph.Node> 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, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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 java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, toArray, toArray
-
Field Details
-
nodes
The represented nodes.
-
-
Constructor Details
-
NodeList
Creates a list of nodes.- Parameters:
nodes
- The represented nodes.
-
-
Method Details
-
get
- Specified by:
get
in interfaceList<MethodGraph.Node>
- Specified by:
get
in classAbstractList<MethodGraph.Node>
-
size
public int size()- Specified by:
size
in interfaceCollection<MethodGraph.Node>
- Specified by:
size
in interfaceList<MethodGraph.Node>
- Specified by:
size
in classAbstractCollection<MethodGraph.Node>
-
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<MethodGraph.Node,
MethodGraph.NodeList> - Parameters:
values
- The values to wrap in an instance of this list's type.- Returns:
- A wrapped instance of the given
values
.
-
asMethodList
Transforms this list of nodes into a list of the node's representatives.- Returns:
- A list of these node's representatives.
-