public class DPrint
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
c(int c,
java.lang.String s)
A print command for the given debug code.
|
static void |
cf(int c,
java.lang.String s,
java.lang.Object... args)
A printf command for the given debug code.
|
static void |
cl(int c,
java.lang.String s)
A print line command for the given debug code.
|
static boolean |
mode(int c)
Returns the print mode for a given debug code
|
static void |
toggleCode(int c,
boolean mode)
Enables/disables print commands to the given debug code
|
static void |
toggleUniversal(boolean mode)
Specify whether previously unset debug codes will by default be allowed to print or not.
|
static void |
u(java.lang.String s)
A universal print whose behavior is determined by the
universalPrint field |
static void |
uf(java.lang.String s,
java.lang.Object... args)
A universal printf whose behavior is determined by the
universalPrint field |
static void |
ul(java.lang.String s)
A universal print line whose behavior is determined by the
universalPrint field |
public static void toggleUniversal(boolean mode)
mode
- whether to enable default printing or default suppression.public static void toggleCode(int c, boolean mode)
c
- the print debug code to setmode
- true indicates that print calls to that code will print; false means that they will notpublic static void ul(java.lang.String s)
universalPrint
fields
- the string to printpublic static void u(java.lang.String s)
universalPrint
fields
- the string to printpublic static void uf(java.lang.String s, java.lang.Object... args)
universalPrint
fields
- the format stringargs
- the arguments for the formatted stringpublic static void cl(int c, java.lang.String s)
c
- the debug code under which printing should be performeds
- the string to printpublic static void c(int c, java.lang.String s)
c
- the debug code under which printing should be performeds
- the string to printpublic static void cf(int c, java.lang.String s, java.lang.Object... args)
c
- the debug code under which printing should be performeds
- the format stringargs
- the arguments for the formatted stringpublic static boolean mode(int c)
c
- the code to query.