public class DataQLScriptEngine extends AbstractScriptEngine implements ScriptEngine, Compilable, Hints
contextARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAMEINDEX_OVERFLOW_NEAR, INDEX_OVERFLOW_NULL, INDEX_OVERFLOW_THROW, MAX_DECIMAL_DIGITS, MIN_DECIMAL_WIDTH, MIN_DECIMAL_WIDTH_BIG, MIN_DECIMAL_WIDTH_DOUBLE, MIN_DECIMAL_WIDTH_FLOAT, MIN_INTEGER_WIDTH, MIN_INTEGER_WIDTH_BIG, MIN_INTEGER_WIDTH_BYTE, MIN_INTEGER_WIDTH_INT, MIN_INTEGER_WIDTH_LONG, MIN_INTEGER_WIDTH_SHORT, NUMBER_ROUNDING, NUMBER_ROUNDING_CEILING, NUMBER_ROUNDING_DOWN, NUMBER_ROUNDING_FLOOR, NUMBER_ROUNDING_HALF_DOWN, NUMBER_ROUNDING_HALF_EVEN, NUMBER_ROUNDING_HALF_UP, NUMBER_ROUNDING_UNNECESSARY, NUMBER_ROUNDING_UP| 限定符和类型 | 方法和说明 |
|---|---|
CompiledScript |
compile(Reader queryString) |
CompiledScript |
compile(String queryString) |
Bindings |
createBindings() |
Object |
eval(Reader queryString,
ScriptContext context) |
Object |
eval(String queryString,
ScriptContext context) |
ScriptEngineFactory |
getFactory() |
Finder |
getFinder() |
Object |
getHint(String optionKey)
获取选项参数
|
String[] |
getHints()
获取选项参数
|
void |
removeHint(String optionKey)
删除选项参数
|
void |
setFinder(Finder finder) |
void |
setHint(String hintName,
boolean value)
设置选项参数
|
void |
setHint(String hintName,
Number value)
设置选项参数
|
void |
setHint(String hintName,
String value)
设置选项参数
|
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiteval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContextcomputeIfAbsent, forEach, getOrDefault, getOrMap, putIfAbsent, setHintspublic void removeHint(String optionKey)
HintsremoveHint 在接口中 Hintspublic Finder getFinder()
public void setFinder(Finder finder)
public ScriptEngineFactory getFactory()
getFactory 在接口中 ScriptEnginepublic Bindings createBindings()
createBindings 在接口中 ScriptEnginepublic CompiledScript compile(Reader queryString) throws ScriptException
compile 在接口中 CompilableScriptExceptionpublic CompiledScript compile(String queryString) throws ScriptException
compile 在接口中 CompilableScriptExceptionpublic Object eval(Reader queryString, ScriptContext context) throws ScriptException
eval 在接口中 ScriptEngineScriptExceptionpublic Object eval(String queryString, ScriptContext context) throws ScriptException
eval 在接口中 ScriptEngineScriptExceptionCopyright © 2020. All rights reserved.