@HashCodeAndEqualsPlugin.Enhance public static class MethodGraph.Linked.Delegation extends java.lang.Object implements MethodGraph.Linked
MethodGraph.Linked.Delegation
MethodGraph.Compiler, MethodGraph.Empty, MethodGraph.Linked, MethodGraph.Node, MethodGraph.NodeList, MethodGraph.Simple
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TypeDescription,MethodGraph> |
interfaceGraphs
A mapping of method graphs of the represented type's directly implemented interfaces to their graph representatives.
|
private MethodGraph |
methodGraph
The represented type's method graph.
|
private MethodGraph |
superClassGraph
The super class's method graph.
|
Constructor and Description |
---|
Delegation(MethodGraph methodGraph,
MethodGraph superClassGraph,
java.util.Map<TypeDescription,MethodGraph> interfaceGraphs)
Creates a new delegation method graph.
|
Modifier and Type | Method and Description |
---|---|
MethodGraph |
getInterfaceGraph(TypeDescription typeDescription)
Returns a graph representing the view on this represented type's directly implemented interface type.
|
MethodGraph |
getSuperClassGraph()
Returns a graph representing the view on this represented type's super type.
|
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.
|
private final MethodGraph methodGraph
private final MethodGraph superClassGraph
private final java.util.Map<TypeDescription,MethodGraph> interfaceGraphs
public Delegation(MethodGraph methodGraph, MethodGraph superClassGraph, java.util.Map<TypeDescription,MethodGraph> interfaceGraphs)
methodGraph
- The represented type's method graph.superClassGraph
- The super class's method graph.interfaceGraphs
- A mapping of method graphs of the represented type's directly implemented interfaces to their graph representatives.public MethodGraph getSuperClassGraph()
getSuperClassGraph
in interface MethodGraph.Linked
public MethodGraph getInterfaceGraph(TypeDescription typeDescription)
getInterfaceGraph
in interface MethodGraph.Linked
typeDescription
- The interface type for which a view is to be returned.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