Package com.strobel.assembler.metadata
Enum ConversionType
- java.lang.Object
-
- java.lang.Enum<ConversionType>
-
- com.strobel.assembler.metadata.ConversionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConversionType>
public enum ConversionType extends java.lang.Enum<ConversionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPLICIT
EXPLICIT_TO_UNBOXED
IDENTITY
IMPLICIT
IMPLICIT_LOSSY
NONE
-
Constructor Summary
Constructors Modifier Constructor Description private
ConversionType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDirect()
boolean
isImplicit()
boolean
isLossless()
static ConversionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConversionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDENTITY
public static final ConversionType IDENTITY
-
IMPLICIT
public static final ConversionType IMPLICIT
-
IMPLICIT_LOSSY
public static final ConversionType IMPLICIT_LOSSY
-
EXPLICIT
public static final ConversionType EXPLICIT
-
EXPLICIT_TO_UNBOXED
public static final ConversionType EXPLICIT_TO_UNBOXED
-
NONE
public static final ConversionType NONE
-
-
Method Detail
-
values
public static ConversionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ConversionType c : ConversionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConversionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isImplicit
public final boolean isImplicit()
-
isDirect
public final boolean isDirect()
-
isLossless
public final boolean isLossless()
-
-