RingJavafor Ring

javax.script

12 classes of the module java.scripting.

Load them with:

using {
	"javax.script"
}

All packages

AbstractScriptEngine#

abstract · extends Object · javax.script.AbstractScriptEngine

Implements: ScriptEngine

Fields

NameTypeAccessIn Ring
ARGVStringconstant · statico.ARGV
FILENAMEStringconstant · statico.FILENAME
ENGINEStringconstant · statico.ENGINE
ENGINE_VERSIONStringconstant · statico.ENGINE_VERSION
NAMEStringconstant · statico.NAME
LANGUAGEStringconstant · statico.LANGUAGE
LANGUAGE_VERSIONStringconstant · statico.LANGUAGE_VERSION

Methods

MethodRing callJava overloads
@get@get(key)Object get(String key)
@put@put(key,value)void put(String key, Object value)
createBindingscreateBindings()Bindings createBindings()
evaleval(reader)
eval([script,bindings])
eval([ :script = v, :bindings = v ])
Object eval(Reader reader)
Object eval(String script)
Object eval(String script, Bindings bindings)
Object eval(Reader reader, Bindings bindings)
Object eval(Reader reader, ScriptContext context)
Object eval(String script, ScriptContext context)
getBindingsgetBindings(scope)Bindings getBindings(int scope)
getContextgetContext()ScriptContext getContext()
getFactorygetFactory()ScriptEngineFactory getFactory()
setBindingssetBindings(bindings,scope)void setBindings(Bindings bindings, int scope)
setContextsetContext(ctxt)void setContext(ScriptContext ctxt)

The methods and fields of Object are inherited.

Bindings#

interface · javax.script.Bindings

Extends: Map

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(BiConsumer action)
@get@get(key)Object get(Object key)
@put@put(name,value)Object put(String name, Object value)
clearclear()void clear()
computecompute(key,remappingFunction)Object compute(Object key, BiFunction remappingFunction)
computeIfAbsentcomputeIfAbsent(key,mappingFunction)Object computeIfAbsent(Object key, Function mappingFunction)
computeIfPresentcomputeIfPresent(key,remappingFunction)Object computeIfPresent(Object key, BiFunction remappingFunction)
containsKeycontainsKey(key)boolean containsKey(Object key)
containsValuecontainsValue(value)boolean containsValue(Object value)
entrySetentrySet()Set entrySet()
equalsequals(o)boolean equals(Object o)
getOrDefaultgetOrDefault(key,defaultValue)Object getOrDefault(Object key, Object defaultValue)
hashCodehashCode()int hashCode()
isEmptyisEmpty()boolean isEmpty()
keySetkeySet()Set keySet()
mergemerge(key,value,remappingFunction)Object merge(Object key, Object value, BiFunction remappingFunction)
putAllputAll(toMerge)void putAll(Map toMerge)
putIfAbsentputIfAbsent(key,value)Object putIfAbsent(Object key, Object value)
removeremove(key)
remove([key,value])
remove([ :key = v, :value = v ])
Object remove(Object key)
boolean remove(Object key, Object value)
replacereplace([key,value])
replace([ :key = v, :value = v ])
replace([key,oldValue,newValue])
replace([ :key = v, :oldValue = v, :newValue = v ])
Object replace(Object key, Object value)
boolean replace(Object key, Object oldValue, Object newValue)
replaceAllreplaceAll(function)void replaceAll(BiFunction function)
sizesize()int size()
valuesvalues()Collection values()

Compilable#

interface · javax.script.Compilable

Methods

MethodRing callJava overloads
compilecompile(script)CompiledScript compile(String script)
CompiledScript compile(Reader script)

CompiledScript#

abstract · extends Object · javax.script.CompiledScript

Methods

MethodRing callJava overloads
@eval@eval(bindings)Object eval(Bindings bindings)
Object eval(ScriptContext context)
evaleval()Object eval()
getEnginegetEngine()ScriptEngine getEngine()

The methods and fields of Object are inherited.

Invocable#

interface · javax.script.Invocable

Methods

MethodRing callJava overloads
getInterfacegetInterface(clasz)
getInterface([thiz,clasz])
getInterface([ :thiz = v, :clasz = v ])
Object getInterface(Class clasz)
Object getInterface(Object thiz, Class clasz)
invokeFunctioninvokeFunction(name,args)Object invokeFunction(String name, Object[] args)
invokeMethodinvokeMethod(thiz,name,args)Object invokeMethod(Object thiz, String name, Object[] args)

ScriptContext#

interface · javax.script.ScriptContext

Fields

