Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.Simple
java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodGraph.Simple
- All Implemented Interfaces:
MethodGraph
- Enclosing interface:
- MethodGraph
A simple implementation of a method graph.
-
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<MethodDescription.SignatureToken,
MethodGraph.Node> The nodes represented by this method graph. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new simple method graph. -
Method Summary
Modifier and TypeMethodDescriptionLists all nodes of this method graph.Locates a node in this graph which represents the provided method token.static MethodGraph
of
(List<? extends MethodDescription> methodDescriptions) Returns a method graph that contains all of the provided methods as simple nodes.
-
Field Details
-
nodes
The nodes represented by this method graph.
-
-
Constructor Details
-
Simple
Creates a new simple method graph.- Parameters:
nodes
- The nodes represented by this method graph.
-
-
Method Details
-
of
Returns a method graph that contains all of the provided methods as simple nodes.- Parameters:
methodDescriptions
- A list of method descriptions to be represented as simple nodes.- Returns:
- A method graph that represents all of the provided methods as simple nodes.
-
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.
-