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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
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) |
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) |
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, NullReferenceException, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
public static java.lang.String Format(NetType enumType, NetObject value, java.lang.String format) throws java.lang.Throwable, ArgumentNullException, ArgumentException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
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, ArgumentNullException, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionpublic static java.lang.String[] GetNames(NetType enumType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionpublic TypeCode GetTypeCode() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionpublic static NetType GetUnderlyingType(NetType enumType) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static Array GetValues(NetType enumType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionpublic boolean HasFlag(Enum flag) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException
public static boolean IsDefined(NetType enumType, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, NotSupportedException
public static NetObject Parse(NetType enumType, java.lang.String value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, InvalidCastException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, ObjectDisposedException, CultureNotFoundException, NullReferenceException
public static NetObject Parse(NetType enumType, java.lang.String value, boolean ignoreCase) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, InvalidCastException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, ObjectDisposedException, AbandonedMutexException, CultureNotFoundException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidCastExceptionNotSupportedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundExceptionNullReferenceExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static NetObject ToObject(NetType enumType, byte value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, int value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, long value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, SByte value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, short value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, UInt16 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, UInt32 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static NetObject ToObject(NetType enumType, UInt64 value) throws java.lang.Throwable, ArgumentNullException, ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic java.lang.String ToString(IFormatProvider provider) throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String ToString(java.lang.String format)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
TypeLoadException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
FormatException
public java.lang.String ToString(java.lang.String format,
IFormatProvider provider)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
CultureNotFoundException,
NotSupportedException,
ArgumentOutOfRangeException,
FormatException