JavaTM Platform
Standard Ed. 6

java.lang.annotation
クラス IncompleteAnnotationException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 java.lang.RuntimeException
              上位を拡張 java.lang.annotation.IncompleteAnnotationException
すべての実装されたインタフェース:
Serializable

public class IncompleteAnnotationException
extends RuntimeException

注釈のコンパイル (または直列化) 後に注釈型定義に追加された注釈型要素に、プログラムがアクセスを試みたことを示すためにスローされます。この例外は、新しい要素がデフォルト値を持つ場合にはスローされません。

導入されたバージョン:
1.5
関連項目:
直列化された形式

コンストラクタの概要
IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
          IncompleteAnnotationException を構築して、名前付き要素が指定された注釈型から見つからないことを示します。
 
メソッドの概要
 Class<? extends Annotation> annotationType()
          見つからない要素を持つ注釈型に対応する Class オブジェクトを返します。
 String elementName()
          見つからない要素の名前を返します。
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

IncompleteAnnotationException

public IncompleteAnnotationException(Class<? extends Annotation> annotationType,
                                     String elementName)
IncompleteAnnotationException を構築して、名前付き要素が指定された注釈型から見つからないことを示します。

パラメータ:
annotationType - 注釈型に対応する Class オブジェクト
elementName - 見つからない要素の名前
メソッドの詳細

annotationType

public Class<? extends Annotation> annotationType()
見つからない要素を持つ注釈型に対応する Class オブジェクトを返します。

戻り値:
見つからない要素を持つ注釈型に対応する Class オブジェクト

elementName

public String elementName()
見つからない要素の名前を返します。

戻り値:
見つからない要素の名前

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。