Enum MethodGraph.Compiler.Default.Merger.Directional

    • Method Detail

      • values

        public static MethodGraph.Compiler.Default.Merger.Directional[] 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.Compiler.Default.Merger.Directional c : MethodGraph.Compiler.Default.Merger.Directional.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.Compiler.Default.Merger.Directional 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
      • merge

        public MethodDescription merge​(MethodDescription left,
                                       MethodDescription right)
        Merges two ambiguously resolved methods to yield a single representative.
        Specified by:
        merge in interface MethodGraph.Compiler.Default.Merger
        Parameters:
        left - The left method description, i.e. the method that was discovered first or was previously merged.
        right - The right method description, i.e. the method that was discovered last.
        Returns:
        A method description compatible to both method's types that is used as a representative.