Enum MethodGraph.Compiler.Default.Merger.Directional

    • Field Detail

      • left

        private final boolean left
        true if the left method should be returned when merging methods.
    • Constructor Detail

      • Directional

        private Directional​(boolean left)
        Creates a directional merger.
        Parameters:
        left - true if the left method should be returned when merging methods.
    • 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​(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
      • 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.