Package microsoft.jscript
Class IEngine2Implementation
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.jscript.IEngine2Implementation
-
- All Implemented Interfaces:
IEngine2
,IJCOBridgeReflected
public class IEngine2Implementation extends NetObject implements IEngine2
The base .NET class managing Microsoft.JScript.IEngine2, Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/Microsoft.JScript.IEngine2
-
-
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.IEngine2static JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description IEngine2Implementation(Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IJSVsaEngine
Clone(AppDomain domain)
boolean
CompileEmpty()
void
ConnectEvents()
void
DisconnectEvents()
Assembly
GetAssembly()
IVsaScriptScope
GetGlobalScope()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeModule
GetModule()
void
InitVsaEngine(String rootMoniker, IJSVsaSite site)
void
Interrupt()
void
RegisterEventSource(String name)
void
Restart()
void
Run(AppDomain domain)
void
RunEmpty()
static IEngine2
ToIEngine2(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoIEngine2
, a cast assert is made to check if types are compatible.-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
cast, Equals, Equals, GetHashCode, GetType, hashCode, setJCOInstance, 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.IEngine2- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIEngine2
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- 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 interfaceIEngine2
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- 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 interfaceIEngine2
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- 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 interfaceIEngine2
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIEngine2
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
ToIEngine2
public static IEngine2 ToIEngine2(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoIEngine2
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
IEngine2
instance- Throws:
Throwable
- in case of error during cast operation
-
CompileEmpty
public boolean CompileEmpty() throws Throwable
- Specified by:
CompileEmpty
in interfaceIEngine2
- Throws:
Throwable
-
GetGlobalScope
public IVsaScriptScope GetGlobalScope() throws Throwable
- Specified by:
GetGlobalScope
in interfaceIEngine2
- Throws:
Throwable
-
Clone
public IJSVsaEngine Clone(AppDomain domain) throws Throwable
-
GetAssembly
public Assembly GetAssembly() throws Throwable
- Specified by:
GetAssembly
in interfaceIEngine2
- Throws:
Throwable
-
ConnectEvents
public void ConnectEvents() throws Throwable
- Specified by:
ConnectEvents
in interfaceIEngine2
- Throws:
Throwable
-
DisconnectEvents
public void DisconnectEvents() throws Throwable
- Specified by:
DisconnectEvents
in interfaceIEngine2
- Throws:
Throwable
-
InitVsaEngine
public void InitVsaEngine(String rootMoniker, IJSVsaSite site) throws Throwable
- Specified by:
InitVsaEngine
in interfaceIEngine2
- Throws:
Throwable
-
Interrupt
public void Interrupt() throws Throwable
-
RegisterEventSource
public void RegisterEventSource(String name) throws Throwable
- Specified by:
RegisterEventSource
in interfaceIEngine2
- Throws:
Throwable
-
Restart
public void Restart() throws Throwable
-
-