public class Scripts extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Scripts.ScriptDefinition |
static class |
Scripts.ScriptLanguage |
| Constructor and Description |
|---|
Scripts() |
| Modifier and Type | Method and Description |
|---|---|
static CellFormatter |
cellFormatter(String scriptText,
String scriptLanguage)
Creates an implementation of the
CellFormatter SPI based on
a script. |
static DataSourceChangeListener |
dataSourceChangeListener(Scripts.ScriptDefinition script)
Creates an implementation of the
DataSourceChangeListener SPI
based on a script. |
static DataSourceResolver |
dataSourceResolver(Scripts.ScriptDefinition script)
Creates an implementation of the
DataSourceResolver SPI based on
a script. |
static DynamicSchemaProcessor |
dynamicSchemaProcessor(Scripts.ScriptDefinition script)
Creates an implementation of the
DynamicSchemaProcessor SPI based
on a script. |
static MemberFormatter |
memberFormatter(String scriptText,
String scriptLanguage)
Creates an implementation of the
MemberFormatter SPI based on
a script. |
static PropertyFormatter |
propertyFormatter(String scriptText,
String scriptLanguage)
Creates an implementation of the
PropertyFormatter SPI based on
a script. |
static UserDefinedFunction |
userDefinedFunction(Scripts.ScriptDefinition script,
String name)
Creates an implementation of the
UserDefinedFunction SPI based on
a script. |
public static PropertyFormatter propertyFormatter(String scriptText, String scriptLanguage)
PropertyFormatter SPI based on
a script.scriptText - Script textscriptLanguage - Script languagepublic static MemberFormatter memberFormatter(String scriptText, String scriptLanguage)
MemberFormatter SPI based on
a script.scriptText - Script textscriptLanguage - Script languagepublic static CellFormatter cellFormatter(String scriptText, String scriptLanguage)
CellFormatter SPI based on
a script.scriptText - Script textscriptLanguage - Script languagepublic static DataSourceChangeListener dataSourceChangeListener(Scripts.ScriptDefinition script)
DataSourceChangeListener SPI
based on a script.script - Scriptpublic static DataSourceResolver dataSourceResolver(Scripts.ScriptDefinition script)
DataSourceResolver SPI based on
a script.script - Scriptpublic static DynamicSchemaProcessor dynamicSchemaProcessor(Scripts.ScriptDefinition script)
DynamicSchemaProcessor SPI based
on a script.script - Scriptpublic static UserDefinedFunction userDefinedFunction(Scripts.ScriptDefinition script, String name)
UserDefinedFunction SPI based on
a script.
The script must declare an object called "obj" that must have a method "evaluate(evaluator, arguments)" and may have fields "name", "description", "syntax", "parameterTypes" and method "getReturnType(parameterTypes)".
script - ScriptCopyright © 2021 Hitachi Vantara. All rights reserved.