Enum MethodGraph.Empty

java.lang.Object
java.lang.Enum<MethodGraph.Empty>
net.bytebuddy.dynamic.scaffold.MethodGraph.Empty
All Implemented Interfaces:
Serializable, Comparable<MethodGraph.Empty>, java.lang.constant.Constable, MethodGraph, MethodGraph.Compiler, MethodGraph.Linked
Enclosing interface:
MethodGraph

public static enum MethodGraph.Empty extends Enum<MethodGraph.Empty> implements MethodGraph.Linked, MethodGraph.Compiler
A canonical implementation of an empty method graph.
  • Enum Constant Details

  • Constructor Details

    • Empty

      private Empty()
  • Method Details

    • values

      public static MethodGraph.Empty[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MethodGraph.Empty valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • 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.
    • getSuperClassGraph

      public MethodGraph getSuperClassGraph()
      Returns a graph representing the view on this represented type's super type.
      Specified by:
      getSuperClassGraph in interface MethodGraph.Linked
      Returns:
      A graph representing the view on this represented type's super type.
    • getInterfaceGraph

      public MethodGraph getInterfaceGraph(TypeDescription typeDescription)
      Returns a graph representing the view on this represented type's directly implemented interface type.
      Specified by:
      getInterfaceGraph in interface MethodGraph.Linked
      Parameters:
      typeDescription - The interface type for which a view is to be returned.
      Returns:
      A graph representing the view on this represented type's directly implemented interface type.
    • compile

      public MethodGraph.Linked compile(TypeDefinition typeDefinition)
      Compiles the given type into a method graph considering the type to be the viewpoint.
      Specified by:
      compile in interface MethodGraph.Compiler
      Parameters:
      typeDefinition - The type to be compiled.
      Returns:
      A linked method graph representing the given type.
    • compile

      @Deprecated public MethodGraph.Linked compile(TypeDescription typeDescription)
      Deprecated.
      Compiles the given type into a method graph considering the type to be the viewpoint.
      Specified by:
      compile in interface MethodGraph.Compiler
      Parameters:
      typeDescription - The type to be compiled.
      Returns:
      A linked method graph representing the given type.
    • compile

      public MethodGraph.Linked compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
      Compiles the given type into a method graph.
      Specified by:
      compile in interface MethodGraph.Compiler
      Parameters:
      typeDefinition - The type to be compiled.
      viewPoint - The view point that determines the method's visibility.
      Returns:
      A linked method graph representing the given type.
    • compile

      @Deprecated public MethodGraph.Linked compile(TypeDescription typeDefinition, TypeDescription viewPoint)
      Deprecated.
      Compiles the given type into a method graph.
      Specified by:
      compile in interface MethodGraph.Compiler
      Parameters:
      typeDefinition - The type to be compiled.
      viewPoint - The view point that determines the method's visibility.
      Returns:
      A linked method graph representing the given type.