NameTypeAccessIn Ring
ENGINE_SCOPEintconstant · statico.ENGINE_SCOPE
GLOBAL_SCOPEintconstant · statico.GLOBAL_SCOPE

Methods

MethodRing callJava overloads
getAttributegetAttribute(name)
getAttribute([name,scope])
getAttribute([ :name = v, :scope = v ])
Object getAttribute(String name)
Object getAttribute(String name, int scope)
getAttributesScopegetAttributesScope(name)int getAttributesScope(String name)
getBindingsgetBindings(scope)Bindings getBindings(int scope)
getErrorWritergetErrorWriter()Writer getErrorWriter()
getReadergetReader()Reader getReader()
getScopesgetScopes()List getScopes()
getWritergetWriter()Writer getWriter()
removeAttributeremoveAttribute(name,scope)Object removeAttribute(String name, int scope)
setAttributesetAttribute(name,value,scope)void setAttribute(String name, Object value, int scope)
setBindingssetBindings(bindings,scope)void setBindings(Bindings bindings, int scope)
setErrorWritersetErrorWriter(writer)void setErrorWriter(Writer writer)
setReadersetReader(reader)void setReader(Reader reader)
setWritersetWriter(writer)void setWriter(Writer writer)

ScriptEngine#

interface · javax.script.ScriptEngine

Fields

NameTypeAccessIn Ring
ARGVStringconstant · statico.ARGV
FILENAMEStringconstant · statico.FILENAME
ENGINEStringconstant · statico.ENGINE
ENGINE_VERSIONStringconstant · statico.ENGINE_VERSION
NAMEStringconstant · statico.NAME
LANGUAGEStringconstant · statico.LANGUAGE
LANGUAGE_VERSIONStringconstant · statico.LANGUAGE_VERSION

Methods

MethodRing callJava overloads
@get@get(key)Object get(String key)
@put@put(key,value)void put(String key, Object value)
createBindingscreateBindings()Bindings createBindings()
evaleval(reader)
eval([reader,context])
eval([ :reader = v, :context = v ])
Object eval(Reader reader)
Object eval(String script)
Object eval(Reader reader, ScriptContext context)
Object eval(String script, ScriptContext context)
Object eval(String script, Bindings n)
Object eval(Reader reader, Bindings n)
getBindingsgetBindings(scope)Bindings getBindings(int scope)
getContextgetContext()ScriptContext getContext()
getFactorygetFactory()ScriptEngineFactory getFactory()
setBindingssetBindings(bindings,scope)void setBindings(Bindings bindings, int scope)
setContextsetContext(context)void setContext(ScriptContext context)

ScriptEngineFactory#

interface · javax.script.ScriptEngineFactory

Methods

MethodRing callJava overloads
getEngineNamegetEngineName()String getEngineName()
getEngineVersiongetEngineVersion()String getEngineVersion()
getExtensionsgetExtensions()List getExtensions()
getLanguageNamegetLanguageName()String getLanguageName()
getLanguageVersiongetLanguageVersion()String getLanguageVersion()
getMethodCallSyntaxgetMethodCallSyntax(obj,m,args)String getMethodCallSyntax(String obj, String m, String[] args)
getMimeTypesgetMimeTypes()List getMimeTypes()
getNamesgetNames()List getNames()
getOutputStatementgetOutputStatement(toDisplay)String getOutputStatement(String toDisplay)
getParametergetParameter(key)Object getParameter(String key)
getProgramgetProgram(statements)String getProgram(String[] statements)
getScriptEnginegetScriptEngine()ScriptEngine getScriptEngine()

ScriptEngineManager#

class · extends Object · javax.script.ScriptEngineManager

Constructors

new ScriptEngineManager()
new ScriptEngineManager(ClassLoader loader)

Ring: new ScriptEngineManager(args) uses the constructor with the fewest parameters (at least one); new ScriptEngineManager makes the object with the constructor without parameters; the others: (new ScriptEngineManager).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@get@get(key)Object get(String key)
@put@put(key,value)void put(String key, Object value)
getBindingsgetBindings()Bindings getBindings()
getEngineByExtensiongetEngineByExtension(extension)ScriptEngine getEngineByExtension(String extension)
getEngineByMimeTypegetEngineByMimeType(mimeType)ScriptEngine getEngineByMimeType(String mimeType)
getEngineByNamegetEngineByName(shortName)ScriptEngine getEngineByName(String shortName)
getEngineFactoriesgetEngineFactories()List getEngineFactories()
registerEngineExtensionregisterEngineExtension(extension,factory)void registerEngineExtension(String extension, ScriptEngineFactory factory)
registerEngineMimeTyperegisterEngineMimeType(type,factory)void registerEngineMimeType(String type, ScriptEngineFactory factory)
registerEngineNameregisterEngineName(name,factory)void registerEngineName(String name, ScriptEngineFactory factory)
setBindingssetBindings(bindings)void setBindings(Bindings bindings)

