org.jetbrains.jet.lang.resolve.java
Enum JvmPrimitiveType
java.lang.Object
java.lang.Enum<JvmPrimitiveType>
org.jetbrains.jet.lang.resolve.java.JvmPrimitiveType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JvmPrimitiveType>
public enum JvmPrimitiveType
- extends java.lang.Enum<JvmPrimitiveType>
| 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 |
BOOLEAN
public static final JvmPrimitiveType BOOLEAN
CHAR
public static final JvmPrimitiveType CHAR
BYTE
public static final JvmPrimitiveType BYTE
SHORT
public static final JvmPrimitiveType SHORT
INT
public static final JvmPrimitiveType INT
FLOAT
public static final JvmPrimitiveType FLOAT
LONG
public static final JvmPrimitiveType LONG
DOUBLE
public static final JvmPrimitiveType DOUBLE
values
public static JvmPrimitiveType[] 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 (JvmPrimitiveType c : JvmPrimitiveType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JvmPrimitiveType 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
getPrimitiveType
public PrimitiveType getPrimitiveType()
getName
public java.lang.String getName()
getWrapper
public JvmClassName getWrapper()
getAsmType
public org.jetbrains.asm4.Type getAsmType()
getAsmArrayType
public org.jetbrains.asm4.Type getAsmArrayType()
getIterator
public JvmClassName getIterator()
getJvmLetter
public char getJvmLetter()
getByAsmType
@Nullable
public static JvmPrimitiveType getByAsmType(org.jetbrains.asm4.Type type)
getByWrapperAsmType
@Nullable
public static JvmPrimitiveType getByWrapperAsmType(org.jetbrains.asm4.Type type)
getByWrapperClass
@Nullable
public static JvmPrimitiveType getByWrapperClass(JvmClassName className)