org.jetbrains.jet.codegen
Enum BuiltinToJavaTypesMapping
java.lang.Object
java.lang.Enum<BuiltinToJavaTypesMapping>
org.jetbrains.jet.codegen.BuiltinToJavaTypesMapping
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BuiltinToJavaTypesMapping>
public enum BuiltinToJavaTypesMapping
- extends java.lang.Enum<BuiltinToJavaTypesMapping>
Marks if backend's JetTypeMapper should map built-in types to Java types (e.g., jet.String into java.lang.String).
Disabling is needed for compiling builtins: we want types to be jet.* instead of java.util* to make it possible to load
builtins without JDK.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ENABLED
public static final BuiltinToJavaTypesMapping ENABLED
DISABLED
public static final BuiltinToJavaTypesMapping DISABLED
values
public static BuiltinToJavaTypesMapping[] 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 (BuiltinToJavaTypesMapping c : BuiltinToJavaTypesMapping.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BuiltinToJavaTypesMapping 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
java.lang.NullPointerException - if the argument is null