Class Debug

Hierarchy: Object , Debug
public class Debug
Provides routines to simplify and localize debugging output. Debugging is controlled via a Java system property value. If the system property with the name given in DEBUG_PROPERTY_NAME (currently "jts.debug") has the value "on" or "true" debugging is enabled. Otherwise, debugging is disabled. The system property can be set by specifying the following JVM option:
 -Djts.debug=on
 

Other

  • version: 1.7
public static void main(String[] args)
Prints the status of debugging to System.out
Parameters:
args - args the cmd-line arguments (no arguments are required)
public static boolean isDebugging()
public static LineString toLine(Coordinate p0, Coordinate p1)
public static LineString toLine(Coordinate p0, Coordinate p1, Coordinate p2)
public static LineString toLine(Coordinate p0, Coordinate p1, Coordinate p2, Coordinate p3)
public static void print(String str)
public static void print(Object obj)
public static void print(boolean isTrue, Object obj)
public static void println(Object obj)
public static void resetTime()
public static void printTime(String tag)
public static boolean equals(Coordinate c1, Coordinate c2, double tolerance)
public static void addWatch(Object obj)
Adds an object to be watched. A watched object can be printed out at any time. Currently only supports one watched object at a time.
Parameters:
obj - obj
public static void printWatch()
public static void printIfWatch(Object obj)
public static void breakIf(boolean cond)
public static void breakIfEqual(Object o1, Object o2)
public static void breakIfEqual(Coordinate p0, Coordinate p1, double tolerance)
public static boolean hasSegment(Geometry geom, Coordinate p0, Coordinate p1)
public void instancePrintWatch()
public void instancePrintIfWatch(Object obj)
public void instancePrint(Object obj)
public void instancePrint(Iterator it)
public void instancePrintObject(Object obj)
public void println()