Package daikon.split

Class SplitterList

    • Field Detail

      • dkconfig_all_splitters

        public static boolean dkconfig_all_splitters
        Boolean. Enables indiscriminate splitting (see Daikon manual, @ref{Indiscriminate splitting}, for an explanation of this technique).
    • Method Detail

      • remove

        public static void remove​(String pptname)
        Removes the splitters associated with the given name, which is a name on a PPT_NAME line of a .spinfo file.
        Parameters:
        pptname - a name on a PPT_NAME line of a .spinfo file
      • put

        public static void put​(String pptname,
                               Splitter[] splits)
        Associate an array of splitters with the program point pptname.
      • matches

        public static boolean matches​(String spinfoPptName,
                                      String pptName)
        Returns true if the name on a PPT_NAME line of a .spinfo file matches the given program point.

        A name that contains ":::", such as "pkg.Foo.bar(int):::EXIT1", is a complete program point name. It matches the program point of that name, and every program point whose name is that name preceded by a qualifier, such as a package: "Foo.bar(int):::EXIT1" matches "pkg.Foo.bar(int):::EXIT1" but not "pkg.BigFoo.bar(int):::EXIT1". The name can omit only a qualifier of the class name, not the class name itself or part of the method signature: neither "bar(int):::EXIT1" nor "int):::EXIT1" matches "pkg.Foo.bar(int):::EXIT1". A name ending with ":::EXIT" also matches the method's numbered exit points, such as "pkg.Foo.bar(int):::EXIT12".

        If the most recent "input-language" record that Daikon read is "C/C++" (see FileIO.input_language), then a complete name can omit any qualifier at the beginning of the program point name, not only a qualifier of the class name. That is, it matches every program point whose name is that name preceded by a qualifier that ends with a character in QUALIFIER_SEPARATORS: "main():::ENTER" matches the global function "..main():::ENTER", and "f():::ENTER" matches the file-static function "file_c.f():::ENTER".

        Any other name, such as "Foo.bar", matches every program point whose name contains it.

        Parameters:
        spinfoPptName - a name on a PPT_NAME line of a .spinfo file
        pptName - the name of a program point
        Returns:
        true if spinfoPptName matches the program point named pptName
      • get

        public static Splitter @Nullable [] get​(String pptName)
        Returns the splitters associated with this program point name (or null). The resulting splitters are factories, not instantiated splitters. The result may contain several splitters with the same condition text.

        An OBJECT program point also uses every splitter whose PPT_NAME is not a complete program point name, if any PPT_NAME (complete or not) whose splitters were registered via put(java.lang.String, daikon.split.Splitter[]) contains "OBJECT".

        Parameters:
        pptName - the name of a program point
        Returns:
        an array of splitters
      • get_all

        public static Splitter[] get_all()
        Returns all the splitters in this program. The resulting splitters are factories, not instantiated splitters. The result may contain several splitters with the same condition text.
        Returns:
        an array of splitters