org.jetbrains.kotlin.resolve.jvm
Enum JvmPrimitiveType

java.lang.Object
  extended by java.lang.Enum<JvmPrimitiveType>
      extended by org.jetbrains.kotlin.resolve.jvm.JvmPrimitiveType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JvmPrimitiveType>

public enum JvmPrimitiveType
extends java.lang.Enum<JvmPrimitiveType>


Enum Constant Summary
BOOLEAN
           
BYTE
           
CHAR
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
SHORT
           
 
Method Summary
static JvmPrimitiveType get(PrimitiveType type)
           
static JvmPrimitiveType get(java.lang.String name)
           
 java.lang.String getDesc()
           
 java.lang.String getName()
           
 PrimitiveType getPrimitiveType()
           
 FqName getWrapperFqName()
           
static boolean isWrapperClassName(FqName className)
           
static JvmPrimitiveType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JvmPrimitiveType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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

isWrapperClassName

public static boolean isWrapperClassName(@NotNull
                                         FqName className)

get

@NotNull
public static JvmPrimitiveType get(@NotNull
                                           java.lang.String name)

get

@NotNull
public static JvmPrimitiveType get(@NotNull
                                           PrimitiveType type)

getPrimitiveType

@NotNull
public PrimitiveType getPrimitiveType()

getName

@NotNull
public java.lang.String getName()

getDesc

@NotNull
public java.lang.String getDesc()

getWrapperFqName

@NotNull
public FqName getWrapperFqName()