public class Enum extends ValueType
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Enum
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: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.Enum
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Enum() |
Enum(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Enum |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Enum, a cast assert is made to check if types are compatible. |
int |
CompareTo(NetObject target) |
static java.lang.String |
Format(NetType enumType,
NetObject value,
java.lang.String format) |
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 java.lang.String |
GetName(NetType enumType,
NetObject value) |
static java.lang.String[] |
GetNames(NetType enumType) |
TypeCode |
GetTypeCode() |
static NetType |
GetUnderlyingType(NetType enumType) |
static Array |
GetValues(NetType enumType) |
static Array |
GetValuesAsUnderlyingType(NetType enumType) |
boolean |
HasFlag(Enum flag) |
static boolean |
IsDefined(NetType enumType,
NetObject value) |
static NetObject |
Parse(NetType enumType,
java.lang.String value) |
static NetObject |
Parse(NetType enumType,
java.lang.String value,
boolean ignoreCase) |
void |
setJCOInstance(JCObject instance) |
static NetObject |
ToObject(NetType enumType,
byte value) |
static NetObject |
ToObject(NetType enumType,
int value) |
static NetObject |
ToObject(NetType enumType,
long value) |
static NetObject |
ToObject(NetType enumType,
NetObject value) |
static NetObject |
ToObject(NetType enumType,
SByte value) |
static NetObject |
ToObject(NetType enumType,
short value) |
static NetObject |
ToObject(NetType enumType,
UInt16 value) |
static NetObject |
ToObject(NetType enumType,
UInt32 value) |
static NetObject |
ToObject(NetType enumType,
UInt64 value) |
java.lang.String |
ToString(IFormatProvider provider) |
java.lang.String |
ToString(java.lang.String format) |
java.lang.String |
ToString(java.lang.String format,
IFormatProvider provider) |
static boolean |
TryParse(NetType enumType,
java.lang.String value,
boolean ignoreCase,
JCORefOut<NetObject> result) |
static boolean |
TryParse(NetType enumType,
java.lang.String value,
JCORefOut<NetObject> result) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Enum()
throws java.lang.Throwable
java.lang.Throwablepublic Enum(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Enum cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Enum, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedEnum instancejava.lang.Throwable - in case of error during cast operationpublic int CompareTo(NetObject target) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionpublic static java.lang.String Format(NetType enumType, NetObject value, java.lang.String format) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OverflowException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic static java.lang.String GetName(NetType enumType, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
public static java.lang.String[] GetNames(NetType enumType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public TypeCode GetTypeCode() throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, ArrayTypeMismatchException, CultureNotFoundException, ObjectDisposedException
public static NetType GetUnderlyingType(NetType enumType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static Array GetValues(NetType enumType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static Array GetValuesAsUnderlyingType(NetType enumType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public boolean HasFlag(Enum flag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public static boolean IsDefined(NetType enumType, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public static NetObject Parse(NetType enumType, java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, NullReferenceException, OverflowException, InvalidCastException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNullReferenceExceptionOverflowExceptionInvalidCastExceptionpublic static NetObject Parse(NetType enumType, java.lang.String value, boolean ignoreCase) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OverflowException, InvalidCastException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOverflowExceptionInvalidCastExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static NetObject ToObject(NetType enumType, byte value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, int value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, long value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, NetObject value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public static NetObject ToObject(NetType enumType, SByte value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, short value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, UInt16 value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, UInt32 value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public static NetObject ToObject(NetType enumType, UInt64 value) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException
public java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable, PlatformNotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionpublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
PlatformNotSupportedException,
IndexOutOfRangeException,
NotSupportedException,
ArgumentNullException,
ArgumentOutOfRangeException,
ArgumentException,
OverflowException,
InvalidOperationException,
FormatException
public java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
PlatformNotSupportedException,
IndexOutOfRangeException,
NotSupportedException,
ArgumentNullException,
OverflowException,
InvalidOperationException,
ArgumentException,
ArgumentOutOfRangeException,
FormatException
public static boolean TryParse(NetType enumType, java.lang.String value, boolean ignoreCase, JCORefOut<NetObject> result) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OverflowException, InvalidCastException
public static boolean TryParse(NetType enumType, java.lang.String value, JCORefOut<NetObject> result) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException, NullReferenceException, OverflowException, InvalidCastException