Class Debug
java.lang.Object
org.locationtech.jts.util.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
- Version:
- 1.7
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds an object to be watched.static voidbreakIf(boolean cond) static voidbreakIfEqual(Object o1, Object o2) static voidbreakIfEqual(Coordinate p0, Coordinate p1, double tolerance) static booleanequals(Coordinate c1, Coordinate c2, double tolerance) static booleanhasSegment(Geometry geom, Coordinate p0, Coordinate p1) voidinstancePrint(Object obj) voidvoidvoidvoidstatic booleanstatic voidPrints the status of debugging to System.outstatic voidstatic voidstatic voidstatic voidprintIfWatch(Object obj) voidprintln()static voidstatic voidstatic voidstatic voidstatic LineStringtoLine(Coordinate p0, Coordinate p1) static LineStringtoLine(Coordinate p0, Coordinate p1, Coordinate p2) static LineStringtoLine(Coordinate p0, Coordinate p1, Coordinate p2, Coordinate p3)
-
Field Details
-
DEBUG_PROPERTY_NAME
-
DEBUG_PROPERTY_VALUE_ON
-
DEBUG_PROPERTY_VALUE_TRUE
-
-
Method Details
-
main
Prints the status of debugging to System.out- Parameters:
args- the cmd-line arguments (no arguments are required)
-
isDebugging
public static boolean isDebugging() -
toLine
-
toLine
-
toLine
-
print
-
print
-
print
-
println
-
resetTime
public static void resetTime() -
printTime
-
equals
-
addWatch
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-
-
printWatch
public static void printWatch() -
printIfWatch
-
breakIf
public static void breakIf(boolean cond) -
breakIfEqual
-
breakIfEqual
-
hasSegment
-
instancePrintWatch
public void instancePrintWatch() -
instancePrintIfWatch
-
instancePrint
-
instancePrint
-
instancePrintObject
-
println
public void println()
-