@HashCodeAndEqualsPlugin.Enhance public static class MethodGraph.Simple extends Object implements MethodGraph
MethodGraph.Compiler, MethodGraph.Empty, MethodGraph.Linked, MethodGraph.Node, MethodGraph.NodeList, MethodGraph.Simple
Constructor and Description |
---|
Simple(LinkedHashMap<MethodDescription.SignatureToken,MethodGraph.Node> nodes)
Creates a new simple method graph.
|
Modifier and Type | Method and 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.
|
static MethodGraph |
of(List<? extends MethodDescription> methodDescriptions)
Returns a method graph that contains all of the provided methods as simple nodes.
|
public Simple(LinkedHashMap<MethodDescription.SignatureToken,MethodGraph.Node> nodes)
nodes
- The nodes represented by this method graph.public static MethodGraph of(List<? extends MethodDescription> methodDescriptions)
methodDescriptions
- A list of method descriptions to be represented as simple nodes.public MethodGraph.Node locate(MethodDescription.SignatureToken token)
locate
in interface MethodGraph
token
- A method token that represents the method to be located.public MethodGraph.NodeList listNodes()
listNodes
in interface MethodGraph
Copyright © 2014–2024. All rights reserved.