MirroredTypeExceptionpublic class MirroredTypeException extends RuntimeException Thrown when an application attempts to access the {@link Class} object
corresponding to a {@link TypeMirror}. |
Fields Summary |
---|
private static final long | serialVersionUID | private transient TypeMirror | type | private String | name |
Constructors Summary |
---|
public MirroredTypeException(TypeMirror type)Constructs a new MirroredTypeException for the specified type. // type's qualified "name"
super("Attempt to access Class object for TypeMirror " + type);
this.type = type;
name = type.toString();
|
Methods Summary |
---|
public java.lang.String | getQualifiedName()Returns the fully qualified name of the type being accessed.
More precisely, returns the canonical name of a class,
interface, array, or primitive, and returns "void" for
the pseudo-type representing the type of void.
return name;
| public com.sun.mirror.type.TypeMirror | getTypeMirror()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.
return type;
|
|