Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.NodeList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- 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>
,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
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description NodeList(List<? extends MethodGraph.Node> nodes)
Creates a list of nodes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodList<?>
asMethodList()
Transforms this list of nodes into a list of the node's representatives.MethodGraph.Node
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
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
NodeList
public NodeList(List<? extends MethodGraph.Node> nodes)
Creates a list of nodes.- Parameters:
nodes
- The represented nodes.
-
-
Method Detail
-
get
public MethodGraph.Node get(int index)
- 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
protected MethodGraph.NodeList wrap(List<MethodGraph.Node> values)
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
public MethodList<?> asMethodList()
Transforms this list of nodes into a list of the node's representatives.- Returns:
- A list of these node's representatives.
-
-