Class MethodGraph.Simple

  • All Implemented Interfaces:
    MethodGraph
    Enclosing interface:
    MethodGraph

    @Enhance
    public static class MethodGraph.Simple
    extends java.lang.Object
    implements MethodGraph
    A simple implementation of a method graph.
    • Method Detail

      • of

        public static MethodGraph of​(java.util.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

        public MethodGraph.Node locate​(MethodDescription.SignatureToken token)
        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.