javax.lang.model.type
public class: MirroredTypeException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.lang.model.type.MirroredTypeException
All Implemented Interfaces:
Serializable
Thrown when an application attempts to access the
Class object
corresponding to a
TypeMirror .
Also see:
- MirroredTypesException
- Element#getAnnotation(Class)
- author:
Joseph - D. Darcy
- author:
Scott - Seligman
- author:
Peter - von der Ahé
- since:
1.6 -
| Constructor: |
public MirroredTypeException(TypeMirror type) {
// cannot be serialized
super("Attempt to access Class object for TypeMirror " + type);
this.type = type;
}
Constructs a new MirroredTypeException for the specified type. Parameters:
type - the type being accessed
|
| Method from javax.lang.model.type.MirroredTypeException Summary: |
|---|
|
getTypeMirror |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.lang.model.type.MirroredTypeException Detail: |
public TypeMirror getTypeMirror() {
return type;
}
Returns the type mirror corresponding to the type being accessed.
The type mirror may be unavailable if this exception has been
serialized and then read back in. |