APIdia Launch Partner
Top Description Fields Constructors Methods
javax.lang.model.type

public Class MirroredTypeException

extends MirroredTypesException
Class Inheritance
Imports
java.io.IOException, .ObjectInputStream, .Serial, javax.lang.model.element.Element

Thrown when an application attempts to access the Class object corresponding to a TypeMirror.
Since
1.6
See Also
MirroredTypesException, Element#getAnnotation(Class)

Field Summary

Modifier and TypeField and Description
private static final long
private transient TypeMirror
Inherited from javax.lang.model.type.MirroredTypesException:
types

Constructor Summary

AccessConstructor and Description
public
MirroredTypeException(TypeMirror
the type being accessed
type
)

Constructs a new MirroredTypeException for the specified type.

Method Summary

Modifier and TypeMethod and Description
public TypeMirror

Returns:

the type mirror, or null if unavailable
getTypeMirror
()

Returns the type mirror corresponding to the type being accessed.

private void
readObject(ObjectInputStream
the serial stream
s
)

Hides javax.lang.model.type.MirroredTypesException.readObject.

Explicitly set all transient fields.

Inherited from javax.lang.model.type.MirroredTypesException:
getTypeMirrors

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.lang.model.type.MirroredTypesException.serialVersionUID.

Annotations
@Serial
typeback to summary
private transient TypeMirror type

Constructor Detail

MirroredTypeExceptionback to summary
public MirroredTypeException(TypeMirror type)

Constructs a new MirroredTypeException for the specified type.

Parameters
type:TypeMirror

the type being accessed

Method Detail

getTypeMirrorback to summary
public 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.

Returns:TypeMirror

the type mirror, or null if unavailable

readObjectback to summary
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException

Hides javax.lang.model.type.MirroredTypesException.readObject.

Explicitly set all transient fields.

Parameters
s:ObjectInputStream

the serial stream

Annotations
@Serial
Exceptions
IOException:
for an IO problem during deserialization
ClassNotFoundException:
for a missing class during deserialization