public class FormCalcScriptHandler extends ScriptHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
FormCalcScriptHandler.FormCalcParser |
ScriptHandler.ScriptExceptionACTIVITY_CHANGE, ACTIVITY_CLICK, ACTIVITY_DOCCLOSE, ACTIVITY_DOCREADY, ACTIVITY_ENTER, ACTIVITY_EXIT, ACTIVITY_FULL, ACTIVITY_INDEXCHANGE, ACTIVITY_INITIALIZE, ACTIVITY_MOUSEDOWN, ACTIVITY_MOUSEENTER, ACTIVITY_MOUSEEXIT, ACTIVITY_MOUSEUP, ACTIVITY_POSTEXECUTE, ACTIVITY_POSTOPEN, ACTIVITY_POSTPRINT, ACTIVITY_POSTSAVE, ACTIVITY_POSTSIGN, ACTIVITY_POSTSUBMIT, ACTIVITY_PREEXECUTE, ACTIVITY_PREOPEN, ACTIVITY_PREPRINT, ACTIVITY_PRESAVE, ACTIVITY_PRESIGN, ACTIVITY_PRESUBMIT, ACTIVITY_READY, ACTIVITY_VALIDATIONSTATE, BP_CLEAR, BP_SET, BREAK, CALCULATE, ERR_BadBreakContinue, ERR_FuncBuiltIn, ERR_FuncUnknown, ERR_OK, ERR_Syntax, executeReason_LAST, FEATURE_CAN_BREAK, FEATURE_CAN_HALT, FEATURE_CAN_SET_BREAKPOINT, FEATURE_CAN_STEP_INTO, FEATURE_CAN_STEP_OUT, FEATURE_CAN_STEP_OVER, FEATURE_IS_REMOTE, FEATURE_NONE, HALT, ObjectInteraction_End, ObjectInteraction_Start, PREDICATE, STEP_INTO, STEP_OUT, STEP_OVER, UNSPECIFIED, VALIDATE| Constructor and Description |
|---|
FormCalcScriptHandler(AppModel oAppModel)
Instantiates a script handler for the FormCalc language.
|
FormCalcScriptHandler(AppModel oAppModel,
ScriptDebugger oScriptDebugger)
Instantiates a script handler for the FormCalc language.
|
| Modifier and Type | Method and Description |
|---|---|
FormCalcScriptHandler |
clone()
Clones this script handler.
|
boolean |
debugBreakPoint(int nScriptID,
int nLine,
int eSetType)
Set or clear a break-point.
|
boolean |
debugCommand(int eCmd)
Set an internal flag in the script handler indicating that, when control
is returned to the script handler, it should perform a step-over,
step-into or step-out function (calling the stopped callback on the
associated debugger).
|
boolean |
debugGetStack(List<String> oStack)
Get the current stack frame.
|
boolean |
debugGetVariables(List<String> oVarNames,
List<Arg> oVarValues)
Retrieve parallel lists of variable names and their values (lists have
the same size).
|
void |
executeOrSyntaxCheck(String script,
Arg returnCode,
int eReason,
boolean bSyntaxCheckOnly)
Executes or checks the syntax of the given script.
|
boolean |
getCancelOrTimeState()
Method to check for the Esc Key press to halt the execution.
|
String |
getOption(String sOptionName)
Gets the value of the given option.
|
String |
languageName()
Gets the name of the scripting language supported by this script handler.
|
void |
setOption(String sOptionName,
String sOptionValue)
Sets the value of the given option.
|
void |
syntaxCheck(String script)
Checks the given script for syntax errors.
|
boolean |
wasFatalError()
Determines the severity of an error is returned from execute().
|
createScriptHandler, execute, executeReasonToString, executeReasonToXFAEnum, getDebugger, removeReference, setDebugger, stringToExecuteReasonpublic FormCalcScriptHandler(AppModel oAppModel)
oAppModel - the application AppModel.public FormCalcScriptHandler(AppModel oAppModel, ScriptDebugger oScriptDebugger)
oAppModel - the application model.oScriptDebugger - the option script debugger.public void executeOrSyntaxCheck(String script, Arg returnCode, int eReason, boolean bSyntaxCheckOnly)
ScriptHandlerexecuteOrSyntaxCheck in class ScriptHandlerscript - the script to execute.returnCode - the return value of the script.eReason - the reason for the execution of the script.bSyntaxCheckOnly - the flag to only check syntax when set.public void syntaxCheck(String script)
ScriptHandlersyntaxCheck in class ScriptHandlerscript - the script to execute.public String languageName()
ScriptHandlerlanguageName in class ScriptHandlerpublic boolean getCancelOrTimeState()
public void setOption(String sOptionName, String sOptionValue)
ScriptHandlersetOption in class ScriptHandlersOptionName - the name of the option to set.sOptionValue - the value to set.public String getOption(String sOptionName)
ScriptHandlergetOption in class ScriptHandlersOptionName - the name of the option to get.public FormCalcScriptHandler clone()
ScriptHandlerclone in class ScriptHandlerpublic boolean wasFatalError()
ScriptHandlerwasFatalError in class ScriptHandlerpublic boolean debugCommand(int eCmd)
ScriptHandlerdebugCommand in class ScriptHandlerpublic boolean debugBreakPoint(int nScriptID,
int nLine,
int eSetType)
ScriptHandlerdebugBreakPoint in class ScriptHandlerpublic boolean debugGetStack(List<String> oStack)
ScriptHandlerdebugGetStack in class ScriptHandlerpublic boolean debugGetVariables(List<String> oVarNames, List<Arg> oVarValues)
ScriptHandlerdebugGetVariables in class ScriptHandlerCopyright © 2010 - 2020 Adobe. All Rights Reserved