Class SplitterList
- Object
-
- SplitterList
-
public abstract class SplitterList extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleandkconfig_all_splittersBoolean.
-
Constructor Summary
Constructors Constructor Description SplitterList()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatSplitters(Splitter[] splits)static Splitter @Nullable []get(String pptName)Returns the splitters associated with this program point name (or null).static Splitter[]get_all()Returns all the splitters in this program.static Splitter @Nullable []get_raw(String pptname)static booleanmatches(String spinfoPptName, String pptName)Returns true if the name on a PPT_NAME line of a.spinfofile matches the given program point.static voidput(String pptname, Splitter[] splits)Associate an array of splitters with the program point pptname.static voidremove(String pptname)Removes the splitters associated with the given name, which is a name on a PPT_NAME line of a.spinfofile.
-
-
-
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).
-
-
Constructor Detail
-
SplitterList
public SplitterList()
-
-
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.spinfofile.- Parameters:
pptname- a name on a PPT_NAME line of a.spinfofile
-
put
public static void put(String pptname, Splitter[] splits)
Associate an array of splitters with the program point pptname.
-
formatSplitters
public static String formatSplitters(Splitter[] splits)
-
matches
public static boolean matches(String spinfoPptName, String pptName)
Returns true if the name on a PPT_NAME line of a.spinfofile 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 inQUALIFIER_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.spinfofilepptName- the name of a program point- Returns:
- true if
spinfoPptNamematches the program point namedpptName
-
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
-
-