public class DBLocal extends Object implements Runnable, XJDialogProgressDelegate, StreamWatcherDelegate
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DBLocal.ErrorReporter |
| Constructor and Description |
|---|
DBLocal(DebuggerTab debuggerTab) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyzeGrammar() |
protected void |
askUserForInputText() |
void |
cancel() |
boolean |
cancelled() |
boolean |
canDebugAgain() |
boolean |
checkForLaunch() |
void |
close() |
protected void |
compileFiles(String[] files) |
protected void |
compileGlueCode() |
protected void |
compileGrammar() |
void |
dialogDidCancel() |
void |
forceStop() |
protected void |
generateAndCompileGlueCode(boolean build) |
protected void |
generateAndCompileGrammar() |
protected void |
generateGlueCode() |
protected void |
generateGrammar() |
protected void |
generateInputText() |
protected void |
generateTestTemplateTextFile() |
protected String |
getLexerName() |
protected boolean |
hasErrors() |
void |
hideProgress() |
boolean |
isRequiredFilesExisting() |
boolean |
launchRemoteParser() |
protected void |
notifyCancellation() |
protected void |
notifyCompletion() |
protected void |
notifyErrors() |
protected boolean |
prepare() |
void |
prepareAndLaunch(int options) |
protected void |
reportError(String message) |
protected void |
resetErrors() |
void |
run() |
void |
showEditTestRig() |
void |
showProgress() |
void |
startThread() |
void |
streamWatcherDidReceiveString(String string) |
void |
streamWatcherDidStart() |
void |
streamWatcherException(Exception e) |
public static final String remoteParserClassName
public static final String parserGlueCodeTemplatePath
public static final String parserGlueCodeTemplateName
public static final String treeParserGlueCodeTemplateName
public static final String testRigTemplateSuffix
public static final String ST_ATTR_IMPORT
public static final String ST_ATTR_CLASSNAME
public static final String ST_ATTR_INPUT_FILE
public static final String ST_ATTR_JAVA_PARSER
public static final String ST_ATTR_JAVA_LEXER
public static final String ST_ATTR_START_SYMBOL
public static final String ST_ATTR_GRAMMAR_NAME
public static final String ST_ATTR_DEBUG_PORT
protected String outputFileDir
protected String fileRemoteParser
protected String fileRemoteParserInputTextFile
protected String fileRemoteParserTemplateTextFile
protected String startRule
protected String lastStartRule
protected Process remoteParserProcess
protected boolean cancelled
protected int options
protected CodeGenerate codeGenerator
protected DebuggerTab debuggerTab
protected int inputMode
protected int lastInputMode
protected String testTemplateMode
protected String lastTestTemplateMode
protected String testTemplateClass
protected String lastTestTemplateClass
protected String inputFile
protected String lastInputFile
protected String testTemplateText
protected String lastTestTemplateText
protected String inputText
protected String rawInputText
protected XJDialogProgress progress
protected DBLocal.ErrorReporter error
protected int debugPort
protected boolean debugPortChanged
public DBLocal(DebuggerTab debuggerTab)
public void close()
public boolean canDebugAgain()
public void dialogDidCancel()
dialogDidCancel in interface XJDialogProgressDelegatepublic void forceStop()
public void cancel()
public boolean cancelled()
public void showProgress()
public void hideProgress()
public void showEditTestRig()
public void prepareAndLaunch(int options)
public void startThread()
protected void askUserForInputText()
protected void reportError(String message)
protected void resetErrors()
protected boolean hasErrors()
protected void notifyErrors()
protected void notifyCancellation()
protected void notifyCompletion()
protected boolean prepare()
protected void generateAndCompileGrammar()
protected void analyzeGrammar()
protected void generateGrammar()
protected void compileGrammar()
protected void generateAndCompileGlueCode(boolean build)
protected void generateGlueCode()
protected void compileGlueCode()
protected void compileFiles(String[] files)
protected void generateInputText()
protected void generateTestTemplateTextFile()
public boolean isRequiredFilesExisting()
public boolean checkForLaunch()
public boolean launchRemoteParser()
public void streamWatcherDidStart()
streamWatcherDidStart in interface StreamWatcherDelegatepublic void streamWatcherDidReceiveString(String string)
streamWatcherDidReceiveString in interface StreamWatcherDelegatepublic void streamWatcherException(Exception e)
streamWatcherException in interface StreamWatcherDelegateCopyright © 2013. All rights reserved.