|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.hpd.Preprocessor
class Preprocessor
Preprocessor handles constructs like linebreaks and compound statements, also provides a couple of static functions that might come in handy.
Nested Class Summary | |
---|---|
(package private) class |
Preprocessor.LineBuffer
LineBuffer is a simple class for accumulating lines of multiline commands |
Field Summary | |
---|---|
private Preprocessor.LineBuffer |
buffer
|
Constructor Summary | |
---|---|
Preprocessor()
Constructor |
Method Summary | |
---|---|
private static ArrayList |
breakCompound(String cmd)
Break a compound command into subcommands. |
private static boolean |
isMultiline(String cmd)
Check if this command spans multiple lines, that is ends with a '\' |
Iterator |
preprocess(String cmd)
Preprocess the command - splitting, combining and replacing as needed |
private static String |
stripComment(String cmd)
|
private static String |
stripLineBreak(String cmd)
Remove the backslash from multiline command |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Preprocessor.LineBuffer buffer
Constructor Detail |
---|
public Preprocessor()
Method Detail |
---|
public Iterator preprocess(String cmd)
private static String stripLineBreak(String cmd)
private static ArrayList breakCompound(String cmd)
private static String stripComment(String cmd)
private static boolean isMultiline(String cmd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |