public class BeanShellScript extends AbstractScript
RM_DEFAULT, RM_RESULT, RM_SCRIPT, SL_BEANSHELL, SL_DEFAULT, SL_GROOVY, STR_VALUES_FALSE, STR_VALUES_TRUE
Constructor and Description |
---|
BeanShellScript(java.lang.String _src) |
BeanShellScript(java.lang.String _src,
boolean _precompile) |
BeanShellScript(java.lang.String _src,
boolean _precompile,
BeanShellScript _parent) |
BeanShellScript(java.lang.String _src,
boolean _precompile,
BeanShellScript _parent,
java.lang.ClassLoader _classloader) |
BeanShellScript(java.lang.String _src,
boolean _precompile,
BeanShellScript _parent,
java.lang.ClassLoader _classloader,
java.util.Map _initialvars) |
BeanShellScript(java.lang.String _src,
boolean _precompile,
BeanShellScript _parent,
java.lang.ClassLoader _classloader,
java.util.Map _initialvars,
java.util.List<ScriptImport> _defaultImports) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
boolConverter(java.lang.Object o,
java.lang.Object nullValue) |
boolean |
checkNS() |
void |
clear()
Frees all variables of this script after script has been executed to prevent
them from being held "forever" even if they are no longer used.
|
void |
close() |
void |
compile()
macht die Syntax-Ueberpruefung
|
void |
compileNT(int _lineOffset,
java.lang.String errorTip)
macht die Syntax-Ueberpruefung aber NoThrow
|
ScriptFunctionI |
createFunction(java.lang.String _src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType) |
ScriptFunctionI |
createFunction(java.lang.String _src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String _sn) |
ScriptFunctionI |
createFunction(java.lang.String _src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String _sn,
java.lang.String _fn) |
ScriptFunctionI |
createFunction(java.lang.String _src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String _sn,
java.lang.String _fn,
int _lineOffset) |
ScriptFunctionI |
createFunction(java.lang.String _src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String _sn,
java.lang.String _fn,
int _lineOffset,
java.lang.Object _delegate) |
boolean |
evalAsBoolNT(java.lang.String s,
boolean nullValue,
int _lineOffset,
java.lang.String errorTip) |
java.lang.Object |
evalNT(java.lang.String s,
java.lang.Object nullValue,
int _lineOffset,
java.lang.String errorTip) |
java.lang.Object |
evalNT(java.lang.String s,
java.lang.Object nullValue,
int _lineOffset,
java.lang.String errorTip,
java.util.function.BiFunction typeConverter) |
java.util.Map |
getAllVarMap() |
java.lang.Object |
getAsyncRc() |
java.lang.String |
getImports() |
bsh.Interpreter |
getInterpreter() |
java.lang.String |
getLanguage() |
int |
getLineOffset() |
java.lang.String |
getMname() |
bsh.NameSpace |
getNs() |
java.lang.String |
getNSName() |
java.lang.Object |
getNT(java.lang.String s,
java.lang.Object exValue) |
BeanShellScript |
getParent() |
java.lang.String |
getSource() |
java.lang.String |
getSrc() |
boolean |
hasSource() |
boolean |
isCompiled() |
boolean |
isPrecompile() |
boolean |
isSource(java.lang.String s) |
static void |
main(java.lang.String[] args) |
void |
run() |
java.lang.Object |
runAsObjectNT() |
java.lang.Object |
runAsObjectNT(java.lang.Object nullValue) |
java.lang.Object |
runAsObjectNT(java.lang.Object nullValue,
int _lineOffset) |
java.lang.Object |
runAsObjectNT(java.lang.Object nullValue,
int _lineOffset,
java.lang.String errorTip) |
void |
runNT()
FIXME: lineOffset = wenn das BeanShellScript im Kontext eines grossen Skripts laeuft,
kann man mittels des Offsets die "Startzeile" des aktuellen Skripts mitgeben
|
void |
runNT(int _lineOffset) |
void |
runNT(int _lineOffset,
java.lang.String errorTip) |
void |
setAsyncRc(java.lang.Object $22) |
void |
setCompiled(boolean $20) |
void |
setImports(java.lang.String $16) |
void |
setInterpreter(bsh.Interpreter $14) |
void |
setLineOffset(int $18) |
void |
setMname(java.lang.String $19) |
void |
setNs(bsh.NameSpace $23) |
void |
setNT(java.lang.String s,
java.lang.Object value,
boolean local) |
void |
setParent(BeanShellScript $15) |
void |
setPrecompile(boolean $21) |
void |
setSource(java.lang.String _src) |
void |
setSrc(java.lang.String $17) |
asBool, asString, compileNT, compileNT, evalAsBoolNT, evalAsBoolNT, evalAsBoolNT, evalAsStringNT, evalAsStringNT, evalAsStringNT, evalAsStringNT, evalNT, evalNT, evalNT, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInterrupt, getJavaSyntaxImports, getJavaSyntaxImports, getNT, isScriptException, runAsBoolNT, runAsBoolNT, runAsBoolNT, runAsBoolNT, runAsStringNT, runAsStringNT, runAsStringNT, runAsStringNT, setInterrupt, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT
public BeanShellScript(java.lang.String _src)
public BeanShellScript(java.lang.String _src, boolean _precompile)
public BeanShellScript(java.lang.String _src, boolean _precompile, BeanShellScript _parent)
public BeanShellScript(java.lang.String _src, boolean _precompile, BeanShellScript _parent, java.lang.ClassLoader _classloader)
public BeanShellScript(java.lang.String _src, boolean _precompile, BeanShellScript _parent, java.lang.ClassLoader _classloader, java.util.Map _initialvars)
public BeanShellScript(java.lang.String _src, boolean _precompile, BeanShellScript _parent, java.lang.ClassLoader _classloader, java.util.Map _initialvars, java.util.List<ScriptImport> _defaultImports)
public java.lang.String getLanguage()
getLanguage
in class AbstractScript
public java.lang.String getNSName()
public java.lang.String getSource()
getSource
in class AbstractScript
public void setSource(java.lang.String _src)
setSource
in class AbstractScript
public void close()
close
in class AbstractScript
public void clear()
AbstractScript
clear
in class AbstractScript
public ScriptFunctionI createFunction(java.lang.String _src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType)
createFunction
in class AbstractScript
public ScriptFunctionI createFunction(java.lang.String _src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String _sn)
public ScriptFunctionI createFunction(java.lang.String _src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String _sn, java.lang.String _fn)
createFunction
in class AbstractScript
public ScriptFunctionI createFunction(java.lang.String _src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String _sn, java.lang.String _fn, int _lineOffset)
createFunction
in class AbstractScript
public ScriptFunctionI createFunction(java.lang.String _src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String _sn, java.lang.String _fn, int _lineOffset, java.lang.Object _delegate)
createFunction
in class AbstractScript
public java.util.Map getAllVarMap()
public void run() throws bsh.EvalError
bsh.EvalError
public boolean isSource(java.lang.String s)
public boolean hasSource()
hasSource
in class AbstractScript
public void runNT()
runNT
in class AbstractScript
public void runNT(int _lineOffset)
runNT
in class AbstractScript
public void runNT(int _lineOffset, java.lang.String errorTip)
runNT
in class AbstractScript
public void compile() throws bsh.EvalError
bsh.EvalError
public void compileNT(int _lineOffset, java.lang.String errorTip)
compileNT
in class AbstractScript
public java.lang.Object runAsObjectNT()
runAsObjectNT
in class AbstractScript
public java.lang.Object runAsObjectNT(java.lang.Object nullValue)
runAsObjectNT
in class AbstractScript
public java.lang.Object runAsObjectNT(java.lang.Object nullValue, int _lineOffset)
runAsObjectNT
in class AbstractScript
public java.lang.Object runAsObjectNT(java.lang.Object nullValue, int _lineOffset, java.lang.String errorTip)
runAsObjectNT
in class AbstractScript
public boolean checkNS()
public void setNT(java.lang.String s, java.lang.Object value, boolean local)
setNT
in class AbstractScript
public java.lang.Object getNT(java.lang.String s, java.lang.Object exValue)
getNT
in class AbstractScript
public java.lang.Object evalNT(java.lang.String s, java.lang.Object nullValue, int _lineOffset, java.lang.String errorTip)
evalNT
in class AbstractScript
public java.lang.Object evalNT(java.lang.String s, java.lang.Object nullValue, int _lineOffset, java.lang.String errorTip, java.util.function.BiFunction typeConverter)
public boolean evalAsBoolNT(java.lang.String s, boolean nullValue, int _lineOffset, java.lang.String errorTip)
evalAsBoolNT
in class AbstractScript
public java.lang.Object boolConverter(java.lang.Object o, java.lang.Object nullValue)
public static void main(java.lang.String[] args)
public bsh.Interpreter getInterpreter()
public void setInterpreter(bsh.Interpreter $14)
public BeanShellScript getParent()
public void setParent(BeanShellScript $15)
public java.lang.String getImports()
public void setImports(java.lang.String $16)
public java.lang.String getSrc()
public void setSrc(java.lang.String $17)
public int getLineOffset()
public void setLineOffset(int $18)
setLineOffset
in class AbstractScript
public java.lang.String getMname()
public void setMname(java.lang.String $19)
public boolean isCompiled()
public void setCompiled(boolean $20)
public boolean isPrecompile()
public void setPrecompile(boolean $21)
setPrecompile
in class AbstractScript
public java.lang.Object getAsyncRc()
public void setAsyncRc(java.lang.Object $22)
public bsh.NameSpace getNs()
public void setNs(bsh.NameSpace $23)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.