Top Description Fields Constructors Methods
javax.lang.model.type

public Class MirroredTypesException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
javax.lang.model.type.MirroredTypeException
Imports
java.util.ArrayList, .List, .Collections, java.io.ObjectInputStream, .IOException, javax.lang.model.element.Element

Thrown when an application attempts to access a sequence of Class objects each corresponding to a TypeMirror.
Since
1.6
See Also
MirroredTypeException, Element#getAnnotation(Class)

Field Summary

Modifier and TypeField and Description
private static final long
pack-priv transient List<? extends TypeMirror>

Constructor Summary

AccessConstructor and Description
pack-priv
public
MirroredTypesException(List<? extends TypeMirror>
the types being accessed
types
)

Constructs a new MirroredTypesException for the specified types.

Method Summary

Modifier and TypeMethod and Description
public List<? extends TypeMirror>

Returns:

the type mirrors in construction order, or null if unavailable
getTypeMirrors
()

Returns the type mirrors corresponding to the types being accessed.

private void
readObject(ObjectInputStream
the serial stream
s
)

Hides java.lang.Throwable.readObject.

Explicitly set all transient fields.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

typesback to summary
pack-priv transient List<? extends TypeMirror> types

Constructor Detail

MirroredTypesExceptionback to summary
pack-priv MirroredTypesException(String message, TypeMirror type)
MirroredTypesExceptionback to summary
public MirroredTypesException(List<? extends TypeMirror> types)

Constructs a new MirroredTypesException for the specified types.

Parameters
types:List<? extends TypeMirror>

the types being accessed

Method Detail

getTypeMirrorsback to summary
public List<? extends TypeMirror> getTypeMirrors()

Returns the type mirrors corresponding to the types being accessed. The type mirrors may be unavailable if this exception has been serialized and then read back in.

Returns:List<? extends TypeMirror>

the type mirrors in construction order, or null if unavailable

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

Hides java.lang.Throwable.readObject.

Explicitly set all transient fields.

Parameters
s:ObjectInputStream

the serial stream

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