Package microsoft.jscript
Class Convert
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.jscript.Convert
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Convert extends NetObject
The base .NET class managing Microsoft.JScript.Convert, Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.JScript.Convert
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.Convertstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Convert
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoConvert
, a cast assert is made to check if types are compatible.static double
CheckIfDoubleIsInteger(double d)
static Single
CheckIfSingleIsInteger(Single s)
static NetObject
Coerce(NetObject value, NetObject type)
static NetObject
Coerce2(NetObject value, TypeCode target, boolean truncationPermitted)
static NetObject
CoerceT(NetObject value, NetType t, boolean explicitOK)
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 objectJCType
getJCOType()
Returns the instantiated class Typestatic boolean
IsBadIndex(AST ast)
void
setJCOInstance(JCObject instance)
static void
ThrowTypeMismatch(NetObject val)
static boolean
ToBoolean(double d)
static boolean
ToBoolean(NetObject value)
static boolean
ToBoolean(NetObject value, boolean explicitConversion)
static NetObject
ToForInObject(NetObject value, VsaEngine engine)
static int
ToInt32(NetObject value)
static NetObject
ToNativeArray(NetObject value, RuntimeTypeHandle handle)
static double
ToNumber(java.lang.String str)
static double
ToNumber(NetObject value)
static NetObject
ToObject(NetObject value, VsaEngine engine)
static NetObject
ToObject2(NetObject value, VsaEngine engine)
static java.lang.String
ToString(boolean b)
static java.lang.String
ToString(double d)
static java.lang.String
ToString(NetObject value, boolean explicitOK)
-
-
-
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.Convert- See Also:
- Constant Field Values
-
-
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(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public 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 Convert cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoConvert
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Convert
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsBadIndex
public static boolean IsBadIndex(AST ast) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, NotSupportedException, NullReferenceException, JScriptException, NotImplementedException, MissingMethodException, FormatException, OverflowException, IndexOutOfRangeException, SecurityException, TargetInvocationException, JSVsaException, EndOfFile
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidCastException
ArgumentOutOfRangeException
InvalidOperationException
CultureNotFoundException
NotSupportedException
NullReferenceException
JScriptException
NotImplementedException
MissingMethodException
FormatException
OverflowException
IndexOutOfRangeException
SecurityException
TargetInvocationException
JSVsaException
EndOfFile
-
ToBoolean
public static boolean ToBoolean(double d) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToBoolean
public static boolean ToBoolean(NetObject value) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
-
ToBoolean
public static boolean ToBoolean(NetObject value, boolean explicitConversion) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
-
CheckIfDoubleIsInteger
public static double CheckIfDoubleIsInteger(double d) throws java.lang.Throwable, JScriptException
- Throws:
java.lang.Throwable
JScriptException
-
ToNumber
public static double ToNumber(NetObject value) throws java.lang.Throwable, NotImplementedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, JScriptException, EndOfFile, ArgumentNullException, MissingMethodException, OverflowException, FormatException, ArithmeticException
-
ToNumber
public static double ToNumber(java.lang.String str) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, NullReferenceException, FormatException, OverflowException, ArithmeticException, JScriptException, IndexOutOfRangeException, NotImplementedException, MissingMethodException
-
ToInt32
public static int ToInt32(NetObject value) throws java.lang.Throwable, ArithmeticException, ArgumentOutOfRangeException, ArgumentException, OverflowException, NotImplementedException, NotSupportedException, InvalidOperationException, JScriptException, EndOfFile, ArgumentNullException, MissingMethodException, FormatException
-
CheckIfSingleIsInteger
public static Single CheckIfSingleIsInteger(Single s) throws java.lang.Throwable, JScriptException
- Throws:
java.lang.Throwable
JScriptException
-
Coerce
public static NetObject Coerce(NetObject value, NetObject type) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, NotImplementedException, NullReferenceException, InvalidOperationException, JSVsaException, EndOfFile, ArgumentOutOfRangeException, JScriptException, NotSupportedException, OutOfMemoryException
-
Coerce2
public static NetObject Coerce2(NetObject value, TypeCode target, boolean truncationPermitted) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, NotImplementedException, NotSupportedException, InvalidOperationException, JScriptException, IndexOutOfRangeException, MissingMethodException, ArgumentException, NullReferenceException, FormatException, OverflowException, ArithmeticException, CultureNotFoundException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
NotImplementedException
NotSupportedException
InvalidOperationException
JScriptException
IndexOutOfRangeException
MissingMethodException
ArgumentException
NullReferenceException
FormatException
OverflowException
ArithmeticException
CultureNotFoundException
OutOfMemoryException
-
CoerceT
public static NetObject CoerceT(NetObject value, NetType t, boolean explicitOK) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, InvalidCastException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, CultureNotFoundException, NullReferenceException, JScriptException, NotImplementedException, MissingMethodException, ArithmeticException, OverflowException, OutOfMemoryException, TypeInitializationException, SecurityException, TargetInvocationException, JSVsaException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
FormatException
InvalidCastException
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
IndexOutOfRangeException
CultureNotFoundException
NullReferenceException
JScriptException
NotImplementedException
MissingMethodException
ArithmeticException
OverflowException
OutOfMemoryException
TypeInitializationException
SecurityException
TargetInvocationException
JSVsaException
-
ToForInObject
public static NetObject ToForInObject(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
-
ToNativeArray
public static NetObject ToNativeArray(NetObject value, RuntimeTypeHandle handle) throws java.lang.Throwable, JScriptException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, InvalidCastException, InvalidOperationException, CultureNotFoundException, NullReferenceException, NotImplementedException, MissingMethodException, FormatException, OverflowException, TargetInvocationException, JSVsaException, EndOfFile
- Throws:
java.lang.Throwable
JScriptException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
InvalidCastException
InvalidOperationException
CultureNotFoundException
NullReferenceException
NotImplementedException
MissingMethodException
FormatException
OverflowException
TargetInvocationException
JSVsaException
EndOfFile
-
ToObject
public static NetObject ToObject(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, JScriptException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
JScriptException
-
ToObject2
public static NetObject ToObject2(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, JScriptException
- Throws:
java.lang.Throwable
ArgumentNullException
NotImplementedException
JScriptException
-
ToString
public static java.lang.String ToString(boolean b) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToString
public static java.lang.String ToString(double d) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NullReferenceException, FormatException, OverflowException
-
ToString
public static java.lang.String ToString(NetObject value, boolean explicitOK) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, FormatException, NotImplementedException, JScriptException, MissingMethodException, NullReferenceException, OverflowException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
IndexOutOfRangeException
CultureNotFoundException
InvalidOperationException
NotSupportedException
FormatException
NotImplementedException
JScriptException
MissingMethodException
NullReferenceException
OverflowException
OutOfMemoryException
-
ThrowTypeMismatch
public static void ThrowTypeMismatch(NetObject val) throws java.lang.Throwable, JSVsaException, JScriptException
- Throws:
java.lang.Throwable
JSVsaException
JScriptException
-
-