FileDocCategorySizeDatePackage
MirroredTypesException.javaAPI DocJava SE 6 API2204Tue Jun 10 00:22:16 BST 2008com.sun.mirror.type

MirroredTypesException

public class MirroredTypesException extends RuntimeException
Thrown when an application attempts to access a sequence of {@link Class} objects each corresponding to a {@link TypeMirror}.
see
MirroredTypeException
see
Declaration#getAnnotation(Class)

Fields Summary
private static final long
serialVersionUID
private transient Collection
types
private Collection
names
Constructors Summary
public MirroredTypesException(Collection types)
Constructs a new MirroredTypesException for the specified types.

param
types an ordered collection of the types being accessed

		// types' qualified "names"

                            
       
	super("Attempt to access Class objects for TypeMirrors " + types);
	this.types = types;
	names = new ArrayList<String>();
	for (TypeMirror t : types) {
	    names.add(t.toString());
	}
    
Methods Summary
public java.util.CollectiongetQualifiedNames()
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 of void.

return
the fully qualified names, in order, of the types being accessed

	return Collections.unmodifiableCollection(names);
    
public java.util.CollectiongetTypeMirrors()
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.

return
the type mirrors in order, or null if unavailable

	return (types != null)
		? Collections.unmodifiableCollection(types)
		: null;