Package microsoft.jscript.vsa
Class VsaEngine
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.jscript.vsa.BaseVsaEngine
-
- microsoft.jscript.vsa.VsaEngine
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class VsaEngine extends BaseVsaEngine
The base .NET class managing Microsoft.JScript.Vsa.VsaEngine, Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/Microsoft.JScript.Vsa.VsaEngine
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: Microsoft.JScriptstatic String
className
Qualified class name: Microsoft.JScript.Vsa.VsaEnginestatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
-
Methods inherited from class microsoft.jscript.vsa.BaseVsaEngine
Close, Compile, getAppDomain, getApplicationBase, getAssembly, getEvidence, getGenerateDebugInfo, getIsCompiled, getIsDirty, getIsRunning, getItems, getLanguage, getLCID, getName, GetOption, getRootMoniker, getRootNamespace, getSite, getVersion, InitNew, LoadSourceState, RevokeCache, Run, SaveCompiledState, SaveSourceState, setAppDomain, setApplicationBase, setEvidence, setGenerateDebugInfo, setIsDirty, setLCID, setName, SetOption, setRootMoniker, setRootNamespace, setSite
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: Microsoft.JScript- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: Microsoft.JScript.Vsa.VsaEngine- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VsaEngine
public VsaEngine(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
VsaEngine
public VsaEngine() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException
-
VsaEngine
public VsaEngine(boolean fast) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, ArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classBaseVsaEngine
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classBaseVsaEngine
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classBaseVsaEngine
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classBaseVsaEngine
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classBaseVsaEngine
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classBaseVsaEngine
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static VsaEngine cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoVsaEngine
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
VsaEngine
instance- Throws:
Throwable
- in case of error during cast operation
-
CompileEmpty
public boolean CompileEmpty() throws Throwable, ArgumentException, JSVsaException
- Throws:
Throwable
ArgumentException
JSVsaException
-
IsValidIdentifier
public boolean IsValidIdentifier(String ident) throws Throwable, JSVsaException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, EndOfFile, OutOfMemoryException, NotSupportedException, NotImplementedException, FormatException, OverflowException, ArithmeticException, JScriptException
- Overrides:
IsValidIdentifier
in classBaseVsaEngine
- Throws:
Throwable
JSVsaException
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
CultureNotFoundException
InvalidOperationException
EndOfFile
OutOfMemoryException
NotSupportedException
NotImplementedException
FormatException
OverflowException
ArithmeticException
JScriptException
-
GetOriginalArrayConstructor
public ArrayConstructor GetOriginalArrayConstructor() throws Throwable, ArgumentNullException, NotImplementedException
-
CreateEngineAndGetGlobalScope
public static GlobalScope CreateEngineAndGetGlobalScope(boolean fast, String[] assemblyNames) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, JSVsaException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
JSVsaException
IndexOutOfRangeException
CultureNotFoundException
NotSupportedException
NotImplementedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
CreateEngineAndGetGlobalScope
public static GlobalScope CreateEngineAndGetGlobalScope(boolean dupParam0, JCORefOut dupParam1) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, JSVsaException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
JSVsaException
IndexOutOfRangeException
CultureNotFoundException
NotSupportedException
NotImplementedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
CreateEngineAndGetGlobalScopeWithType
public static GlobalScope CreateEngineAndGetGlobalScopeWithType(boolean fast, String[] assemblyNames, RuntimeTypeHandle callingTypeHandle) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, ArgumentOutOfRangeException, JSVsaException, IndexOutOfRangeException, NotSupportedException, NotImplementedException, SecurityException, NullReferenceException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
ArgumentOutOfRangeException
JSVsaException
IndexOutOfRangeException
NotSupportedException
NotImplementedException
SecurityException
NullReferenceException
-
CreateEngineAndGetGlobalScopeWithType
public static GlobalScope CreateEngineAndGetGlobalScopeWithType(boolean dupParam0, JCORefOut dupParam1, RuntimeTypeHandle dupParam2) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, ArgumentOutOfRangeException, JSVsaException, IndexOutOfRangeException, NotSupportedException, NotImplementedException, SecurityException, NullReferenceException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
ArgumentOutOfRangeException
JSVsaException
IndexOutOfRangeException
NotSupportedException
NotImplementedException
SecurityException
NullReferenceException
-
CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace
public static GlobalScope CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace(boolean fast, String[] assemblyNames, RuntimeTypeHandle callingTypeHandle, String rootNamespace) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, JSVsaException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
JSVsaException
IndexOutOfRangeException
CultureNotFoundException
NotSupportedException
NotImplementedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
NullReferenceException
-
CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace
public static GlobalScope CreateEngineAndGetGlobalScopeWithTypeAndRootNamespace(boolean dupParam0, JCORefOut dupParam1, RuntimeTypeHandle dupParam2, String dupParam3) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, JSVsaException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, NotImplementedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
JSVsaException
IndexOutOfRangeException
CultureNotFoundException
NotSupportedException
NotImplementedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
NullReferenceException
-
GetMainScope
public GlobalScope GetMainScope() throws Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException, NotSupportedException, IndexOutOfRangeException, NotImplementedException, InvalidOperationException, ArgumentException
-
GetGlobalScope
public IVsaScriptScope GetGlobalScope() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
-
GetOriginalObjectConstructor
public ObjectConstructor GetOriginalObjectConstructor() throws Throwable, ArgumentNullException, NotImplementedException
-
GetOriginalRegExpConstructor
public RegExpConstructor GetOriginalRegExpConstructor() throws Throwable, ArgumentNullException, NotImplementedException
-
PopScriptObject
public ScriptObject PopScriptObject() throws Throwable, ArgumentNullException, NotImplementedException
-
ScriptObjectStackTop
public ScriptObject ScriptObjectStackTop() throws Throwable, ArgumentNullException, NotImplementedException
-
Clone
public IJSVsaEngine Clone(AppDomain domain) throws Throwable, NotImplementedException
- Throws:
Throwable
NotImplementedException
-
GetItem
public IJSVsaItem GetItem(String itemName) throws Throwable
- Throws:
Throwable
-
GetItemAtIndex
public IJSVsaItem GetItemAtIndex(int index) throws Throwable
- Throws:
Throwable
-
CreateEngine
public static VsaEngine CreateEngine() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException
-
CreateEngineWithType
public static VsaEngine CreateEngineWithType(RuntimeTypeHandle callingTypeHandle) throws Throwable, NotImplementedException, IndexOutOfRangeException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, ObjectDisposedException, AbandonedMutexException, InvalidOperationException, MissingMethodException, TargetInvocationException, JSVsaException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException
- Throws:
Throwable
NotImplementedException
IndexOutOfRangeException
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
ObjectDisposedException
AbandonedMutexException
InvalidOperationException
MissingMethodException
TargetInvocationException
JSVsaException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
NullReferenceException
-
GetAssembly
public Assembly GetAssembly() throws Throwable, ArgumentException, JSVsaException, ArgumentNullException, InvalidOperationException, NotSupportedException, FormatException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, TargetInvocationException
- Throws:
Throwable
ArgumentException
JSVsaException
ArgumentNullException
InvalidOperationException
NotSupportedException
FormatException
IndexOutOfRangeException
ArgumentOutOfRangeException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
TargetInvocationException
-
GetModule
public Module GetModule() throws Throwable, ArgumentException, JSVsaException, ArgumentNullException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, NotImplementedException, InvalidCastException, NullReferenceException, MissingMethodException, FormatException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, EndOfFile, TypeLoadException
- Throws:
Throwable
ArgumentException
JSVsaException
ArgumentNullException
InvalidOperationException
NotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
CultureNotFoundException
NotImplementedException
InvalidCastException
NullReferenceException
MissingMethodException
FormatException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
EndOfFile
TypeLoadException
-
InitVsaEngine
public void InitVsaEngine(String rootMoniker, IJSVsaSite site) throws Throwable
- Throws:
Throwable
-
PushScriptObject
public void PushScriptObject(ScriptObject obj) throws Throwable, ArgumentNullException, NotImplementedException
-
RegisterEventSource
public void RegisterEventSource(String name) throws Throwable
- Throws:
Throwable
-
Reset
public void Reset() throws Throwable, ArgumentException, JSVsaException
- Overrides:
Reset
in classBaseVsaEngine
- Throws:
Throwable
ArgumentException
JSVsaException
-
Restart
public void Restart() throws Throwable, ArgumentException, JSVsaException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException
-
Run
public void Run(AppDomain domain) throws Throwable, NotImplementedException
- Throws:
Throwable
NotImplementedException
-
RunEmpty
public void RunEmpty() throws Throwable, ArgumentException, JSVsaException
- Throws:
Throwable
ArgumentException
JSVsaException
-
SetOutputStream
public void SetOutputStream(IMessageReceiver output) throws Throwable, ArgumentNullException, FormatException, ArgumentOutOfRangeException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, ArgumentException, InvalidOperationException, SecurityException, IndexOutOfRangeException
-
getLenientGlobalObject
public LenientGlobalObject getLenientGlobalObject() throws Throwable, ArgumentNullException, NotImplementedException
-
-