Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.Compiler.Default.Key.Store.Graph
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.Default.Key.Store.Graph
-
- All Implemented Interfaces:
MethodGraph
- Enclosing class:
- MethodGraph.Compiler.Default.Key.Store<V>
@Enhance protected static class MethodGraph.Compiler.Default.Key.Store.Graph extends java.lang.Object implements MethodGraph
A graph implementation based on a key store.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph
MethodGraph.Compiler, MethodGraph.Empty, MethodGraph.Linked, MethodGraph.Node, MethodGraph.NodeList, MethodGraph.Simple
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node>
entries
A mapping of a node's type tokens to the represented node.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Graph(java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> entries)
Creates a new graph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodGraph.NodeList
listNodes()
Lists all nodes of this method graph.MethodGraph.Node
locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.
-
-
-
Field Detail
-
entries
private final java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> entries
A mapping of a node's type tokens to the represented node.
-
-
Constructor Detail
-
Graph
protected Graph(java.util.LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> entries)
Creates a new graph.- Parameters:
entries
- A mapping of a node's type tokens to the represented node.
-
-
Method Detail
-
locate
public MethodGraph.Node locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.- Specified by:
locate
in interfaceMethodGraph
- Parameters:
token
- A method token that represents the method to be located.- Returns:
- The node representing the given token.
-
listNodes
public MethodGraph.NodeList listNodes()
Lists all nodes of this method graph.- Specified by:
listNodes
in interfaceMethodGraph
- Returns:
- A list of all nodes of this method graph.
-
-