|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.ICE
public class ICE
Interactive CAL Environment - this is command line environment for executing CAL code.
Type a CAL expression on the command line and press 'Enter' to execute the expression.
ICE commands start with a ':'.
| Nested Class Summary | |
|---|---|
protected static class |
ICE.CommandType
|
protected class |
ICE.ICECommand
This class encapsulates a command which can be executed from the ICE command line. |
| Field Summary | |
|---|---|
static String |
ICE_PROP_MODULE
|
static String |
ICE_PROP_WORKSPACE
Setting this system property causes ICE to load its workspace from the file system path named by the value (does not search the class path) |
static String |
ICE_PROP_WORKSPACE_FILENAME
Setting this system property causes ICE to load its workspace from the file on the classpath named by the value (unqualified file name - searches within folders called "Workspace Declarations" on the class path) |
| Constructor Summary | |
|---|---|
ICE(String instanceName,
String[] args,
WorkspaceManager workspaceManager,
InputStream inputStream,
PrintStream outputStream,
WorkspaceDeclaration.StreamProvider streamProvider)
Create a new ICE object. |
|
| Method Summary | |
|---|---|
protected void |
addCommand(ICE.ICECommand info)
|
static void |
appMain(String[] args,
String fallbackWorkspaceDeclaration)
Create a new ICE object and start its input loop. |
static void |
appMain(String[] args,
String fallbackWorkspaceDeclaration,
String fallbackClientID,
ModuleName fallbackTargetModule)
Run ice, with fallback settings for the workspace declaration, client id, and target module. |
protected boolean |
command_runCode(String code)
Run the given piece of code and print out performance stats. |
protected void |
command_setModule(String newTargetModuleString)
Set the current working module. |
protected File |
findFile(File root,
String name)
Recursively search for the named file/directory under the given root. |
protected Logger |
getIceLogger()
|
protected String |
getModulePath(ModuleName moduleName)
|
protected ModuleName |
getTargetModule()
|
WorkspaceManager |
getWorkspaceManager()
|
protected void |
initializeCommands()
Initialize the commands that can be executed in ICE. |
boolean |
isBusy()
|
static void |
main(String[] args)
Create a new ICE object and start its input loop. |
protected EntryPoint |
makeRunTarget(String expressionText,
boolean wrapExpression)
Take the given code, make it into a super combinator and compile it into our program. |
protected String |
qualifyCodeExpression(String expressionText)
|
protected ModuleName |
resolveModuleNameInProgram(String moduleName,
boolean logWarningIfNotResolvable)
Resolves the given module name in the context of the current program. |
void |
run()
Loop to fetch user input and take appropriate action. |
protected boolean |
sourceChanged(String newSource,
InputStream sourceInputStream)
Determine whether the source code for a given file has changed in a meaningful way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ICE_PROP_WORKSPACE_FILENAME
public static final String ICE_PROP_WORKSPACE
public static final String ICE_PROP_MODULE
| Constructor Detail |
|---|
public ICE(String instanceName,
String[] args,
WorkspaceManager workspaceManager,
InputStream inputStream,
PrintStream outputStream,
WorkspaceDeclaration.StreamProvider streamProvider)
instanceName - args - workspaceManager - inputStream - outputStream - streamProvider - | Method Detail |
|---|
protected final ModuleName getTargetModule()
public static void main(String[] args)
args -
public static void appMain(String[] args,
String fallbackWorkspaceDeclaration)
args - fallbackWorkspaceDeclaration -
public static void appMain(String[] args,
String fallbackWorkspaceDeclaration,
String fallbackClientID,
ModuleName fallbackTargetModule)
args - the command line arguments to pass to ICE.fallbackWorkspaceDeclaration - the fallback workspace declaration, used if non-null and the system property is not set.fallbackClientID - the fallback client id., used if non-null and the system property is not set.fallbackTargetModule - the fallback target module, used if non-null and the system property is not set.protected void initializeCommands()
protected File findFile(File root,
String name)
root - name -
protected boolean sourceChanged(String newSource,
InputStream sourceInputStream)
newSource - the new source code for the give file.sourceInputStream - the source file.
protected String getModulePath(ModuleName moduleName)
moduleName -
protected void addCommand(ICE.ICECommand info)
public void run()
run in interface Runnable
protected ModuleName resolveModuleNameInProgram(String moduleName,
boolean logWarningIfNotResolvable)
moduleName - the module name to resolve.logWarningIfNotResolvable - whether to log warnings if the name is not resolvable.
protected void command_setModule(String newTargetModuleString)
newTargetModuleString - protected boolean command_runCode(String code)
code - String The code to be run.
protected EntryPoint makeRunTarget(String expressionText,
boolean wrapExpression)
expressionText - String A string containing the CAL expression to be run.wrapExpression -
protected String qualifyCodeExpression(String expressionText)
public WorkspaceManager getWorkspaceManager()
public boolean isBusy()
protected Logger getIceLogger()
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||