javax.lang.model.type
类 MirroredTypesException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.lang.model.type.MirroredTypesException
- 所有已实现的接口:
- Serializable
public class MirroredTypesException
- extends RuntimeException
当应用程序试图访问每个对应于 TypeMirror 的 Class 对象的序列时,抛出此异常。
- 从以下版本开始:
- 1.6
- 另请参见:
MirroredTypeException,
Element.getAnnotation(Class),
序列化表格
| 从类 java.lang.Throwable 继承的方法 |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MirroredTypesException
public MirroredTypesException(List<? extends TypeMirror> types)
- 构造一个针对指定类型的新 MirroredTypesException。
- 参数:
types - 要访问的类型
getTypeMirrors
public List<? extends TypeMirror> getTypeMirrors()
- 返回对应于要访问的类型的类型镜像。如果已经序列化此异常并随后将其读回,则此类型镜像将不可用。
- 返回:
- 按构造顺序排列的类型镜像;如果不可用,则返回
null