| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.test.concurrent.ConcurrentTestCommandScript.CommandParser
private class ConcurrentTestCommandScript.CommandParser
| Nested Class Summary | |
|---|---|
| private  class | ConcurrentTestCommandScript.CommandParser.Binding | 
| Field Summary | |
|---|---|
| private  Stack<File> | currentDirectory | 
| private  List<ConcurrentTestCommandScript.CommandParser.Binding> | deferredBindings | 
| (package private)  Pattern | matchesVarDefn | 
| private  int | nextThreadId | 
| private  int | order | 
| private  int | repeatCount | 
| private  boolean | scriptHasVars | 
| (package private)  Pattern | splitBinding | 
| (package private)  Pattern | splitWords | 
| private  String | state | 
| private  int | threadId | 
| Constructor Summary | |
|---|---|
| ConcurrentTestCommandScript.CommandParser() | |
| Method Summary | |
|---|---|
| private  void | applyVariableRebindings() | 
| private  void | defineVariables(String line) | 
| private  void | doEndOfState(String state) | 
| private  String | firstWord(String trimmedLine)Returns the first word of the given line, assuming the line is trimmed. | 
| private  void | load(String scriptFileName)Parses a multi-threaded script and converts it into test commands. | 
| private  Map<String,String> | lookupState(String state)Manages state transitions. | 
| private  String | readLine(String line,
         BufferedReader in)Returns an input line, possible extended by the continuation character (\). | 
| private  String | readSql(String startOfSql,
        BufferedReader in)Returns a block of SQL, starting with the given String. | 
|  void | rememberVariableRebindings(List<String> pairs) | 
| private  String | skipFirstWord(String trimmedLine)Returns everything but the first word of the given line, assuming the line is trimmed. | 
| private  void | trace(String message) | 
| private  void | trace(String prefix,
      Object message) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
final Pattern splitWords
final Pattern splitBinding
final Pattern matchesVarDefn
private String state
private int threadId
private int nextThreadId
private int order
private int repeatCount
private boolean scriptHasVars
private Stack<File> currentDirectory
private List<ConcurrentTestCommandScript.CommandParser.Binding> deferredBindings
| Constructor Detail | 
|---|
public ConcurrentTestCommandScript.CommandParser()
| Method Detail | 
|---|
public void rememberVariableRebindings(List<String> pairs)
private void applyVariableRebindings()
private void trace(String prefix,
                   Object message)
private void trace(String message)
private void load(String scriptFileName)
           throws IOException
IOExceptionprivate void doEndOfState(String state)
private void defineVariables(String line)
private Map<String,String> lookupState(String state)
private String firstWord(String trimmedLine)
private String skipFirstWord(String trimmedLine)
private String readLine(String line,
                        BufferedReader in)
                 throws IOException
IOException
private String readSql(String startOfSql,
                       BufferedReader in)
                throws IOException
 startOfSql concatenated with each line from
 in until a line ending with a semicolon is found.
IOException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||