public class FilterGroovyScript extends GroovyScript
GroovyScript execution environment for GrooQL filter expressions.
Enforces strict AST restrictions (no method or closure declarations, no arbitrary imports and restricted statement/expression token allowlists).
GroovyScript.Function, GroovyScript.HGBRM_DEFAULT, RM_RESULT, RM_SCRIPT, SL_BEANSHELL, SL_DEFAULT, SL_GROOVY, STR_VALUES_FALSE, STR_VALUES_TRUE| Constructor and Description |
|---|
FilterGroovyScript(java.util.Map<?,?> initialvars) |
FilterGroovyScript(java.lang.String source,
GroovyScript.HGB binding) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evalNT(java.lang.String s,
java.lang.Object nullValue,
int lineOffset,
java.lang.String errorTip)
Evaluates a string as a script with a specified null value and line offset and returns the result as Object.
|
org.codehaus.groovy.control.CompilerConfiguration |
getCompilerConfiguration(java.util.List<ScriptImport> imports,
java.lang.String baseClassName)
Adds custom compiling options to the given CompilerConfiguration.
|
java.lang.Object |
runAsObjectNT(java.lang.Object nullValue,
int lineOffset,
java.lang.String errorTip)
This method is called *NT ("no throw") but actually does throw a
GroovyScriptException should the
script throw an exception while running. |
asBool, asBoolStatic, boolConverter, clear, close, compileNT, compilesToSame, createFunction, createFunction, createFunction, createFunction, createFunction, createScript, evalAsBoolNT, evalNT, getBinding, getCompilerConf, getEvalScript, getEvalScript, getLanguage, getLineOffset, getNT, getParent, getShell, getSource, hasSource, initShellInstance, isActualScript, isActualScriptNT, isActualScriptNT, isActualScriptNT, isActualScriptTR, isActualScriptTR, isValidVarName, nextFunctionCounter, nextScriptCounter, replaceCustomLogicalOperators, setBinding, setCompilerConf, setLineOffset, setNT, setParent, setPrecompile, setShell, setSourceasString, 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, runAsObjectNT, runAsObjectNT, runAsObjectNT, runAsStringNT, runAsStringNT, runAsStringNT, runAsStringNT, runNT, runNT, runNT, setInterrupt, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNT, setNTpublic FilterGroovyScript(java.util.Map<?,?> initialvars)
public FilterGroovyScript(java.lang.String source,
GroovyScript.HGB binding)
public org.codehaus.groovy.control.CompilerConfiguration getCompilerConfiguration(java.util.List<ScriptImport> imports, java.lang.String baseClassName)
GroovyScriptpublic java.lang.Object runAsObjectNT(java.lang.Object nullValue,
int lineOffset,
java.lang.String errorTip)
GroovyScriptGroovyScriptException should the
script throw an exception while running.runAsObjectNT in class GroovyScriptnullValue - The value to return if the script returns null.lineOffset - An integer line offset to use for error reporting.errorTip - A string to use as an error message tip if compilation fails.public java.lang.Object evalNT(java.lang.String s,
java.lang.Object nullValue,
int lineOffset,
java.lang.String errorTip)
AbstractScriptevalNT in class GroovyScripts - The source of the script to evaluate.nullValue - The value to return if the evaluation returns null.lineOffset - An integer line offset to use for error reporting.errorTip - A string to use as an error message tip if evaluation fails.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.