Package microsoft.jscript
Class GlobalObject
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.jscript.GlobalObject
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
LenientGlobalObject
public class GlobalObject extends NetObject
The base .NET class managing Microsoft.JScript.GlobalObject, Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.JScript.GlobalObject
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: Microsoft.JScriptstatic java.lang.String
className
Qualified class name: Microsoft.JScript.GlobalObjectstatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description GlobalObject()
GlobalObject(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GlobalObject
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoGlobalObject
, a cast assert is made to check if types are compatible.static void
CollectGarbage()
static java.lang.String
decodeURI(NetObject encodedURI)
static java.lang.String
decodeURIComponent(NetObject encodedURI)
static java.lang.String
encodeURI(NetObject uri)
static java.lang.String
encodeURIComponent(NetObject uriComponent)
static java.lang.String
escape(NetObject string)
static NetObject
eval(NetObject x)
static ActiveXObjectConstructor
getActiveXObject()
static ArrayConstructor
getArray()
static NetType
getboolean()
static BooleanConstructor
getBoolean()
static NetType
getbyte()
static NetType
getchar()
static DateConstructor
getDate()
static NetType
getdecimal()
static NetType
getdouble()
static EnumeratorConstructor
getEnumerator()
static ErrorConstructor
getError()
static ErrorConstructor
getEvalError()
static NetType
getfloat()
static FunctionConstructor
getFunction()
static NetType
getint()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class Typestatic NetType
getlong()
static MathObject
getMath()
static NumberConstructor
getNumber()
static ObjectConstructor
getObject()
static NetObject
GetObject(NetObject moniker, NetObject progId)
static ErrorConstructor
getRangeError()
static ErrorConstructor
getReferenceError()
static RegExpConstructor
getRegExp()
static NetType
getsbyte()
static NetType
getshort()
static StringConstructor
getString()
static ErrorConstructor
getSyntaxError()
static ErrorConstructor
getTypeError()
static NetType
getuint()
static NetType
getulong()
static ErrorConstructor
getURIError()
static NetType
getushort()
static VBArrayConstructor
getVBArray()
static NetType
getvoid()
static boolean
isFinite(double number)
static boolean
isNaN(NetObject num)
static double
parseFloat(NetObject string)
static double
parseInt(NetObject string, NetObject radix)
static java.lang.String
ScriptEngine()
static int
ScriptEngineBuildVersion()
static int
ScriptEngineMajorVersion()
static int
ScriptEngineMinorVersion()
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
static java.lang.String
unescape(NetObject string)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.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 java.lang.String assemblyShortName
Assembly name: Microsoft.JScript- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: Microsoft.JScript.GlobalObject- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.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 classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static GlobalObject cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoGlobalObject
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
GlobalObject
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
isFinite
public static boolean isFinite(double number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
isNaN
public static boolean isNaN(NetObject num) throws java.lang.Throwable, NotSupportedException, InvalidOperationException, NotImplementedException, JScriptException, IndexOutOfRangeException, ArgumentNullException, MissingMethodException, ArgumentException, ArgumentOutOfRangeException, NullReferenceException, FormatException, OverflowException, ArithmeticException
- Throws:
java.lang.Throwable
NotSupportedException
InvalidOperationException
NotImplementedException
JScriptException
IndexOutOfRangeException
ArgumentNullException
MissingMethodException
ArgumentException
ArgumentOutOfRangeException
NullReferenceException
FormatException
OverflowException
ArithmeticException
-
parseFloat
public static double parseFloat(NetObject string) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, FormatException, JScriptException, NotImplementedException, MissingMethodException, NullReferenceException, OverflowException, OutOfMemoryException, ArithmeticException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
CultureNotFoundException
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
FormatException
JScriptException
NotImplementedException
MissingMethodException
NullReferenceException
OverflowException
OutOfMemoryException
ArithmeticException
-
parseInt
public static double parseInt(NetObject string, NetObject radix) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, FormatException, JScriptException, NotImplementedException, MissingMethodException, NullReferenceException, OverflowException, OutOfMemoryException, ArithmeticException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
CultureNotFoundException
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
FormatException
JScriptException
NotImplementedException
MissingMethodException
NullReferenceException
OverflowException
OutOfMemoryException
ArithmeticException
-
ScriptEngineBuildVersion
public static int ScriptEngineBuildVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ScriptEngineMajorVersion
public static int ScriptEngineMajorVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ScriptEngineMinorVersion
public static int ScriptEngineMinorVersion() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
eval
public static NetObject eval(NetObject x) throws java.lang.Throwable, JScriptException
- Throws:
java.lang.Throwable
JScriptException
-
GetObject
public static NetObject GetObject(NetObject moniker, NetObject progId) throws java.lang.Throwable, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException, JScriptException, NullReferenceException, EndOfFile, MissingMethodException, OverflowException, TargetInvocationException
- Throws:
java.lang.Throwable
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
IndexOutOfRangeException
InvalidOperationException
ArgumentNullException
ArgumentException
JScriptException
NullReferenceException
EndOfFile
MissingMethodException
OverflowException
TargetInvocationException
-
decodeURI
public static java.lang.String decodeURI(NetObject encodedURI) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, JScriptException, NotImplementedException, MissingMethodException, OverflowException, OutOfMemoryException
-
decodeURIComponent
public static java.lang.String decodeURIComponent(NetObject encodedURI) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, JScriptException, NotImplementedException, MissingMethodException, OverflowException, OutOfMemoryException
-
encodeURI
public static java.lang.String encodeURI(NetObject uri) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, JScriptException, NotImplementedException, MissingMethodException, OverflowException, OutOfMemoryException
-
encodeURIComponent
public static java.lang.String encodeURIComponent(NetObject uriComponent) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, JScriptException, NotImplementedException, MissingMethodException, OverflowException, OutOfMemoryException
-
escape
public static java.lang.String escape(NetObject string) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, FormatException, JScriptException, NotImplementedException, MissingMethodException, NullReferenceException, OverflowException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
CultureNotFoundException
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
FormatException
JScriptException
NotImplementedException
MissingMethodException
NullReferenceException
OverflowException
OutOfMemoryException
-
ScriptEngine
public static java.lang.String ScriptEngine() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
unescape
public static java.lang.String unescape(NetObject string) throws java.lang.Throwable, ArgumentException, ArgumentNullException, CultureNotFoundException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, FormatException, JScriptException, NotImplementedException, MissingMethodException, NullReferenceException, OverflowException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
CultureNotFoundException
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
FormatException
JScriptException
NotImplementedException
MissingMethodException
NullReferenceException
OverflowException
OutOfMemoryException
-
CollectGarbage
public static void CollectGarbage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getActiveXObject
public static ActiveXObjectConstructor getActiveXObject() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getArray
public static ArrayConstructor getArray() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBoolean
public static BooleanConstructor getBoolean() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDate
public static DateConstructor getDate() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEnumerator
public static EnumeratorConstructor getEnumerator() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getError
public static ErrorConstructor getError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getEvalError
public static ErrorConstructor getEvalError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRangeError
public static ErrorConstructor getRangeError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getReferenceError
public static ErrorConstructor getReferenceError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSyntaxError
public static ErrorConstructor getSyntaxError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTypeError
public static ErrorConstructor getTypeError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getURIError
public static ErrorConstructor getURIError() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getFunction
public static FunctionConstructor getFunction() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMath
public static MathObject getMath() throws java.lang.Throwable, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, InvalidOperationException, ArgumentNullException, ArgumentException
-
getNumber
public static NumberConstructor getNumber() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getObject
public static ObjectConstructor getObject() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRegExp
public static RegExpConstructor getRegExp() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getString
public static StringConstructor getString() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getVBArray
public static VBArrayConstructor getVBArray() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getboolean
public static NetType getboolean() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getbyte
public static NetType getbyte() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getchar
public static NetType getchar() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getdecimal
public static NetType getdecimal() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getdouble
public static NetType getdouble() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getfloat
public static NetType getfloat() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getint
public static NetType getint() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getlong
public static NetType getlong() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getsbyte
public static NetType getsbyte() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getshort
public static NetType getshort() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getuint
public static NetType getuint() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getulong
public static NetType getulong() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getushort
public static NetType getushort() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getvoid
public static NetType getvoid() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-