Class ScriptEngine
public class ScriptEngine : JVMBridgeBase<ScriptEngine>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IScriptEngine
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<ScriptEngine>ScriptEngine
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<ScriptEngine>.IsAssignableFrom(IJavaType)JVMBridgeBase<ScriptEngine>.IsAssignableFrom<T>()JVMBridgeBase<ScriptEngine>.Execute<T>(params T[])JVMBridgeBase<ScriptEngine>.DynBridgeClazzJVMBridgeBase<ScriptEngine>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
ScriptEngine()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("ScriptEngine class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ScriptEngine()
ScriptEngine(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("ScriptEngine class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ScriptEngine(params object[] args)
Parameters
args
object[]
Properties
ARGV
public static String ARGV { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Context
https://docs.oracle.com/en/java/javase/11/docs/api/java.scripting/javax/script/ScriptEngine.html#getContext() https://docs.oracle.com/en/java/javase/11/docs/api/java.scripting/javax/script/ScriptEngine.html#setContext(javax.script.ScriptContext)
public ScriptContext Context { get; set; }
Property Value
ENGINE
public static String ENGINE { get; }
Property Value
ENGINE_VERSION
public static String ENGINE_VERSION { get; }
Property Value
FILENAME
public static String FILENAME { get; }
Property Value
Factory
public ScriptEngineFactory Factory { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
LANGUAGE
public static String LANGUAGE { get; }
Property Value
LANGUAGE_VERSION
public static String LANGUAGE_VERSION { get; }
Property Value
NAME
public static String NAME { get; }
Property Value
Methods
CreateBindings()
public Bindings CreateBindings()
Returns
Eval(Reader)
public object Eval(Reader arg0)
Parameters
Returns
Exceptions
Eval(Reader, Bindings)
public object Eval(Reader arg0, Bindings arg1)
Parameters
Returns
Exceptions
Eval(Reader, ScriptContext)
public object Eval(Reader arg0, ScriptContext arg1)
Parameters
arg0
Readerarg1
ScriptContext
Returns
Exceptions
Eval(String)
public object Eval(String arg0)
Parameters
Returns
Exceptions
Eval(String, Bindings)
public object Eval(String arg0, Bindings arg1)
Parameters
Returns
Exceptions
Eval(String, ScriptContext)
public object Eval(String arg0, ScriptContext arg1)
Parameters
arg0
Stringarg1
ScriptContext
Returns
Exceptions
Get(String)
public object Get(String arg0)
Parameters
Returns
GetBindings(int)
public Bindings GetBindings(int arg0)
Parameters
Returns
Put(String, object)
public void Put(String arg0, object arg1)
Parameters
SetBindings(Bindings, int)
public void SetBindings(Bindings arg0, int arg1)