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=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.VisualBasic.Conversion
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.VisualBasic.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: Microsoft.VisualBasic.Corestatic java.lang.String
className
Qualified class name: Microsoft.VisualBasic.Conversionstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Conversion()
Conversion(java.lang.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 java.lang.String
ErrorToString()
static java.lang.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)
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 java.lang.String
Hex(byte Number)
static java.lang.String
Hex(int Number)
static java.lang.String
Hex(long Number)
static java.lang.String
Hex(short Number)
static java.lang.String
Hex(NetObject Number)
static java.lang.String
Hex(SByte Number)
static java.lang.String
Hex(UInt16 Number)
static java.lang.String
Hex(UInt32 Number)
static java.lang.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 java.lang.String
Oct(byte Number)
static java.lang.String
Oct(int Number)
static java.lang.String
Oct(long Number)
static java.lang.String
Oct(short Number)
static java.lang.String
Oct(NetObject Number)
static java.lang.String
Oct(SByte Number)
static java.lang.String
Oct(UInt16 Number)
static java.lang.String
Oct(UInt32 Number)
static java.lang.String
Oct(UInt64 Number)
void
setJCOInstance(JCObject instance)
static java.lang.String
Str(NetObject Number)
static int
Val(char Expression)
static double
Val(java.lang.String InputStr)
static double
Val(NetObject Expression)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: Microsoft.VisualBasic.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: Microsoft.VisualBasic.Core- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: Microsoft.VisualBasic.Conversion- 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 Conversion cast(IJCOBridgeReflected from) throws java.lang.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:
java.lang.Throwable
- in case of error during cast operation
-
Fix
public static double Fix(double Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Int
public static double Int(double Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Val
public static double Val(NetObject Expression) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, CultureNotFoundException, OverflowException, InvalidCastException, ArgumentNullException
-
Val
public static double Val(java.lang.String InputStr) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ExternalException, CultureNotFoundException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
OutOfMemoryException
ExternalException
CultureNotFoundException
OverflowException
-
Fix
public static short Fix(short Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Int
public static short Int(short Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Fix
public static int Fix(int Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Int
public static int Int(int Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Val
public static int Val(char Expression) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Fix
public static long Fix(long Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Int
public static long Int(long Number) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Fix
public static Decimal Fix(Decimal Number) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
IndexOutOfRangeException
-
Int
public static Decimal Int(Decimal Number) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException
-
CTypeDynamic
public static NetObject CTypeDynamic(NetObject Expression, NetType TargetType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, OutOfMemoryException, ExternalException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, OverflowException, InvalidCastException, NullReferenceException, MissingMemberException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
OutOfMemoryException
ExternalException
MissingMethodException
TargetInvocationException
IndexOutOfRangeException
FormatException
OverflowException
InvalidCastException
NullReferenceException
MissingMemberException
-
Fix
public static NetObject Fix(NetObject Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, FormatException, OverflowException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
FormatException
OverflowException
InvalidCastException
-
Int
public static NetObject Int(NetObject Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, FormatException, OverflowException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
FormatException
OverflowException
InvalidCastException
-
ErrorToString
public static java.lang.String ErrorToString() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, OutOfMemoryException, FormatException
-
ErrorToString
public static java.lang.String ErrorToString(int ErrorNumber) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, FormatException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
FormatException
ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(byte Number) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, NullReferenceException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(short Number) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(int Number) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(long Number) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentOutOfRangeException, FormatException, ArgumentNullException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(SByte Number) throws java.lang.Throwable, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(NetObject Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, FormatException, ArrayTypeMismatchException, OverflowException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
FormatException
ArrayTypeMismatchException
OverflowException
InvalidCastException
-
Hex
public static java.lang.String Hex(UInt16 Number) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, NullReferenceException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(UInt32 Number) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, NullReferenceException, ArgumentOutOfRangeException, ArgumentNullException, ArrayTypeMismatchException
-
Hex
public static java.lang.String Hex(UInt64 Number) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NullReferenceException, ArgumentNullException, ArrayTypeMismatchException
-
Oct
public static java.lang.String Oct(byte Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(short Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(int Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(long Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(SByte Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(NetObject Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, OverflowException, FormatException, InvalidCastException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
OverflowException
FormatException
InvalidCastException
ArrayTypeMismatchException
-
Oct
public static java.lang.String Oct(UInt16 Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(UInt32 Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Oct
public static java.lang.String Oct(UInt64 Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, OverflowException, OutOfMemoryException, InvalidOperationException
-
Str
public static java.lang.String Str(NetObject Number) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, OutOfMemoryException, ExternalException, InvalidCastException, FormatException, ArrayTypeMismatchException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidOperationException
OutOfMemoryException
ExternalException
InvalidCastException
FormatException
ArrayTypeMismatchException
OverflowException
-
-