Package microsoft.visualbasic
Class Conversion
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- microsoft.visualbasic.Conversion
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Conversion extends NetObject
The base .NET class managing Microsoft.VisualBasic.Conversion, Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/Microsoft.VisualBasic.Conversion
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: Microsoft.VisualBasic.Corestatic String
className
Qualified class name: Microsoft.VisualBasic.Conversionstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Conversion()
Conversion(Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Conversion
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoConversion
, a cast assert is made to check if types are compatible.static NetObject
CTypeDynamic(NetObject Expression, NetType TargetType)
static String
ErrorToString()
static String
ErrorToString(int ErrorNumber)
static double
Fix(double Number)
static int
Fix(int Number)
static long
Fix(long Number)
static short
Fix(short Number)
static NetObject
Fix(NetObject Number)
static Decimal
Fix(Decimal Number)
static Single
Fix(Single Number)
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 Typestatic String
Hex(byte Number)
static String
Hex(int Number)
static String
Hex(long Number)
static String
Hex(short Number)
static String
Hex(NetObject Number)
static String
Hex(SByte Number)
static String
Hex(UInt16 Number)
static String
Hex(UInt32 Number)
static String
Hex(UInt64 Number)
static double
Int(double Number)
static int
Int(int Number)
static long
Int(long Number)
static short
Int(short Number)
static NetObject
Int(NetObject Number)
static Decimal
Int(Decimal Number)
static Single
Int(Single Number)
static String
Oct(byte Number)
static String
Oct(int Number)
static String
Oct(long Number)
static String
Oct(short Number)
static String
Oct(NetObject Number)
static String
Oct(SByte Number)
static String
Oct(UInt16 Number)
static String
Oct(UInt32 Number)
static String
Oct(UInt64 Number)
void
setJCOInstance(JCObject instance)
static String
Str(NetObject Number)
static int
Val(char Expression)
static double
Val(String InputStr)
static double
Val(NetObject Expression)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: Microsoft.VisualBasic.Core- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: Microsoft.VisualBasic.Conversion- 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 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 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 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 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 Conversion cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoConversion
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Conversion
instance- Throws:
Throwable
- in case of error during cast operation
-
Val
public static double Val(NetObject Expression) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, CultureNotFoundException, OverflowException, InvalidCastException, OutOfMemoryException
-
Val
public static double Val(String InputStr) throws Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ExternalException, CultureNotFoundException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentNullException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
OutOfMemoryException
ExternalException
CultureNotFoundException
-
Fix
public static Decimal Fix(Decimal Number) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
Int
public static Decimal Int(Decimal Number) throws Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException
-
CTypeDynamic
public static NetObject CTypeDynamic(NetObject Expression, NetType TargetType) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException, OverflowException, InvalidOperationException, InvalidCastException, IndexOutOfRangeException, NullReferenceException, MissingMemberException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FormatException
OverflowException
InvalidOperationException
InvalidCastException
IndexOutOfRangeException
NullReferenceException
MissingMemberException
-
Fix
public static NetObject Fix(NetObject Number) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, IndexOutOfRangeException, FormatException, OverflowException, InvalidCastException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
InvalidOperationException
IndexOutOfRangeException
FormatException
OverflowException
InvalidCastException
-
Int
public static NetObject Int(NetObject Number) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, InvalidOperationException, IndexOutOfRangeException, FormatException, OverflowException, InvalidCastException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
InvalidOperationException
IndexOutOfRangeException
FormatException
OverflowException
InvalidCastException
-
ErrorToString
public static String ErrorToString() throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException
-
ErrorToString
public static String ErrorToString(int ErrorNumber) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArrayTypeMismatchException
-
Hex
public static String Hex(byte Number) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static String Hex(short Number) throws Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static String Hex(int Number) throws Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static String Hex(long Number) throws Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArrayTypeMismatchException
-
Hex
public static String Hex(SByte Number) throws Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentNullException, FormatException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static String Hex(NetObject Number) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArrayTypeMismatchException, OverflowException, InvalidCastException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
IndexOutOfRangeException
FormatException
InvalidOperationException
ArrayTypeMismatchException
OverflowException
InvalidCastException
-
Hex
public static String Hex(UInt16 Number) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static String Hex(UInt32 Number) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static String Hex(UInt64 Number) throws Throwable, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Oct
public static String Oct(byte Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(short Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(int Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(long Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(SByte Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(NetObject Number) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, OverflowException, InvalidOperationException, IndexOutOfRangeException, FormatException, InvalidCastException, ArrayTypeMismatchException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
OverflowException
InvalidOperationException
IndexOutOfRangeException
FormatException
InvalidCastException
ArrayTypeMismatchException
-
Oct
public static String Oct(UInt16 Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(UInt32 Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Oct
public static String Oct(UInt64 Number) throws Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, OverflowException, IndexOutOfRangeException, ArgumentOutOfRangeException
-
Str
public static String Str(NetObject Number) throws Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, InvalidCastException, IndexOutOfRangeException, FormatException, InvalidOperationException, ArrayTypeMismatchException, OverflowException
- Throws:
Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
CultureNotFoundException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
InvalidCastException
IndexOutOfRangeException
FormatException
InvalidOperationException
ArrayTypeMismatchException
OverflowException
-
-