JavaTM 2 Platform
Standard Ed. 6

javax.lang.model.type
类 MirroredTypeException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 javax.lang.model.type.MirroredTypeException
所有已实现的接口:
Serializable

public class MirroredTypeException
extends RuntimeException

当应用程序试图访问对应于 TypeMirrorClass 对象时,抛出此异常。

从以下版本开始:
1.6
另请参见:
MirroredTypesException, Element.getAnnotation(Class), 序列化表格

构造方法摘要
MirroredTypeException(TypeMirror type)
          构造一个针对指定类型的新 MirroredTypeException。
 
方法摘要
 TypeMirror getTypeMirror()
          返回对应于要访问类型的类型镜像。
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

MirroredTypeException

public MirroredTypeException(TypeMirror type)
构造一个针对指定类型的新 MirroredTypeException。

参数:
type - 要访问的类型
方法详细信息

getTypeMirror

public TypeMirror getTypeMirror()
返回对应于要访问类型的类型镜像。如果已经序列化此异常并随后将其读回,则该类型镜像将不可用。

返回:
类型镜像;如果不可用,则返回 null

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only