Package net.bytebuddy.dynamic.scaffold
Interface MethodGraph
-
- All Known Subinterfaces:
MethodGraph.Linked
- All Known Implementing Classes:
MethodGraph.Compiler.Default.Key.Store.Graph
,MethodGraph.Empty
,MethodGraph.Linked.Delegation
,MethodGraph.Simple
public interface MethodGraph
A method graph represents a view on a set of methods as they are seen from a given type. Any method is represented as a node that represents a method, its bridge methods, its resolution state and information on if it was made visible by a visibility bridge.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MethodGraph.Compiler
A compiler to produce aMethodGraph
from a given type.static class
MethodGraph.Empty
A canonical implementation of an empty method graph.static interface
MethodGraph.Linked
A linked method graph represents a view that additionally exposes information of a given type's super type view and a view on this graph's directly implemented interfaces.static interface
MethodGraph.Node
Represents a node within a method graph.static class
MethodGraph.NodeList
A list of nodes.static class
MethodGraph.Simple
A simple implementation of a method graph.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
locate
MethodGraph.Node locate(MethodDescription.SignatureToken token)
Locates a node in this graph which represents the provided method token.- Parameters:
token
- A method token that represents the method to be located.- Returns:
- The node representing the given token.
-
listNodes
MethodGraph.NodeList listNodes()
Lists all nodes of this method graph.- Returns:
- A list of all nodes of this method graph.
-
-