The methods and fields of Object are inherited.

ScriptException#

class · extends Exception · javax.script.ScriptException

Constructors

new ScriptException(Exception e)
new ScriptException(String s)
new ScriptException(String message, String fileName, int lineNumber)
new ScriptException(String message, String fileName, int lineNumber, int columnNumber)

Ring: new ScriptException(args) uses the constructor with the fewest parameters (at least one); new ScriptException makes the object with the constructor without parameters; the others: (new ScriptException).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getColumnNumbergetColumnNumber()int getColumnNumber()
getFileNamegetFileName()String getFileName()
getLineNumbergetLineNumber()int getLineNumber()

The methods and fields of Exception are inherited.

SimpleBindings#

class · extends Object · javax.script.SimpleBindings

Implements: Bindings

Constructors

new SimpleBindings()
new SimpleBindings(Map m)

Ring: new SimpleBindings(args) uses the constructor with the fewest parameters (at least one); new SimpleBindings makes the object with the constructor without parameters; the others: (new SimpleBindings).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@forEach@forEach(action)void forEach(BiConsumer action)
@get@get(key)Object get(Object key)
@put@put(name,value)Object put(String name, Object value)
clearclear()void clear()
computecompute(key,remappingFunction)Object compute(Object key, BiFunction remappingFunction)
computeIfAbsentcomputeIfAbsent(key,mappingFunction)Object computeIfAbsent(Object key, Function mappingFunction)
computeIfPresentcomputeIfPresent(key,remappingFunction)Object computeIfPresent(Object key, BiFunction remappingFunction)
containsKeycontainsKey(key)boolean containsKey(Object key)
containsValuecontainsValue(value)boolean containsValue(Object value)
entrySetentrySet()Set entrySet()
getOrDefaultgetOrDefault(key,defaultValue)Object getOrDefault(Object key, Object defaultValue)
isEmptyisEmpty()boolean isEmpty()
keySetkeySet()Set keySet()
mergemerge(key,value,remappingFunction)Object merge(Object key, Object value, BiFunction remappingFunction)
putAllputAll(toMerge)void putAll(Map toMerge)
putIfAbsentputIfAbsent(key,value)Object putIfAbsent(Object key, Object value)
removeremove(key)
remove([key,value])
remove([ :key = v, :value = v ])
Object remove(Object key)
boolean remove(Object key, Object value)
replacereplace([key,value])
replace([ :key = v, :value = v ])
replace([key,oldValue,newValue])
replace([ :key = v, :oldValue = v, :newValue = v ])
Object replace(Object key, Object value)
boolean replace(Object key, Object oldValue, Object newValue)
replaceAllreplaceAll(function)void replaceAll(BiFunction function)
sizesize()int size()
valuesvalues()Collection values()

The methods and fields of Object are inherited.

SimpleScriptContext#

class · extends Object · javax.script.SimpleScriptContext

Implements: ScriptContext

Constructors

new SimpleScriptContext()

Ring: new SimpleScriptContext(args) uses the constructor with the fewest parameters (at least one); new SimpleScriptContext makes the object with the constructor without parameters; the others: (new SimpleScriptContext).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
ENGINE_SCOPEintconstant · statico.ENGINE_SCOPE
GLOBAL_SCOPEintconstant · statico.GLOBAL_SCOPE

Methods

MethodRing callJava overloads
getAttributegetAttribute(name)
getAttribute([name,scope])
getAttribute([ :name = v, :scope = v ])
Object getAttribute(String name)
Object getAttribute(String name, int scope)
getAttributesScopegetAttributesScope(name)int getAttributesScope(String name)
getBindingsgetBindings(scope)Bindings getBindings(int scope)
getErrorWritergetErrorWriter()Writer getErrorWriter()
getReadergetReader()Reader getReader()
getScopesgetScopes()List getScopes()
getWritergetWriter()Writer getWriter()
removeAttributeremoveAttribute(name,scope)Object removeAttribute(String name, int scope)
setAttributesetAttribute(name,value,scope)void setAttribute(String name, Object value, int scope)
setBindingssetBindings(bindings,scope)void setBindings(Bindings bindings, int scope)
setErrorWritersetErrorWriter(writer)void setErrorWriter(Writer writer)
setReadersetReader(reader)void setReader(Reader reader)
setWritersetWriter(writer)void setWriter(Writer writer)

The methods and fields of Object are inherited.

RingJava - use Java classes and methods from Ring programs.