Uses of Interface
java.lang.annotation.Annotation
-
Packages that use Annotation 软件包 描述 java.beans 包含与开发 bean相关的类 - 基于JavaBeans™体系结构的组件。java.lang 提供对Java编程语言设计至关重要的类。java.lang.annotation 为Java编程语言注释工具提供库支持。java.lang.reflect 提供用于获取有关类和对象的反射信息的类和接口。javax.annotation.processing 用于声明注释处理器和允许注释处理器与注释处理工具环境通信的工具。javax.lang.model 用于为Java编程语言建模的包的类和层次结构。javax.lang.model.element 用于建模Java编程语言元素的接口。javax.management 提供Java Management Extensions的核心类。javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。jdk.jfr 该软件包提供了用于创建事件和控制Flight Recorder的类。 -
-
Uses of Annotation in java.beans
Classes in java.beans that implement Annotation 变量和类型 类 描述 interfaceBeanProperty用于为自动生成的BeanInfo类指定一些属性相关信息的注释。interfaceConstructorProperties构造函数上的注释,显示该构造函数的参数如何与构造对象的getter方法相对应。interfaceJavaBean用于为自动生成的BeanInfo类指定某些类相关信息的注释。interfaceTransient指示当Introspector构造与带注释的代码元素关联的PropertyDescriptor或EventSetDescriptor类时,应使用给定的value声明名为“transient”的属性。 -
Uses of Annotation in java.lang
Classes in java.lang that implement Annotation 变量和类型 类 描述 interface已过时的注释@Deprecated的程序元素是程序员不鼓励使用的程序元素。interfaceFunctionalInterface一种信息性注释类型,用于指示接口类型声明旨在成为Java语言规范定义的 功能接口 。interfaceOverride指示方法声明旨在覆盖超类型中的方法声明。interfaceSafeVarargs程序员断言,带注释的方法或构造函数的主体不会对其varargs参数执行可能不安全的操作。interfaceSuppressWarnings指示应在带注释的元素(以及带注释的元素中包含的所有程序元素中)中抑制指定的编译器警告。Methods in java.lang with type parameters of type Annotation 变量和类型 方法 描述 <A extends Annotation>
AClass. getAnnotation(类<A> annotationClass)<T extends Annotation>
TModule. getAnnotation(类<T> annotationClass)返回该元素的,如果这样的注释 ,否则返回null指定类型的注释。<A extends Annotation>
APackage. getAnnotation(类<A> annotationClass)<A extends Annotation>
A[]Class. getAnnotationsByType(类<A> annotationClass)<A extends Annotation>
A[]Package. getAnnotationsByType(类<A> annotationClass)<A extends Annotation>
AClass. getDeclaredAnnotation(类<A> annotationClass)<A extends Annotation>
APackage. getDeclaredAnnotation(类<A> annotationClass)<A extends Annotation>
A[]Class. getDeclaredAnnotationsByType(类<A> annotationClass)<A extends Annotation>
A[]Package. getDeclaredAnnotationsByType(类<A> annotationClass)Methods in java.lang that return Annotation 变量和类型 方法 描述 Annotation[]Class. getAnnotations()Annotation[]Module. getAnnotations()返回此元素上 存在的注释。Annotation[]Package. getAnnotations()<A extends Annotation>
A[]Class. getAnnotationsByType(类<A> annotationClass)<A extends Annotation>
A[]Package. getAnnotationsByType(类<A> annotationClass)Annotation[]Class. getDeclaredAnnotations()Annotation[]Module. getDeclaredAnnotations()返回 直接出现在此元素上的注释。Annotation[]Package. getDeclaredAnnotations()<A extends Annotation>
A[]Class. getDeclaredAnnotationsByType(类<A> annotationClass)<A extends Annotation>
A[]Package. getDeclaredAnnotationsByType(类<A> annotationClass)Method parameters in java.lang with type arguments of type Annotation 变量和类型 方法 描述 booleanClass. isAnnotationPresent(类<? extends Annotation> annotationClass)如果此元素上 存在指定类型的注释,则返回true,否则返回false。booleanPackage. isAnnotationPresent(类<? extends Annotation> annotationClass)如果此元素上 存在指定类型的注释,则返回true,否则返回false。 -
Uses of Annotation in java.lang.annotation
Classes in java.lang.annotation that implement Annotation 变量和类型 类 描述 interfaceDocumented如果注释类型 A的声明中存在注释@Documented,则元素上的任何@A注释都将被视为元素的公共合同的一部分。interfaceInherited表示自动继承注释类型。interfaceNative指示可以从本机代码引用定义常量值的字段。interfaceRepeatable注释类型java.lang.annotation.Repeatable用于指示其声明(meta-)注释的注释类型是 可重复的 。interfaceRetention指示要保留带注释类型的注释的时间长度。interfaceTarget指示注释类型适用的上下文。Methods in java.lang.annotation that return types with arguments of type Annotation 变量和类型 方法 描述 类<? extends Annotation>Annotation. annotationType()返回此批注的批注类型。类<? extends Annotation>IncompleteAnnotationException. annotationType()返回具有缺少元素的注释类型的Class对象。类<? extends Annotation>value()指示可重复注释类型的 包含注释类型。Constructor parameters in java.lang.annotation with type arguments of type Annotation 构造器 描述 IncompleteAnnotationException(类<? extends Annotation> annotationType, String elementName)构造一个IncompleteAnnotationException以指示指定的注释类型中缺少指定的元素。 -
Uses of Annotation in java.lang.reflect
Methods in java.lang.reflect with type parameters of type Annotation 变量和类型 方法 描述 <T extends Annotation>
TAccessibleObject. getAnnotation(类<T> annotationClass)<T extends Annotation>
TAnnotatedElement. getAnnotation(类<T> annotationClass)返回该元素的,如果这样的注释 ,否则返回null指定类型的注释。<T extends Annotation>
TConstructor. getAnnotation(类<T> annotationClass)返回该元素的,如果这样的注释 ,否则返回null指定类型的注释。<T extends Annotation>
TExecutable. getAnnotation(类<T> annotationClass)返回该元素的,如果这样的注释 ,否则返回null指定类型的注释。<T extends Annotation>
TField. getAnnotation(类<T> annotationClass)<T extends Annotation>
TMethod. getAnnotation(类<T> annotationClass)返回该元素的,如果这样的注释 ,否则返回null指定类型的注释。<T extends Annotation>
TParameter. getAnnotation(类<T> annotationClass)返回该元素的,如果这样的注释 ,否则返回null指定类型的注释。<T extends Annotation>
T[]AccessibleObject. getAnnotationsByType(类<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
T[]Executable. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
T[]Field. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
T[]Parameter. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
TAccessibleObject. getDeclaredAnnotation(类<T> annotationClass)default <T extends Annotation>
TAnnotatedElement. getDeclaredAnnotation(类<T> annotationClass)如果 直接存在这样的注释,则返回指定类型的此元素的注释,否则返回null。<T extends Annotation>
TParameter. getDeclaredAnnotation(类<T> annotationClass)<T extends Annotation>
T[]AccessibleObject. getDeclaredAnnotationsByType(类<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getDeclaredAnnotationsByType(类<T> annotationClass)如果此类注释 直接存在或 间接存在 ,则返回指定类型的此元素的注释。<T extends Annotation>
T[]Parameter. getDeclaredAnnotationsByType(类<T> annotationClass)Methods in java.lang.reflect that return Annotation 变量和类型 方法 描述 Annotation[]AccessibleObject. getAnnotations()Annotation[]AnnotatedElement. getAnnotations()返回此元素上 存在的注释。<T extends Annotation>
T[]AccessibleObject. getAnnotationsByType(类<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
T[]Executable. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
T[]Field. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。<T extends Annotation>
T[]Parameter. getAnnotationsByType(类<T> annotationClass)返回与此元素 关联的注释。Annotation[]AccessibleObject. getDeclaredAnnotations()Annotation[]AnnotatedElement. getDeclaredAnnotations()返回 直接出现在此元素上的注释。Annotation[]Constructor. getDeclaredAnnotations()返回 直接出现在此元素上的注释。Annotation[]Method. getDeclaredAnnotations()返回 直接出现在此元素上的注释。<T extends Annotation>
T[]AccessibleObject. getDeclaredAnnotationsByType(类<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getDeclaredAnnotationsByType(类<T> annotationClass)如果此类注释 直接存在或 间接存在 ,则返回指定类型的此元素的注释。<T extends Annotation>
T[]Parameter. getDeclaredAnnotationsByType(类<T> annotationClass)Annotation[][]Constructor. getParameterAnnotations()返回Annotation的数组数组,这些数组表示由此对象表示的Executable声明顺序的形式参数的注释。abstract Annotation[][]Executable. getParameterAnnotations()返回Annotation的数组数组,这些数组表示由此对象表示的Executable声明顺序的形式参数的注释。Annotation[][]Method. getParameterAnnotations()返回Annotation的数组数组,这些数组表示此对象表示的Executable声明顺序的形式参数的注释。Method parameters in java.lang.reflect with type arguments of type Annotation 变量和类型 方法 描述 booleanAccessibleObject. isAnnotationPresent(类<? extends Annotation> annotationClass)如果此元素上 存在指定类型的注释,则返回true,否则返回false。default booleanAnnotatedElement. isAnnotationPresent(类<? extends Annotation> annotationClass)如果此元素上 存在指定类型的注释,则返回true,否则返回false。 -
Uses of Annotation in javax.annotation.processing
Classes in javax.annotation.processing that implement Annotation 变量和类型 类 描述 interfaceGeneratedGenerated annotation用于标记已生成的源代码。interfaceSupportedAnnotationTypes用于指示注释处理器支持的注释类型的注释。interfaceSupportedOptions用于指示注释处理器支持的选项的注释。interfaceSupportedSourceVersion用于指示注释处理器支持的最新源版本的注释。Method parameters in javax.annotation.processing with type arguments of type Annotation 变量和类型 方法 描述 Set<? extends Element>RoundEnvironment. getElementsAnnotatedWith(类<? extends Annotation> a)返回使用给定注释类型注释的元素。default Set<? extends Element>RoundEnvironment. getElementsAnnotatedWithAny(Set<类<? extends Annotation>> annotations)返回使用一个或多个给定注释类型注释的元素。 -
Uses of Annotation in javax.lang.model
Methods in javax.lang.model with type parameters of type Annotation 变量和类型 方法 描述 <A extends Annotation>
AAnnotatedConstruct. getAnnotation(类<A> annotationType)返回指定类型的这种构造的注解,如果这样的注释 存在 ,否则null。<A extends Annotation>
A[]AnnotatedConstruct. getAnnotationsByType(类<A> annotationType)返回与此构造 关联的注释。Methods in javax.lang.model that return Annotation 变量和类型 方法 描述 <A extends Annotation>
A[]AnnotatedConstruct. getAnnotationsByType(类<A> annotationType)返回与此构造 关联的注释。 -
Uses of Annotation in javax.lang.model.element
Methods in javax.lang.model.element with type parameters of type Annotation 变量和类型 方法 描述 <A extends Annotation>
AElement. getAnnotation(类<A> annotationType)返回指定类型的这种构造的注解,如果这样的注释 存在 ,否则null。 -
Uses of Annotation in javax.management
Classes in javax.management that implement Annotation 变量和类型 类 描述 interfaceConstructorParameters构造函数上的注释,显示该构造函数的参数如何与构造对象的getter方法相对应。interfaceDescriptorKey元注释,描述注释元素如何与Descriptor中的字段相关联 。interfaceMXBean用于将接口明确标记为MXBean接口或不是MXBean接口的注释。 -
Uses of Annotation in javax.swing
Classes in javax.swing that implement Annotation 变量和类型 类 描述 interfaceSwingContainer用于为自动生成的BeanInfo类指定一些与摆动相关的信息的注释。 -
Uses of Annotation in jdk.jfr
Classes in jdk.jfr that implement Annotation 变量和类型 类 描述 interfaceBooleanFlag事件字段注释,指定值是布尔标志,true或false值interfaceCategory事件注释,以人类可读路径的格式将事件类型与类别相关联。interfaceContentType元注释指定注释表示内容类型,例如时间跨度或频率。interfaceDataAmount事件字段注释指定值表示数据量(例如,字节)。interface描述使用一两句话描述元素的注释。interfaceEnabled事件注释,确定是否应默认启用事件。interfaceExperimental注释,指定元素是实验性的,可能会更改,恕不另行通知。interfaceFrequency事件字段注释指定该值是以Hz为单位测量的频率。interfaceLabel为元素设置人类可读名称的注释(例如,"Maximum Throughput")。interfaceMemoryAddress事件字段注释,指定该值是内存地址。interfaceMetadataDefinition用于定义新类型的事件元数据的元注释。interfaceName覆盖元素的默认名称的注释(例如,当事件的默认包不合适时)。interfacePercentage要在分数上使用的事件字段注释,通常在0.0和1.0之间,以指定该值是百分比。interfacePeriod事件注释,指定周期性事件的默认设置值。interfaceRegistered事件注释,用于程序化事件注册。interfaceRelational关系注释的元注释,用于注释。interfaceSettingDefinition注释,指定应使用事件类中的方法过滤掉事件。interfaceStackTrace事件注释,确定默认情况下事件是否具有堆栈跟踪。interfaceThreshold事件注释,指定未记录事件的默认持续时间(例如,"20 ms")。interfaceTimespan事件字段注释,指定值是持续时间。interfaceTimestamp事件字段注释,指定值是一个时间点。interfaceTransitionFrom事件字段注释,指定从线程转换的事件。interfaceTransitionTo事件字段注释,指定事件将很快转换为线程。interfaceUnsigned事件字段注释指定该值是无符号数据类型。Methods in jdk.jfr with type parameters of type Annotation 变量和类型 方法 描述 <A extends Annotation>
AEventType. getAnnotation(类<A> annotationClass)如果直接存在具有相同名称的注释元素,则返回指定类型的第一个注释,否则null。<A extends Annotation>
ASettingDescriptor. getAnnotation(类<A> annotationType)如果具有相同名称的注释元素可用,则返回指定类型的第一个注释,否则null。<A extends Annotation>
AValueDescriptor. getAnnotation(类<A> annotationType)如果具有相同名称的注释元素直接存在于此值描述符,则返回指定类型的第一个注释,否则null。Method parameters in jdk.jfr with type arguments of type Annotation 变量和类型 方法 描述 <A> AAnnotationElement. getAnnotation(类<? extends Annotation> annotationType)如果存在具有相同名称的AnnotationElement,则返回指定类型的第一个注释,否则null。Constructor parameters in jdk.jfr with type arguments of type Annotation 构造器 描述 AnnotationElement(类<? extends Annotation> annotationType)创建用于动态定义事件的注释元素。AnnotationElement(类<? extends Annotation> annotationType, Object value)创建用于动态定义事件的注释元素。AnnotationElement(类<? extends Annotation> annotationType, Map<String,Object> values)创建用于动态定义事件的注释元素。
-