|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgeneralHelpers.Utilities
public class Utilities
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | |
---|---|
static void |
dumpToken(java.io.PrintWriter str,
int lineno,
java_cup.runtime.Symbol s)
Dumps a token to the specified stream |
static void |
fatalError(java.lang.String msg)
|
static void |
fatalError(java.lang.Throwable t)
Prints error message and exits |
static java.lang.String |
pad(int n)
Returns the specified amount of space padding |
static void |
printEscapedString(java.io.PrintWriter str,
java.lang.String s)
Prints an appropritely escaped string |
static void |
printEscapedString(java.io.Writer str,
java.lang.String s)
|
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 |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static void fatalError(java.lang.Throwable t)
msg
- the error messagepublic static void fatalError(java.lang.String msg)
public static void printEscapedString(java.io.Writer str, java.lang.String s) throws java.io.IOException
java.io.IOException
public static void printEscapedString(java.io.PrintWriter 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 tokenpublic static void dumpToken(java.io.PrintWriter 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 |