| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectUtilities
class Utilities
| Field Summary | |
|---|---|
private static boolean | 
checkTables
 | 
private static java.lang.String | 
padding
 | 
| Constructor Summary | |
|---|---|
Utilities()
 | 
|
| Method Summary | |
|---|---|
static void | 
dumpToken(java.io.PrintStream str,
          int lineno,
          java_cup.runtime.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(java_cup.runtime.Symbol s)
Prints a token to stderr  | 
static java.lang.String | 
tokenToString(java_cup.runtime.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 message
public static void printEscapedString(java.io.PrintStream str,
                                      java.lang.String s)
str - the output streams - the string to printpublic static java.lang.String tokenToString(java_cup.runtime.Symbol s)
s - the token
public static void printToken(java_cup.runtime.Symbol s)
s - the token
public static void dumpToken(java.io.PrintStream str,
                             int lineno,
                             java_cup.runtime.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 | |||||||