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.
javax.lang.model.type
exception UnknownTypeException
- All Implemented Interfaces:
- Serializable
public exception UnknownTypeException
extends RuntimeException
Indicates that an unknown kind of type was encountered. This can
occur if the language evolves and new kinds of types are added to
the {@code TypeMirror} hierarchy. May be thrown by a {@linkplain
TypeVisitor type visitor} to indicate that the visitor was created
for a prior version of the language.
Constructor Summary |
Creates a new .The
parameter may be used to pass in an additional argument with
information about the context in which the unknown type was
encountered; for example, the visit methods of javax.lang.model.type.TypeVisitor may pass in their additional parameter.
|
Method Summary |
Object |
Returns the additional argument.
|
TypeMirror |
Returns the unknown type.
|
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 |
UnknownTypeException
public UnknownTypeException(TypeMirror t,
Object p)
-
Creates a new {@code UnknownTypeException}.The {@code p}
parameter may be used to pass in an additional argument with
information about the context in which the unknown type was
encountered; for example, the visit methods of {@link
TypeVisitor} may pass in their additional parameter.
- Parameters:
t
- the unknown type, may be {@code null}
p
- an additional parameter, may be {@code null}
getArgument
public Object getArgument()
-
Returns the additional argument.
- Returns:
- the additional argument
getUnknownType
public TypeMirror getUnknownType()
-
Returns the unknown type.
The value may be unavailable if this exception has been
serialized and then read back in.
- Returns:
- the unknown type, or {@code null} if unavailable
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/.