Module java.compiler

Class MirroredTypeException

所有已实现的接口:
Serializable

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

    • MirroredTypeException

      public MirroredTypeException(TypeMirror type)
      为指定类型构造一个新的MirroredTypeException。
      参数:
      type - 正在访问的类型
  • Method Details

    • getTypeMirror

      public TypeMirror getTypeMirror()
      返回与正在访问的类型对应的类型镜像。如果此异常已被序列化然后重新读取,则可能无法获得类型镜像。
      返回:
      类型镜像,如果不可用则返回null