JavaTM Platform
Standard Ed. 6

类 java.lang.Override
的使用

使用 Override 的软件包
javax.lang.model.util 用来帮助处理程序元素和类型的实用工具。 
javax.management 提供 Java Management Extensions 的核心类。 
javax.management.modelmbean 提供了 ModelMBean 类的定义。 
javax.management.relation 提供 Relation Service 的定义。 
javax.tools 为能够从程序(例如,编译器)中调用的工具提供接口。 
javax.xml.bind 为包含解组、编组和验证功能的客户端应用程序提供运行时绑定框架。 
 

javax.lang.model.util 中 Override 的使用
 

注释类型为 Override 的 javax.lang.model.util 中的方法
 R ElementKindVisitor6.visitExecutable(ExecutableElement e, P p)
          访问 executable 元素,指派给用于特定的 executable 种类 CONSTRUCTOR、INSTANCE_INIT、METHOD 或 STATIC_INIT 的 visit 方法。
 R TypeKindVisitor6.visitNoType(NoType t, P p)
          访问 NoType 实例,指派给用于以下特定的伪类型种类的 visit 方法:VOID、PACKAGE 或 NONE。
 R ElementKindVisitor6.visitPackage(PackageElement e, P p)
          访问包元素。
 R TypeKindVisitor6.visitPrimitive(PrimitiveType t, P p)
          访问基本类型,指派给用于以下特定的基本类型种类的 visit 方法:BOOLEAN、BYTE 等。
 R ElementKindVisitor6.visitType(TypeElement e, P p)
          访问类型元素,指派给用于特定的类型种类 ANNOTATION_TYPE、CLASS、ENUM 或 INTERFACE 的 visit 方法。
 R ElementKindVisitor6.visitTypeParameter(TypeParameterElement e, P p)
          访问类型参数元素。
 R ElementKindVisitor6.visitVariable(VariableElement e, P p)
          访问变量元素,指派给用于特定的变量种类 ENUM_CONSTANT、EXCEPTION_PARAMETER、FIELD、LOCAL_VARIABLE 或 PARAMETER 的 visit 方法。
 

javax.management 中 Override 的使用
 

注释类型为 Override 的 javax.management 中的方法
 void AttributeList.add(int index, Object element)
           
 boolean AttributeList.add(Object o)
           
 boolean AttributeList.addAll(Collection<?> c)
           
 boolean AttributeList.addAll(int index, Collection<?> c)
           
 Object AttributeList.set(int index, Object element)
           
 

javax.management.modelmbean 中 Override 的使用
 

注释类型为 Override 的 javax.management.modelmbean 中的方法
 Descriptor ModelMBeanInfoSupport.getDescriptor()
           
 

javax.management.relation 中 Override 的使用
 

注释类型为 Override 的 javax.management.relation 中的方法
 void RoleList.add(int index, Object element)
           
 void RoleUnresolvedList.add(int index, Object element)
           
 boolean RoleList.add(Object o)
           
 boolean RoleUnresolvedList.add(Object o)
           
 boolean RoleList.addAll(Collection<?> c)
           
 boolean RoleUnresolvedList.addAll(Collection<?> c)
           
 boolean RoleList.addAll(int index, Collection<?> c)
           
 boolean RoleUnresolvedList.addAll(int index, Collection<?> c)
           
 Object RoleList.set(int index, Object element)
           
 Object RoleUnresolvedList.set(int index, Object element)
           
 

javax.tools 中 Override 的使用
 

注释类型为 Override 的 javax.tools 中的方法
 String SimpleJavaFileObject.toString()
           
 

javax.xml.bind 中 Override 的使用
 

注释类型为 Override 的 javax.xml.bind 中的方法
 Throwable JAXBException.getCause()
           
 


JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。