public class Convert extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.JScript.Convert
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.JScript
|
static java.lang.String |
className
Qualified class name: Microsoft.JScript.Convert
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Convert() |
Convert(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Convert |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Convert, 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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static 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(NetObject value) |
static double |
ToNumber(java.lang.String str) |
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) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Convert()
throws java.lang.Throwable
java.lang.Throwablepublic Convert(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Convert cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Convert, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedConvert instancejava.lang.Throwable - in case of error during cast operationpublic static double CheckIfDoubleIsInteger(double d)
throws java.lang.Throwable,
JScriptException
java.lang.ThrowableJScriptExceptionpublic static Single CheckIfSingleIsInteger(Single s) throws java.lang.Throwable, JScriptException
java.lang.ThrowableJScriptExceptionpublic static NetObject Coerce(NetObject value, NetObject type) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, NotImplementedException, NullReferenceException, InvalidOperationException, JSVsaException, EndOfFile, ArgumentOutOfRangeException, JScriptException, NotSupportedException, OutOfMemoryException
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
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionJScriptExceptionIndexOutOfRangeExceptionMissingMethodExceptionArgumentExceptionNullReferenceExceptionFormatExceptionOverflowExceptionArithmeticExceptionCultureNotFoundExceptionOutOfMemoryExceptionpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionInvalidCastExceptionArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionJScriptExceptionNotImplementedExceptionMissingMethodExceptionArithmeticExceptionOverflowExceptionOutOfMemoryExceptionTypeInitializationExceptionSecurityExceptionTargetInvocationExceptionJSVsaExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic 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
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionNotSupportedExceptionNullReferenceExceptionJScriptExceptionNotImplementedExceptionMissingMethodExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionSecurityExceptionTargetInvocationExceptionJSVsaExceptionEndOfFilepublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static void ThrowTypeMismatch(NetObject val) throws java.lang.Throwable, JSVsaException, JScriptException
java.lang.ThrowableJSVsaExceptionJScriptExceptionpublic static boolean ToBoolean(double d)
throws java.lang.Throwable
java.lang.Throwablepublic static boolean ToBoolean(NetObject value) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionpublic static boolean ToBoolean(NetObject value, boolean explicitConversion) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionpublic static NetObject ToForInObject(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionpublic static int ToInt32(NetObject value) throws java.lang.Throwable, ArithmeticException, ArgumentOutOfRangeException, ArgumentException, OverflowException, NotImplementedException, NotSupportedException, InvalidOperationException, JScriptException, EndOfFile, ArgumentNullException, MissingMethodException, FormatException
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
java.lang.ThrowableJScriptExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionNotSupportedExceptionInvalidCastExceptionInvalidOperationExceptionCultureNotFoundExceptionNullReferenceExceptionNotImplementedExceptionMissingMethodExceptionFormatExceptionOverflowExceptionTargetInvocationExceptionJSVsaExceptionEndOfFilepublic static double ToNumber(NetObject value) throws java.lang.Throwable, NotImplementedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentException, JScriptException, EndOfFile, ArgumentNullException, MissingMethodException, OverflowException, FormatException, ArithmeticException
public static double ToNumber(java.lang.String str)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
NullReferenceException,
FormatException,
OverflowException,
ArithmeticException,
JScriptException,
IndexOutOfRangeException,
NotImplementedException,
MissingMethodException
public static NetObject ToObject(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, JScriptException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionJScriptExceptionpublic static NetObject ToObject2(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, JScriptException
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionJScriptExceptionpublic static java.lang.String ToString(boolean b)
throws java.lang.Throwable
java.lang.Throwablepublic static java.lang.String ToString(double d)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
ArgumentOutOfRangeException,
NullReferenceException,
FormatException,
OverflowException
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
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionNotImplementedExceptionJScriptExceptionMissingMethodExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryException