This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
java.lang.annotation
exception AnnotationTypeMismatchException
- All Implemented Interfaces:
- Serializable
public exception AnnotationTypeMismatchException
extends RuntimeException
Thrown to indicate that a program has attempted to access an element of
an annotation whose type has changed after the annotation was compiled
(or serialized).
Constructor Summary |
Constructs an AnnotationTypeMismatchException for the specified
annotation type element and found data type.
|
Method Summary |
Method |
Returns the Method object for the incorrectly typed element.
|
String |
Returns the type of data found in the incorrectly typed element.
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationTypeMismatchException
public AnnotationTypeMismatchException(Method element,
String foundType)
-
Constructs an AnnotationTypeMismatchException for the specified
annotation type element and found data type.
- Parameters:
element
- the Method object for the annotation element
foundType
- the (erroneous) type of data found in the annotation.
This string may, but is not required to, contain the value
as well. The exact format of the string is unspecified.
element
public Method element()
-
Returns the Method object for the incorrectly typed element.
- Returns:
- the Method object for the incorrectly typed element
foundType
public String foundType()
-
Returns the type of data found in the incorrectly typed element.
The returned string may, but is not required to, contain the value
as well. The exact format of the string is unspecified.
- Returns:
- the type of data found in the incorrectly typed element
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.