|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectUtilities
Field Summary | |
private static boolean |
checkTables
|
private static java.lang.String |
padding
|
Constructor Summary | |
(package private) |
Utilities()
|
Method Summary | |
static void |
dumpToken(java.io.PrintStream str,
int lineno,
Symbol s)
Dumps a token to the specified stream |
static void |
fatalError(java.lang.String msg)
Prints error message and exits |
static java.lang.String |
pad(int n)
Returns the specified amount of space padding |
static void |
printEscapedString(java.io.PrintStream str,
java.lang.String s)
Prints an appropritely escaped string |
static void |
printToken(Symbol s)
Prints a token to stderr |
static java.lang.String |
tokenToString(Symbol s)
Returns a string representation for a token |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final boolean checkTables
private static java.lang.String padding
Constructor Detail |
Utilities()
Method Detail |
public static void fatalError(java.lang.String msg)
msg
- the error messagepublic static void printEscapedString(java.io.PrintStream str, java.lang.String s)
str
- the output streams
- the string to printpublic static java.lang.String tokenToString(Symbol s)
s
- the token
public static void printToken(Symbol s)
s
- the tokenpublic static void dumpToken(java.io.PrintStream str, int lineno, Symbol s)
s
- the tokenstr
- the streampublic static java.lang.String pad(int n)
n
- the amount of padding
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |