JavaTM Platform
Standard Ed. 6

java.lang.annotation
클래스 AnnotationTypeMismatchException

java.lang.Object 
  상위를 확장 java.lang.Throwable 
      상위를 확장 java.lang.Exception 
          상위를 확장 java.lang.RuntimeException 
              상위를 확장 java.lang.annotation.AnnotationTypeMismatchException
모든 구현된 인터페이스:
Serializable


public class AnnotationTypeMismatchException
extends RuntimeException

주석의 컴파일 (또는 직렬화) 후로 형태가 변경되고 있는 주석 요소에, 프로그램이 액세스를 시도한 것을 나타내기 위해서(때문에) throw 됩니다.

도입된 버젼:
1.5
관련 항목:
직렬화 된 형식

생성자 의 개요
AnnotationTypeMismatchException (Method  element, String  foundType)
          지정된 주석형 요소와 발견된 데이터형에 대해 AnnotationTypeMismatchException 를 구축합니다.
 
메소드의 개요
 Method element ()
          부정한 형태의 요소에 대응하는 Method 객체를 돌려줍니다.
 String foundType ()
          부정한 형태의 요소내에서 발견된 데이터형을 돌려줍니다.
 
클래스 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
 

생성자 의 상세

AnnotationTypeMismatchException

public AnnotationTypeMismatchException(Method  element,
                                       String  foundType)
지정된 주석형 요소와 발견된 데이터형에 대해 AnnotationTypeMismatchException 를 구축합니다.

파라미터:
element - 주석 요소에 대응하는 Method 객체
foundType - 주석내에서 발견된 (부정한) 데이터형. 이 캐릭터 라인에 값도 포함되는 경우가 있다. 캐릭터 라인의 엄밀한 서식은 지정되지 않는다
메소드의 상세

element

public Method  element()
부정한 형태의 요소에 대응하는 Method 객체를 돌려줍니다.

반환값:
부정한 형태의 요소에 대응하는 Method 객체

foundType

public String  foundType()
부정한 형태의 요소내에서 발견된 데이터형을 돌려줍니다. 반환되는 캐릭터 라인에는 값도 포함되는 경우가 있습니다. 캐릭터 라인의 엄밀한 서식은 지정되지 않습니다.

반환값:
부정한 형태의 요소내에서 발견된 데이터형

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 도 참조해 주세요.