Package org.qdl_lang.workspace
Class QDLWorkspace
- java.lang.Object
-
- org.qdl_lang.workspace.QDLWorkspace
-
- All Implemented Interfaces:
Serializable
public class QDLWorkspace extends Object implements Serializable
This has the machinery for getting lines of input from the user and then feeding them to the parser. It will also hand off workspace commands as needed.Created by Jeff Gaynor
on 1/11/20 at 4:21 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
HISTORY_CLEAR_SWITCH
static String
HISTORY_REVERSE_SWITCH
static String
HISTORY_SAVE_SWITCH
static String
HISTORY_SIZE_SWITCH
static String
HISTORY_TRUNCATE_SWITCH
static String
MACRO_COMMENT_DELIMITER
static String
SHORT_HISTORY_REVERSE_SWITCH
-
Constructor Summary
Constructors Constructor Description QDLWorkspace(WorkspaceCommands workspaceCommands)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doHistory(String cmdLine)
protected String
doRepeatCommand(String cmdLine)
Object
execute(String input)
protected String
getErrorCoordinates(QDLExceptionWithTrace qq)
protected edu.uiuc.ncsa.security.core.util.MyLoggingFacade
getLogger()
WorkspaceCommands
getWorkspaceCommands()
static WorkspaceProvider
getWorkspaceProvider()
protected void
handleException(Throwable t)
protected static QDLWorkspace
init(String[] args)
static void
main(String[] args)
void
mainLoop()
Execute main event loop.static QDLWorkspace
newInstance(WorkspaceCommands workspaceCommands)
void
runMacro(List<String> commands)
void
setWorkspaceCommands(WorkspaceCommands workspaceCommands)
This is used only during deserialization of the workspace.static void
setWorkspaceProvider(WorkspaceProvider workspaceProvider)
-
-
-
Field Detail
-
HISTORY_CLEAR_SWITCH
public static String HISTORY_CLEAR_SWITCH
-
HISTORY_TRUNCATE_SWITCH
public static String HISTORY_TRUNCATE_SWITCH
-
HISTORY_SAVE_SWITCH
public static String HISTORY_SAVE_SWITCH
-
HISTORY_SIZE_SWITCH
public static String HISTORY_SIZE_SWITCH
-
HISTORY_REVERSE_SWITCH
public static String HISTORY_REVERSE_SWITCH
-
SHORT_HISTORY_REVERSE_SWITCH
public static String SHORT_HISTORY_REVERSE_SWITCH
-
MACRO_COMMENT_DELIMITER
public static final String MACRO_COMMENT_DELIMITER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QDLWorkspace
public QDLWorkspace(WorkspaceCommands workspaceCommands)
-
-
Method Detail
-
getWorkspaceCommands
public WorkspaceCommands getWorkspaceCommands()
-
newInstance
public static QDLWorkspace newInstance(WorkspaceCommands workspaceCommands)
-
getWorkspaceProvider
public static WorkspaceProvider getWorkspaceProvider()
-
setWorkspaceProvider
public static void setWorkspaceProvider(WorkspaceProvider workspaceProvider)
-
setWorkspaceCommands
public void setWorkspaceCommands(WorkspaceCommands workspaceCommands)
This is used only during deserialization of the workspace. Setting it any other time may lead to very bad results!- Parameters:
workspaceCommands
-
-
getLogger
protected edu.uiuc.ncsa.security.core.util.MyLoggingFacade getLogger()
-
handleException
protected void handleException(Throwable t)
-
getErrorCoordinates
protected String getErrorCoordinates(QDLExceptionWithTrace qq)
-
init
protected static QDLWorkspace init(String[] args) throws Throwable
- Throws:
Throwable
-
-