Mirror API

com.sun.mirror.type
列挙型 PrimitiveType.Kind

java.lang.Object
  上位を拡張 java.lang.Enum<PrimitiveType.Kind>
      上位を拡張 com.sun.mirror.type.PrimitiveType.Kind
すべての実装されたインタフェース:
Serializable, Comparable<PrimitiveType.Kind>
含まれているインタフェース:
PrimitiveType

public static enum PrimitiveType.Kind
extends Enum<PrimitiveType.Kind>

プリミティブ型の異なる種類の列挙です。


列挙型定数の概要
BOOLEAN
          プリミティブ型 boolean です。
BYTE
          プリミティブ型 byte です。
CHAR
          プリミティブ型 char です。
DOUBLE
          プリミティブ型 double です。
FLOAT
          プリミティブ型 float です。
INT
          プリミティブ型 int です。
LONG
          プリミティブ型 long です。
SHORT
          プリミティブ型 short です。
 
メソッドの概要
static PrimitiveType.Kind valueOf(String name)
          指定した名前を持つこの型の列挙型定数を返します。
static PrimitiveType.Kind[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

BOOLEAN

public static final PrimitiveType.Kind BOOLEAN
プリミティブ型 boolean です。


BYTE

public static final PrimitiveType.Kind BYTE
プリミティブ型 byte です。


SHORT

public static final PrimitiveType.Kind SHORT
プリミティブ型 short です。


INT

public static final PrimitiveType.Kind INT
プリミティブ型 int です。


LONG

public static final PrimitiveType.Kind LONG
プリミティブ型 long です。


CHAR

public static final PrimitiveType.Kind CHAR
プリミティブ型 char です。


FLOAT

public static final PrimitiveType.Kind FLOAT
プリミティブ型 float です。


DOUBLE

public static final PrimitiveType.Kind DOUBLE
プリミティブ型 double です。

メソッドの詳細

values

public static final PrimitiveType.Kind[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for(PrimitiveType.Kind c : PrimitiveType.Kind.values())
        System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static PrimitiveType.Kind valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合

Mirror API

バグや機能要求の報告
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.