|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.util.Debug
public class Debug
Static class that stores the current debugging level (default is zero, for no debugging output), debugging options, and other utility functions for debugging. Its main function also allows the use of BeanShell to perform on-the-fly debugging tests.
Field Summary | |
---|---|
static int |
counter
A counter with which to count stuff. |
static int |
level
The current debugging level (default is 0). |
Constructor Summary | |
---|---|
Debug()
|
Method Summary | |
---|---|
static void |
fillStringArray(String[] arr,
String filler)
Fills the specified string array with the whitespace-delimited tokens contained in the specified filler argument. |
static void |
setLevel(int newLevel)
Sets the debugging level to be the specified level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int counter
public static int level
Constructor Detail |
---|
public Debug()
Method Detail |
---|
public static void setLevel(int newLevel)
newLevel
- the new debugging levelpublic static void fillStringArray(String[] arr, String filler)
This method should probably be in Text
.
arr
- the array to be filledfiller
- a string that will be tokenized based on whitespace and whose
tokens will be used to fill the specified array
IndexOutOfBoundsException
- if the number of whitespace-delimited
tokens in filler
is greater than the size of arr
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |