Package com.sun.mirror.type
Class MirroredTypesException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.sun.mirror.type.MirroredTypesException
-
- All Implemented Interfaces:
java.io.Serializable
public class MirroredTypesException extends java.lang.RuntimeExceptionThrown when an application attempts to access a sequence ofClassobjects each corresponding to aTypeMirror.
-
-
Constructor Summary
Constructors Constructor Description MirroredTypesException(java.util.Collection<TypeMirror> types)Constructs a new MirroredTypesException for the specified types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>getQualifiedNames()Returns the fully qualified names of the types being accessed.java.util.Collection<TypeMirror>getTypeMirrors()Returns the type mirrors corresponding to the types being accessed.
-
-
-
Constructor Detail
-
MirroredTypesException
public MirroredTypesException(java.util.Collection<TypeMirror> types)
Constructs a new MirroredTypesException for the specified types.- Parameters:
types- an ordered collection of the types being accessed
-
-
Method Detail
-
getTypeMirrors
public java.util.Collection<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:
- the type mirrors in order, or
nullif unavailable
-
getQualifiedNames
public java.util.Collection<java.lang.String> getQualifiedNames()
Returns the fully qualified names of the types being accessed. More precisely, returns the canonical names of each class, interface, array, or primitive, and"void"for the pseudo-type representing the type ofvoid.- Returns:
- the fully qualified names, in order, of the types being accessed
-
-