org.eclipse.xtext.xbase.typesystem.computation
Enum ConformanceHint
java.lang.Object
java.lang.Enum<ConformanceHint>
org.eclipse.xtext.xbase.typesystem.computation.ConformanceHint
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ConformanceHint>
public enum ConformanceHint
- extends java.lang.Enum<ConformanceHint>
- Author:
- Sebastian Zarnekow - Initial contribution and API
TODO document the available conformance hints
TODO JavaDoc, toString
Method Summary |
static ConformanceHint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ConformanceHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
EXPECTATION_INDEPENDENT
public static final ConformanceHint EXPECTATION_INDEPENDENT
SUBTYPE
public static final ConformanceHint SUBTYPE
PRIMITIVE_WIDENING
public static final ConformanceHint PRIMITIVE_WIDENING
BOXING
public static final ConformanceHint BOXING
UNBOXING
public static final ConformanceHint UNBOXING
RAWTYPE_CONVERSION
public static final ConformanceHint RAWTYPE_CONVERSION
DEMAND_CONVERSION
public static final ConformanceHint DEMAND_CONVERSION
INCOMPATIBLE
public static final ConformanceHint INCOMPATIBLE
UNCHECKED
public static final ConformanceHint UNCHECKED
RAW
public static final ConformanceHint RAW
MERGED
public static final ConformanceHint MERGED
values
public static final ConformanceHint[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ConformanceHint c : ConformanceHint.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ConformanceHint 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 name