Enum MethodGraph.Empty

    • Enum Constant Detail

    • Constructor Detail

      • Empty

        private Empty()
    • Method Detail

      • values

        public static MethodGraph.Empty[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MethodGraph.Empty c : MethodGraph.Empty.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MethodGraph.Empty valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • 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.
      • 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​(TypeDescription typeDescription)
        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.