public interface OptimizedInterpret
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
boolean |
compile(ScriptingContext customContext,
boolean force)
Compile source code of the test script.If the script is in a scripting
language, the method should check the code syntax.
|
boolean compile(ScriptingContext customContext, boolean force) throws InterpretErrorException
customContext
- customized context for this validation. If the
argument is null, the interpret is supposed to obtain a preinitialized
context instance from the script manager through
ScriptManager.createDefaultContext()
.force
- true to force compilation or false to indicate that if the
document hasn't changed than the cached results can be used.SyntaxErrorException
instances to the compilation context. The
interpret is also supposed to fire appropriate compilation script events
through the associated script manager. The context should be made
available after compilation through the
TestScriptInterpret.getCompilationContext()
method.InterpretErrorException
- should be thrown on an internal error or
illegal interpret state. The exception message gets typically displayed
or otherwise reported to the user.