Class MethodGraph.Simple

java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodGraph.Simple
All Implemented Interfaces:
MethodGraph
Enclosing interface:
MethodGraph

@Enhance public static class MethodGraph.Simple extends Object implements MethodGraph
A simple implementation of a method graph.
  • Constructor Details

  • Method Details

    • of

      public static MethodGraph of(List<? extends MethodDescription> methodDescriptions)
      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 interface MethodGraph
      Parameters:
      token - A method token that represents the method to be located.
      Returns:
      The node representing the given token.
    • listNodes

      public MethodGraph.NodeList listNodes()
      Lists all nodes of this method graph.
      Specified by:
      listNodes in interface MethodGraph
      Returns:
      A list of all nodes of this method graph.