Class Debug


  • public class Debug
    extends java.lang.Object
    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 Detail

      • DEBUG_PROPERTY_NAME

        public static java.lang.String DEBUG_PROPERTY_NAME
      • DEBUG_PROPERTY_VALUE_ON

        public static java.lang.String DEBUG_PROPERTY_VALUE_ON
      • DEBUG_PROPERTY_VALUE_TRUE

        public static java.lang.String DEBUG_PROPERTY_VALUE_TRUE
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Prints the status of debugging to System.out
        Parameters:
        args - the cmd-line arguments (no arguments are required)
      • isDebugging

        public static boolean isDebugging()
      • print

        public static void print​(java.lang.String str)
      • print

        public static void print​(java.lang.Object obj)
      • print

        public static void print​(boolean isTrue,
                                 java.lang.Object obj)
      • println

        public static void println​(java.lang.Object obj)
      • resetTime

        public static void resetTime()
      • printTime

        public static void printTime​(java.lang.String tag)
      • addWatch

        public static void addWatch​(java.lang.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 -
      • printWatch

        public static void printWatch()
      • printIfWatch

        public static void printIfWatch​(java.lang.Object obj)
      • breakIf

        public static void breakIf​(boolean cond)
      • breakIfEqual

        public static void breakIfEqual​(java.lang.Object o1,
                                        java.lang.Object o2)
      • breakIfEqual

        public static void breakIfEqual​(Coordinate p0,
                                        Coordinate p1,
                                        double tolerance)
      • instancePrintWatch

        public void instancePrintWatch()
      • instancePrintIfWatch

        public void instancePrintIfWatch​(java.lang.Object obj)
      • instancePrint

        public void instancePrint​(java.lang.Object obj)
      • instancePrint

        public void instancePrint​(java.util.Iterator it)
      • instancePrintObject

        public void instancePrintObject​(java.lang.Object obj)
      • println

        public void println()