1 7 8 package com.sun.mirror.type; 9 10 11 import java.lang.annotation.Annotation ; 12 13 import com.sun.mirror.declaration.Declaration; 14 15 16 23 public class MirroredTypeException extends RuntimeException { 24 25 private static final long serialVersionUID = 1; 26 27 private transient TypeMirror type; private String name; 30 35 public MirroredTypeException(TypeMirror type) { 36 super("Attempt to access Class object for TypeMirror " + type); 37 this.type = type; 38 name = type.toString(); 39 } 40 41 48 public TypeMirror getTypeMirror() { 49 return type; 50 } 51 52 60 public String getQualifiedName() { 61 return name; 62 } 63 } 64 | Popular Tags |