Module java.compiler

Class MirroredTypesException

所有已实现的接口:
Serializable
直接已知的子类:
MirroredTypeException

public class MirroredTypesException extends RuntimeException
当应用程序尝试访问与Class对象对应的每个TypeMirror序列时抛出。
自版本:
1.6
参见:
  • Constructor Details

    • MirroredTypesException

      public MirroredTypesException(List<? extends TypeMirror> types)
      为指定类型构造一个新的MirroredTypesException。
      参数:
      types - 正在访问的类型
  • Method Details

    • getTypeMirrors

      public List<? extends TypeMirror> getTypeMirrors()
      返回与正在访问的类型对应的类型镜像。如果此异常已被序列化然后重新读取,则可能无法使用类型镜像。
      返回:
      构造顺序中的类型镜像,如果不可用则返回null