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:
java.lang.Iterable<MethodGraph.Node>
,java.util.Collection<MethodGraph.Node>
,java.util.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 Modifier and Type Field Description private java.util.List<? extends MethodGraph.Node>
nodes
The represented nodes.
-
Constructor Summary
Constructors Constructor Description NodeList(java.util.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(java.util.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
-
-
-
-
Field Detail
-
nodes
private final java.util.List<? extends MethodGraph.Node> nodes
The represented nodes.
-
-
Constructor Detail
-
NodeList
public NodeList(java.util.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 interfacejava.util.List<MethodGraph.Node>
- Specified by:
get
in classjava.util.AbstractList<MethodGraph.Node>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<MethodGraph.Node>
- Specified by:
size
in interfacejava.util.List<MethodGraph.Node>
- Specified by:
size
in classjava.util.AbstractCollection<MethodGraph.Node>
-
wrap
protected MethodGraph.NodeList wrap(java.util.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.
-
-