public abstract class AbstractScript
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RM_DEFAULT |
static java.lang.String |
RM_RESULT |
static java.lang.String |
RM_SCRIPT |
static java.lang.String |
SL_BEANSHELL |
static java.lang.String |
SL_DEFAULT |
static java.lang.String |
SL_GROOVY |
static java.lang.String[] |
STR_VALUES_FALSE |
static java.lang.String[] |
STR_VALUES_TRUE |
Constructor and Description |
---|
AbstractScript() |
Modifier and Type | Method and Description |
---|---|
boolean |
asBool(java.lang.Object o,
boolean nullValue) |
java.lang.String |
asString(java.lang.Object o,
java.lang.String nullValue) |
abstract 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 |
compileNT() |
abstract void |
compileNT(int _lineOffset,
java.lang.String errorTip) |
void |
compileNT(netrexx.lang.Rexx _lineOffset) |
abstract ScriptFunctionI |
createFunction(java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType) |
abstract ScriptFunctionI |
createFunction(java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName) |
abstract ScriptFunctionI |
createFunction(java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName,
int lineOffset) |
abstract ScriptFunctionI |
createFunction(java.lang.String src,
java.lang.String[] parmNames,
java.lang.Class[] parmTypes,
java.lang.Class returnType,
java.lang.String scriptName,
java.lang.String functionName,
int lineOffset,
java.lang.Object delegate) |
boolean |
evalAsBoolNT(java.lang.String s) |
boolean |
evalAsBoolNT(java.lang.String s,
boolean nullValue) |
boolean |
evalAsBoolNT(java.lang.String s,
boolean nullValue,
int lineOffset) |
boolean |
evalAsBoolNT(java.lang.String s,
boolean nullValue,
int lineOffset,
java.lang.String errorTip) |
java.lang.String |
evalAsStringNT(java.lang.String s) |
java.lang.String |
evalAsStringNT(java.lang.String s,
java.lang.String nullValue) |
java.lang.String |
evalAsStringNT(java.lang.String s,
java.lang.String nullValue,
int lineOffset) |
java.lang.String |
evalAsStringNT(java.lang.String s,
java.lang.String nullValue,
int lineOffset,
java.lang.String errorTip) |
java.lang.Object |
evalNT(java.lang.String s) |
java.lang.Object |
evalNT(java.lang.String s,
java.lang.Object nullValue) |
java.lang.Object |
evalNT(java.lang.String s,
java.lang.Object nullValue,
int _lineOffset) |
abstract java.lang.Object |
evalNT(java.lang.String s,
java.lang.Object nullValue,
int _lineOffset,
java.lang.String errorTip) |
static AbstractScript |
getInstance() |
static java.lang.Object |
getInstance(electric.xml.Element _el)
zu dieser methode, von thomas:
"also es wird im rahmen der simulation bei konplott benutzt. allerdings nur mit returns = script.
|
static AbstractScript |
getInstance(java.lang.String _language) |
static AbstractScript |
getInstance(java.lang.String _str,
boolean _precompile)
First tries to parse the given _str as XML and if this works out uses the
getInstance( Element ) method to create a script instance (return mode
'result' will be ignored); if parsing fails assumes _str is the script
source directly and will use the second getInstance() method.
|
static AbstractScript |
getInstance(java.lang.String _language,
java.util.List<ScriptImport> _defaultImports) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
AbstractScript _parent) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
AbstractScript _parent,
java.lang.ClassLoader _cl) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
AbstractScript _parent,
java.lang.ClassLoader _cl,
java.util.Map _initialvars) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
AbstractScript _parent,
java.lang.ClassLoader _cl,
java.util.Map _initialvars,
java.util.List<ScriptImport> _defaultImports) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
AbstractScript _parent,
java.lang.ClassLoader _cl,
java.util.Map _initialvars,
java.util.List<ScriptImport> _defaultImports,
java.lang.Class baseClass) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
AbstractScript _parent,
java.lang.ClassLoader _cl,
java.util.Map _initialvars,
java.util.List<ScriptImport> _defaultImports,
java.lang.Class baseClass,
java.lang.String scriptname) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
java.util.List<ScriptImport> _defaultImports) |
static AbstractScript |
getInstance(java.lang.String _language,
java.lang.String _source,
boolean _precompile,
java.util.List<ScriptImport> _defaultImports,
java.lang.String scriptname) |
java.lang.String |
getInterrupt() |
java.lang.String |
getJavaSyntaxImports(java.util.List imports) |
java.lang.String |
getJavaSyntaxImports(java.util.List imports,
boolean aliasAllowed) |
abstract java.lang.String |
getLanguage() |
java.lang.Object |
getNT(java.lang.String s) |
abstract java.lang.Object |
getNT(java.lang.String s,
java.lang.Object exValue) |
abstract java.lang.String |
getSource() |
abstract boolean |
hasSource() |
static boolean |
isScriptException(java.lang.Throwable t) |
boolean |
runAsBoolNT() |
boolean |
runAsBoolNT(boolean nullValue) |
boolean |
runAsBoolNT(boolean nullValue,
int lineOffset) |
boolean |
runAsBoolNT(boolean nullValue,
int lineOffset,
java.lang.String errorTip) |
java.lang.Object |
runAsObjectNT() |
java.lang.Object |
runAsObjectNT(java.lang.Object nullValue) |
java.lang.Object |
runAsObjectNT(java.lang.Object nullValue,
int _lineOffset) |
abstract java.lang.Object |
runAsObjectNT(java.lang.Object nullValue,
int _lineOffset,
java.lang.String errorTip) |
java.lang.String |
runAsStringNT() |
java.lang.String |
runAsStringNT(java.lang.String nullValue) |
java.lang.String |
runAsStringNT(java.lang.String nullValue,
int _lineOffset) |
java.lang.String |
runAsStringNT(java.lang.String nullValue,
int _lineOffset,
java.lang.String errorTip) |
void |
runNT() |
void |
runNT(int _lineOffset) |
void |
runNT(int _lineOffset,
java.lang.String errorTip) |
void |
setInterrupt(java.lang.String $10) |
abstract void |
setLineOffset(int idx) |
void |
setNT(java.util.Map map) |
void |
setNT(java.lang.String s,
boolean value) |
void |
setNT(java.lang.String s,
boolean value,
boolean local) |
void |
setNT(java.lang.String s,
double value) |
void |
setNT(java.lang.String s,
double value,
boolean local) |
void |
setNT(java.lang.String s,
float value) |
void |
setNT(java.lang.String s,
float value,
boolean local) |
void |
setNT(java.lang.String s,
int value) |
void |
setNT(java.lang.String s,
int value,
boolean local) |
void |
setNT(java.lang.String s,
long value) |
void |
setNT(java.lang.String s,
long value,
boolean local) |
void |
setNT(java.lang.String s,
java.lang.Object value) |
abstract void |
setNT(java.lang.String s,
java.lang.Object value,
boolean local) |
abstract void |
setPrecompile(boolean b) |
abstract void |
setSource(java.lang.String s) |
public static final java.lang.String RM_SCRIPT
public static final java.lang.String RM_RESULT
public static final java.lang.String RM_DEFAULT
public static final java.lang.String SL_BEANSHELL
public static final java.lang.String SL_GROOVY
public static final java.lang.String SL_DEFAULT
public static final java.lang.String[] STR_VALUES_TRUE
public static final java.lang.String[] STR_VALUES_FALSE
public static AbstractScript getInstance(java.lang.String _str, boolean _precompile)
public static java.lang.Object getInstance(electric.xml.Element _el)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, java.util.List<ScriptImport> _defaultImports)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, java.util.List<ScriptImport> _defaultImports, java.lang.String scriptname)
public static AbstractScript getInstance(java.lang.String _language, java.util.List<ScriptImport> _defaultImports)
public static AbstractScript getInstance()
public static AbstractScript getInstance(java.lang.String _language)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, AbstractScript _parent)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, AbstractScript _parent, java.lang.ClassLoader _cl)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, AbstractScript _parent, java.lang.ClassLoader _cl, java.util.Map _initialvars)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, AbstractScript _parent, java.lang.ClassLoader _cl, java.util.Map _initialvars, java.util.List<ScriptImport> _defaultImports)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, AbstractScript _parent, java.lang.ClassLoader _cl, java.util.Map _initialvars, java.util.List<ScriptImport> _defaultImports, java.lang.Class baseClass)
public static AbstractScript getInstance(java.lang.String _language, java.lang.String _source, boolean _precompile, AbstractScript _parent, java.lang.ClassLoader _cl, java.util.Map _initialvars, java.util.List<ScriptImport> _defaultImports, java.lang.Class baseClass, java.lang.String scriptname)
public java.lang.String getJavaSyntaxImports(java.util.List imports)
public java.lang.String getJavaSyntaxImports(java.util.List imports, boolean aliasAllowed)
public abstract java.lang.String getLanguage()
public abstract java.lang.String getSource()
public abstract void setSource(java.lang.String s)
public abstract boolean hasSource()
public abstract void setLineOffset(int idx)
public abstract void setPrecompile(boolean b)
public void compileNT()
public void compileNT(netrexx.lang.Rexx _lineOffset)
public abstract void compileNT(int _lineOffset, java.lang.String errorTip)
public void close()
public abstract void clear()
public abstract ScriptFunctionI createFunction(java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName, int lineOffset, java.lang.Object delegate)
public abstract ScriptFunctionI createFunction(java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName, int lineOffset)
public abstract ScriptFunctionI createFunction(java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType, java.lang.String scriptName, java.lang.String functionName)
public abstract ScriptFunctionI createFunction(java.lang.String src, java.lang.String[] parmNames, java.lang.Class[] parmTypes, java.lang.Class returnType)
public void runNT()
public void runNT(int _lineOffset)
public void runNT(int _lineOffset, java.lang.String errorTip)
public java.lang.Object runAsObjectNT()
public java.lang.Object runAsObjectNT(java.lang.Object nullValue)
public java.lang.Object runAsObjectNT(java.lang.Object nullValue, int _lineOffset)
public abstract java.lang.Object runAsObjectNT(java.lang.Object nullValue, int _lineOffset, java.lang.String errorTip)
public java.lang.String runAsStringNT()
public java.lang.String runAsStringNT(java.lang.String nullValue)
public java.lang.String runAsStringNT(java.lang.String nullValue, int _lineOffset)
public java.lang.String runAsStringNT(java.lang.String nullValue, int _lineOffset, java.lang.String errorTip)
public boolean runAsBoolNT()
public boolean runAsBoolNT(boolean nullValue)
public boolean runAsBoolNT(boolean nullValue, int lineOffset)
public boolean runAsBoolNT(boolean nullValue, int lineOffset, java.lang.String errorTip)
public void setNT(java.lang.String s, java.lang.Object value)
public abstract void setNT(java.lang.String s, java.lang.Object value, boolean local)
public void setNT(java.lang.String s, long value)
public void setNT(java.lang.String s, long value, boolean local)
public void setNT(java.lang.String s, int value)
public void setNT(java.lang.String s, int value, boolean local)
public void setNT(java.lang.String s, float value)
public void setNT(java.lang.String s, float value, boolean local)
public void setNT(java.lang.String s, double value)
public void setNT(java.lang.String s, double value, boolean local)
public void setNT(java.lang.String s, boolean value)
public void setNT(java.lang.String s, boolean value, boolean local)
public void setNT(java.util.Map map)
public java.lang.Object getNT(java.lang.String s)
public abstract java.lang.Object getNT(java.lang.String s, java.lang.Object exValue)
public java.lang.Object evalNT(java.lang.String s)
public java.lang.Object evalNT(java.lang.String s, java.lang.Object nullValue)
public java.lang.Object evalNT(java.lang.String s, java.lang.Object nullValue, int _lineOffset)
public abstract java.lang.Object evalNT(java.lang.String s, java.lang.Object nullValue, int _lineOffset, java.lang.String errorTip)
public java.lang.String evalAsStringNT(java.lang.String s)
public java.lang.String evalAsStringNT(java.lang.String s, java.lang.String nullValue)
public java.lang.String evalAsStringNT(java.lang.String s, java.lang.String nullValue, int lineOffset)
public java.lang.String evalAsStringNT(java.lang.String s, java.lang.String nullValue, int lineOffset, java.lang.String errorTip)
public boolean evalAsBoolNT(java.lang.String s)
public boolean evalAsBoolNT(java.lang.String s, boolean nullValue)
public boolean evalAsBoolNT(java.lang.String s, boolean nullValue, int lineOffset)
public boolean evalAsBoolNT(java.lang.String s, boolean nullValue, int lineOffset, java.lang.String errorTip)
public java.lang.String asString(java.lang.Object o, java.lang.String nullValue)
public boolean asBool(java.lang.Object o, boolean nullValue)
public static boolean isScriptException(java.lang.Throwable t)
public java.lang.String getInterrupt()
public void setInterrupt(java.lang.String $10)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.