|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.nodeos.pj_Debug
The package-internal debugging infrastructure. XXX Currently this is public for my convenience.
To avoid dependencies on classes that are not automagically loaded into all spaces, I have to jump through several hoops to make sure that non-critical classes are not used. (In particular, I have avoided the '"string" + String' syntax to avoid implicitly referencing java/lang/StringBuffer.
The majority of routines in this file deal with printing directly to stdout/stderr through VM facilities. See the corresponding native layer for the details on where that output is directed.
There are three basic facilities provided by this class, first
the assert()
methods which really aren't very useful
without a pre-processor pass.
Second, the primitive print functions and object print functions,
because we all love printf-debugging.
Third, the flag-based trace primitive for dynamically adjusting
the printing of various parts of the Java system.
This class is not final. However the only subclass Debug is final.
Debug
Constructor Summary | |
pj_Debug()
|
Method Summary | |
static void |
beginDebugOutput()
|
static boolean |
checkLocked(java.lang.Object obj)
|
static void |
endDebugOutput()
|
static void |
exit()
A direct exit. |
static void |
print(java.lang.String str)
A native print routine that doesn't require the basic Java classes. |
static void |
printCharArray(char[] array,
int start,
int end)
A native print routine that doesn't require the basic Java classes. |
static void |
printInt(int i)
A native print routine that doesn't require the basic Java classes. |
static void |
printIntHex(int i)
A native print routine that doesn't require the basic Java classes. |
static void |
println(java.lang.String str)
A native print routine that doesn't require the basic Java classes. |
static void |
printStackTrace(java.lang.Throwable t)
Print the stack trace of the given Throwable thread. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public pj_Debug()
Method Detail |
public static void println(java.lang.String str)
str
- The string to printpublic static void print(java.lang.String str)
str
- The string to printpublic static void printInt(int i)
i
- the integer to printpublic static void printIntHex(int i)
i
- the integer to printpublic static void printCharArray(char[] array, int start, int end)
array
- the char array to printstart
- the first element of the char array to printend
- the last element of the char array to printpublic static void exit()
public static void printStackTrace(java.lang.Throwable t)
public static void beginDebugOutput()
public static void endDebugOutput()
public static boolean checkLocked(java.lang.Object obj)
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |