Uses of Interface
java.lang.annotation.Annotation
| Package | Description |
|---|---|
| dalvik.annotation | |
| java.lang | |
| java.lang.annotation | |
| java.lang.reflect | |
| libcore.reflect | |
| org.robovm.rt.annotation | |
| org.robovm.rt.bro.annotation |
-
Uses of Annotation in dalvik.annotation
Classes in dalvik.annotation that implement Annotation Modifier and Type Class Description interfaceAndroidOnlyMarks a test-case as Android-only, that is, it should not be executed on other systems.interfaceBrokenTestMarks a test case as broken.interfaceKnownFailureMarks a test case as a known failure.interfaceSideEffectMarks a test-case as either having a side-effect that other tests might notice or suffering from such a side effect.interfaceTestTargetDeprecated.Obsolete.interfaceTestTargetClassDeprecated.Obsolete.interfaceTestTargetNewDefines an annotation used be used within the TestInfo annotation.interfaceTestTargetsDefines an annotation for test classes that allows to link them to the class that is being tested.interfaceToBeFixedDefines an annotation for test methods that indicate the test method need to be fixed in future. -
Uses of Annotation in java.lang
Classes in java.lang that implement Annotation Modifier and Type Class Description interfaceDeprecatedAnnotation type used to mark program elements that should no longer be used by programmers.interfaceFindBugsSuppressWarningsSuppress FindBugs warnings on the annotated element.interfaceFunctionalInterfaceMarks an interface as a "functional interface" as defined by the JLS 8.interfaceOverrideAnnotation type used to mark methods that override a method declaration in a superclass.interfaceSafeVarargsClaims to the compiler that the annotation target does nothing potentially unsafe to its varargs argument.interfaceSuppressWarningsAnnotation type used to indicate that the compiler should not issue the specified warnings for the marked program element.Methods in java.lang with type parameters of type Annotation Modifier and Type Method Description <A extends Annotation>
AClass. getAnnotation(Class<A> annotationType)<A extends Annotation>
APackage. getAnnotation(Class<A> annotationType)Returns the annotation associated with the specified annotation type and this package, if present.Methods in java.lang that return Annotation Modifier and Type Method Description Annotation[]Class. getAnnotations()Returns an array containing all the annotations of this class.Annotation[]Package. getAnnotations()Returns an array of this package's annotations.Annotation[]Class. getDeclaredAnnotations()Returns the annotations that are directly defined on the class represented by thisClass.Annotation[]Package. getDeclaredAnnotations()Returns an array of this package's declared annotations.Method parameters in java.lang with type arguments of type Annotation Modifier and Type Method Description booleanClass. isAnnotationPresent(Class<? extends Annotation> annotationType)booleanPackage. isAnnotationPresent(Class<? extends Annotation> annotationType)Indicates whether the specified annotation is present. -
Uses of Annotation in java.lang.annotation
Classes in java.lang.annotation that implement Annotation Modifier and Type Class Description interfaceDocumentedDefines a meta-annotation for indicating that an annotation is documented and considered part of the public API.interfaceInheritedDefines a meta-annotation for indicating that an annotation is automatically inherited.interfaceRetentionDefines a meta-annotation for determining the scope of retention for an annotation.interfaceTargetDefines a meta-annotation for determining whatElementTypes an annotation can be applied to.Methods in java.lang.annotation that return types with arguments of type Annotation Modifier and Type Method Description Class<? extends Annotation>Annotation. annotationType()Returns the type of this annotation.Class<? extends Annotation>IncompleteAnnotationException. annotationType()Returns the annotation type.Constructor parameters in java.lang.annotation with type arguments of type Annotation Constructor Description IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)Constructs an instance with the incomplete annotation type and the name of the element that's missing. -
Uses of Annotation in java.lang.reflect
Methods in java.lang.reflect with type parameters of type Annotation Modifier and Type Method Description <T extends Annotation>
TAccessibleObject. getAnnotation(Class<T> annotationType)<T extends Annotation>
TAnnotatedElement. getAnnotation(Class<T> annotationType)Returns, for this element, the annotation with the specified type, ornullif no annotation with the specified type is present (including inherited annotations).Methods in java.lang.reflect that return Annotation Modifier and Type Method Description Annotation[]AccessibleObject. getAnnotations()Annotation[]AnnotatedElement. getAnnotations()Returns, for this element, an array containing all annotations (including inherited annotations).Annotation[]AccessibleObject. getDeclaredAnnotations()protected Annotation[]AccessibleObject. getDeclaredAnnotations(boolean copy)Annotation[]AnnotatedElement. getDeclaredAnnotations()Returns, for this element, all annotations that are explicitly declared (not inherited).protected Annotation[]Constructor. getDeclaredAnnotations(boolean copy)protected Annotation[]Field. getDeclaredAnnotations(boolean copy)protected Annotation[]Method. getDeclaredAnnotations(boolean copy)Annotation[][]Constructor. getParameterAnnotations()Returns an array of arrays that represent the annotations of the formal parameters of this constructor.Annotation[][]Method. getParameterAnnotations()Returns an array of arrays that represent the annotations of the formal parameters of this method.Method parameters in java.lang.reflect with type arguments of type Annotation Modifier and Type Method Description booleanAccessibleObject. isAnnotationPresent(Class<? extends Annotation> annotationType)booleanAnnotatedElement. isAnnotationPresent(Class<? extends Annotation> annotationType)Indicates whether or not this element has an annotation with the specified annotation type (including inherited annotations). -
Uses of Annotation in libcore.reflect
Methods in libcore.reflect with type parameters of type Annotation Modifier and Type Method Description static <A extends Annotation>
AAnnotationFactory. createAnnotation(Class<? extends Annotation> annotationType, AnnotationMember[] elements)Provides a new annotation instance.Method parameters in libcore.reflect with type arguments of type Annotation Modifier and Type Method Description static <A extends Annotation>
AAnnotationFactory. createAnnotation(Class<? extends Annotation> annotationType, AnnotationMember[] elements)Provides a new annotation instance.static AnnotationMember[]AnnotationFactory. getElementsDescription(Class<? extends Annotation> annotationType)Reflects specified annotation type and returns an array of member element definitions with default values. -
Uses of Annotation in org.robovm.rt.annotation
Classes in org.robovm.rt.annotation that implement Annotation Modifier and Type Class Description classAnnotationAbstract base class of annotation implementation classes generated by the compilerAnnotationImplPlugin.interfaceStronglyLinkedMarks a method to be strongly linked preventing it from being stripped no matter which tree shaking algorithm is being used.interfaceWeaklyLinkedMarks a method to be weakly linked when using theconservativetree shaking algorithm.Methods in org.robovm.rt.annotation that return types with arguments of type Annotation Modifier and Type Method Description Class<? extends Annotation>Annotation. annotationType()Constructor parameters in org.robovm.rt.annotation with type arguments of type Annotation Constructor Description Annotation(Class<? extends Annotation> klass) -
Uses of Annotation in org.robovm.rt.bro.annotation
Classes in org.robovm.rt.bro.annotation that implement Annotation Modifier and Type Class Description interfaceAfterBridgeCallMethods annotated withAfterBridgeCallwill be called for the parameters of aBridgemethod that were marshaled to pointers after the method has completed.interfaceAfterCallbackCallMethods annotated withAfterCallbackCallwill be called for the parameters of aCallbackmethod that were marshaled from pointers after the method has completed.interfaceArraySpecifies that aStructMemberis an array of the specified dimension.interfaceBridgeinterfaceByRefinterfaceByValinterfaceCallbackMarks a method as a callback which can be called from native code.interfaceForceLinkClassAdds a dependency from the annotated classAto another classBforcing the compiler to link inBifAis referenced in some way by other classes in an app.interfaceForceLinkClassesAdds dependencies from the annotated classAto a set of other classesB1, B2, ...forcing the compiler to link inB1, B2, ...ifAis referenced in some way by other classes in an app.interfaceGlobalValueinterfaceLibraryinterfaceMachineSizedFloatinterfaceMachineSizedSIntinterfaceMachineSizedUIntinterfaceMarshalerinterfaceMarshalersinterfaceMarshalsArrayinterfaceMarshalsPointerinterfaceMarshalsValueinterfacePackedSpecifies that annotated struct has to be packedinterfacePointerinterfaceStructMemberinterfaceStructRetinterfaceVariadicUsed to specify the index of the firstva_argparameter in aBridgemethod.interfaceVectorisedSpecifies that annotated struct has to be optimized as SIMD Vector