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.StringassemblyFullNameFully assembly qualified name: Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: Microsoft.JScriptstatic java.lang.StringclassNameQualified class name: Microsoft.JScript.Convertstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Convertcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoConvert, a cast assert is made to check if types are compatible.static doubleCheckIfDoubleIsInteger(double d)static SingleCheckIfSingleIsInteger(Single s)static NetObjectCoerce(NetObject value, NetObject type)static NetObjectCoerce2(NetObject value, TypeCode target, boolean truncationPermitted)static NetObjectCoerceT(NetObject value, NetType t, boolean explicitOK)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic booleanIsBadIndex(AST ast)voidsetJCOInstance(JCObject instance)static voidThrowTypeMismatch(NetObject val)static booleanToBoolean(double d)static booleanToBoolean(NetObject value)static booleanToBoolean(NetObject value, boolean explicitConversion)static NetObjectToForInObject(NetObject value, VsaEngine engine)static intToInt32(NetObject value)static NetObjectToNativeArray(NetObject value, RuntimeTypeHandle handle)static doubleToNumber(java.lang.String str)static doubleToNumber(NetObject value)static NetObjectToObject(NetObject value, VsaEngine engine)static NetObjectToObject2(NetObject value, VsaEngine engine)static java.lang.StringToString(boolean b)static java.lang.StringToString(double d)static java.lang.StringToString(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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Convert cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoConvert, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Convertinstance- 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.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionCultureNotFoundExceptionNotSupportedExceptionNullReferenceExceptionJScriptExceptionNotImplementedExceptionMissingMethodExceptionFormatExceptionOverflowExceptionIndexOutOfRangeExceptionSecurityExceptionTargetInvocationExceptionJSVsaExceptionEndOfFile
-
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.ThrowableArgumentNullExceptionNotImplementedException
-
ToBoolean
public static boolean ToBoolean(NetObject value, boolean explicitConversion) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionNotImplementedException
-
CheckIfDoubleIsInteger
public static double CheckIfDoubleIsInteger(double d) throws java.lang.Throwable, JScriptException- Throws:
java.lang.ThrowableJScriptException
-
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.ThrowableJScriptException
-
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.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionJScriptExceptionIndexOutOfRangeExceptionMissingMethodExceptionArgumentExceptionNullReferenceExceptionFormatExceptionOverflowExceptionArithmeticExceptionCultureNotFoundExceptionOutOfMemoryException
-
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.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionInvalidCastExceptionArgumentOutOfRangeExceptionNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNullReferenceExceptionJScriptExceptionNotImplementedExceptionMissingMethodExceptionArithmeticExceptionOverflowExceptionOutOfMemoryExceptionTypeInitializationExceptionSecurityExceptionTargetInvocationExceptionJSVsaException
-
ToForInObject
public static NetObject ToForInObject(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException
- Throws:
java.lang.ThrowableArgumentNullExceptionNotImplementedException
-
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.ThrowableJScriptExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionNotSupportedExceptionInvalidCastExceptionInvalidOperationExceptionCultureNotFoundExceptionNullReferenceExceptionNotImplementedExceptionMissingMethodExceptionFormatExceptionOverflowExceptionTargetInvocationExceptionJSVsaExceptionEndOfFile
-
ToObject
public static NetObject ToObject(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, JScriptException
- Throws:
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionJScriptException
-
ToObject2
public static NetObject ToObject2(NetObject value, VsaEngine engine) throws java.lang.Throwable, ArgumentNullException, NotImplementedException, JScriptException
- Throws:
java.lang.ThrowableArgumentNullExceptionNotImplementedExceptionJScriptException
-
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.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFormatExceptionNotImplementedExceptionJScriptExceptionMissingMethodExceptionNullReferenceExceptionOverflowExceptionOutOfMemoryException
-
ThrowTypeMismatch
public static void ThrowTypeMismatch(NetObject val) throws java.lang.Throwable, JSVsaException, JScriptException
- Throws:
java.lang.ThrowableJSVsaExceptionJScriptException
-
-