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 StringHISTORY_CLEAR_SWITCHstatic StringHISTORY_REVERSE_SWITCHstatic StringHISTORY_SAVE_SWITCHstatic StringHISTORY_SIZE_SWITCHstatic StringHISTORY_TRUNCATE_SWITCHstatic StringMACRO_COMMENT_DELIMITERstatic StringSHORT_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 StringdoHistory(String cmdLine)protected StringdoRepeatCommand(String cmdLine)Objectexecute(String input)protected StringgetErrorCoordinates(QDLExceptionWithTrace qq)protected edu.uiuc.ncsa.security.core.util.MyLoggingFacadegetLogger()WorkspaceCommandsgetWorkspaceCommands()static WorkspaceProvidergetWorkspaceProvider()protected voidhandleException(Throwable t)protected static QDLWorkspaceinit(String[] args)static voidmain(String[] args)voidmainLoop()Execute main event loop.static QDLWorkspacenewInstance(WorkspaceCommands workspaceCommands)voidrunMacro(List<String> commands)voidsetWorkspaceCommands(WorkspaceCommands workspaceCommands)This is used only during deserialization of the workspace.static voidsetWorkspaceProvider(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
-
-