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 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
FieldsModifier and TypeFieldDescriptionprivate final LinkedHashMap
<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>, MethodGraph.Node> A mapping of a node's type tokens to the represented node. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Graph
(LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>, MethodGraph.Node> entries) Creates a new graph. -
Method Summary
Modifier and TypeMethodDescriptionLists all nodes of this method graph.Locates a node in this graph which represents the provided method token.
-
Field Details
-
entries
private final LinkedHashMap<MethodGraph.Compiler.Default.Key<MethodDescription.TypeToken>,MethodGraph.Node> entriesA mapping of a node's type tokens to the represented node.
-
-
Constructor Details
-
Graph
protected Graph(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 Details
-
locate
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
Lists all nodes of this method graph.- Specified by:
listNodes
in interfaceMethodGraph
- Returns:
- A list of all nodes of this method graph.
-