@HashCodeAndEqualsPlugin.Enhance public static class MethodGraph.Linked.Delegation extends Object implements MethodGraph.Linked
MethodGraph.Linked.Delegation
MethodGraph.Compiler, MethodGraph.Empty, MethodGraph.Linked, MethodGraph.Node, MethodGraph.NodeList, MethodGraph.Simple
Constructor and Description |
---|
Delegation(MethodGraph methodGraph,
MethodGraph superClassGraph,
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.
|
public Delegation(MethodGraph methodGraph, MethodGraph superClassGraph, 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
Copyright © 2014–2022. All rights reserved.