HomeSort by relevance Sort by last modified time
    Searched refs:Annotation (Results 1 - 25 of 237) sorted by null

1 2 3 4 5 6 7 8 910

  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
AnnotationTest.java 20 import java.text.Annotation;
27 * @tests java.text.Annotation(Object)
30 assertNotNull(new Annotation(null));
31 assertNotNull(new Annotation("value"));
35 * @tests java.text.Annotation.getValue()
38 Annotation a = new Annotation(null);
40 a = new Annotation("value");
45 * @tests java.text.Annotation.toString()
48 Annotation ant = new Annotation("HelloWorld")
    [all...]
  /libcore/luni/src/main/java/java/lang/reflect/
AnnotatedElement.java 20 import java.lang.annotation.Annotation;
23 * This interface provides reflective access to annotation information.
30 * Returns, for this element, the annotation with the specified type, or
31 * {@code null} if no annotation with the specified type is present
35 * the type of the annotation to search for
36 * @return the annotation with the specified type or {@code null}
40 <T extends Annotation> T getAnnotation(Class<T> annotationType);
49 Annotation[] getAnnotations();
58 Annotation[] getDeclaredAnnotations()
    [all...]
  /libcore/luni/src/main/java/java/lang/annotation/
Annotation.java 18 package java.lang.annotation;
22 * itself is <i>not</i> an annotation, and neither is an interface that simply
23 * extends this one. Only the compiler is able to create proper annotation
28 public interface Annotation {
31 * Returns the type of this annotation.
33 * @return A {@code Class} instance representing the annotation type.
35 Class<? extends Annotation> annotationType();
38 * Determines whether or not this annotation is equivalent to the annotation
44 * they are members of the same annotation type and all the membe
    [all...]
IncompleteAnnotationException.java 18 package java.lang.annotation;
21 * Indicates that an element of an annotation type was accessed that was added
31 private Class<? extends Annotation> annotationType;
36 * Constructs an instance with the incomplete annotation type and the name
40 * the annotation type.
44 public IncompleteAnnotationException(Class<? extends Annotation> annotationType,
46 super("The element " + elementName + " is not complete for the annotation " +
53 * Returns the annotation type.
57 public Class<? extends Annotation> annotationType() {
  /external/proguard/src/proguard/classfile/attribute/annotation/visitor/
AnnotationVisitor.java 21 package proguard.classfile.attribute.annotation.visitor;
24 import proguard.classfile.attribute.annotation.Annotation;
28 * <code>Annotation</code> objects. Note that there is only a single
29 * implementation of <code>Annotation</code>, such that this interface
36 public void visitAnnotation(Clazz clazz, Annotation annotation);
37 public void visitAnnotation(Clazz clazz, Field field, Annotation annotation);
38 public void visitAnnotation(Clazz clazz, Method method, Annotation annotation)
    [all...]
ElementValueVisitor.java 21 package proguard.classfile.attribute.annotation.visitor;
24 import proguard.classfile.attribute.annotation.*;
34 public void visitConstantElementValue( Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue);
35 public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue);
36 public void visitClassElementValue( Clazz clazz, Annotation annotation, ClassElementValue classElementValue);
37 public void visitAnnotationElementValue( Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue)
    [all...]
  /libcore/luni/src/main/java/java/text/
Annotation.java 21 * Wrapper for a text attribute value which represents an annotation. An
22 * annotation has two special aspects:
25 * is changed then the annotation becomes invalid,</li>
30 * By wrapping text attribute values into an {@code Annotation}, these aspects
31 * will be taken into account when handling annotation text and the
34 * Note: There is no semantic connection between this annotation class and the
35 * {@code java.lang.annotation} package.
37 public class Annotation {
42 * Constructs a new {@code Annotation}.
44 * @param attribute the attribute attached to this annotation. This may b
    [all...]
  /external/jmonkeyengine/engine/src/core/checkers/quals/
Dependent.java 3 import java.lang.annotation.Annotation;
4 import java.lang.annotation.Documented;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
10 * qualified type of the receiver. The annotation declares a relationship
31 Class<? extends Annotation> result();
37 Class<? extends Annotation> when();
SubtypeOf.java 3 import java.lang.annotation.*;
6 * A meta-annotation to specify all the qualifiers that the given qualifier
49 * No @SubtypeOf meta-annotation is needed on (or can be written on) the
58 Class<? extends Annotation>[] value();
Unused.java 3 import static java.lang.annotation.ElementType.FIELD;
4 import java.lang.annotation.*;
40 * receiver that is annotated with the "when" annotation.
42 Class<? extends Annotation> when();
  /cts/tests/tests/text/src/android/text/cts/
AnnotationTest.java 21 import android.text.Annotation;
30 private Annotation mAnnotation;
40 // new the Annotation instance
41 new Annotation(KEY1, VALUE1);
45 // new the Annotation instance
46 mAnnotation = new Annotation(KEY1, VALUE1);
48 mAnnotation = new Annotation(KEY2, VALUE2);
53 // new the Annotation instance
54 mAnnotation = new Annotation(KEY1, VALUE1);
56 mAnnotation = new Annotation(KEY2, VALUE2)
    [all...]
  /frameworks/base/test-runner/src/android/test/suitebuilder/annotation/
HasClassAnnotation.java 17 package android.test.suitebuilder.annotation;
19 import java.lang.annotation.Annotation;
25 * A predicate that checks to see if a {@link android.test.suitebuilder.TestMethod} has a specific annotation on the
32 private Class<? extends Annotation> annotationClass;
34 public HasClassAnnotation(Class<? extends Annotation> annotationClass) {
HasMethodAnnotation.java 17 package android.test.suitebuilder.annotation;
22 import java.lang.annotation.Annotation;
26 * annotation on it. Consider using the public {@link HasAnnotation} class instead of this class.
32 private final Class<? extends Annotation> annotationClass;
34 public HasMethodAnnotation(Class<? extends Annotation> annotationClass) {
  /external/jsr305/ri/src/main/java/javax/annotation/meta/
TypeQualifierValidator.java 1 package javax.annotation.meta;
3 import java.lang.annotation.Annotation;
5 import javax.annotation.Nonnull;
7 public interface TypeQualifierValidator<A extends Annotation> {
12 * @param annotation
20 When forConstantValue(@Nonnull A annotation, Object value);
  /external/junit/src/org/junit/runners/model/
FrameworkMember.java 3 import java.lang.annotation.Annotation;
10 abstract Annotation[] getAnnotations();
  /external/mockito/src/org/mockito/configuration/
AnnotationEngine.java 9 import java.lang.annotation.Annotation;
24 * Only if of correct annotation type.
26 * @param annotation Annotation
30 Object createMockFor(Annotation annotation, Field field);
  /external/mockito/src/org/mockito/internal/configuration/
FieldAnnotationProcessor.java 7 import java.lang.annotation.Annotation;
11 * Simple annotation processor interface.
13 public interface FieldAnnotationProcessor<A extends Annotation> {
14 Object process(A annotation, Field field);
  /external/junit/src/org/junit/experimental/theories/
ParameterSignature.java 6 import java.lang.annotation.Annotation;
25 Class<?>[] parameterTypes, Annotation[][] parameterAnnotations) {
36 private final Annotation[] annotations;
38 private ParameterSignature(Class<?> type, Annotation[] annotations) {
51 public List<Annotation> getAnnotations() {
59 public boolean hasAnnotation(Class<? extends Annotation> type) {
63 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) {
64 Annotation[] annotations2= annotations;
68 private <T extends Annotation> T findDeepAnnotation
    [all...]
  /external/proguard/src/proguard/classfile/attribute/annotation/
AnnotationElementValue.java 21 package proguard.classfile.attribute.annotation;
24 import proguard.classfile.attribute.annotation.visitor.*;
27 * This ElementValue represents an annotation element value.
33 public Annotation annotationValue;
48 Annotation annotationValue)
57 * Applies the given visitor to the annotation.
72 public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor)
74 elementValueVisitor.visitAnnotationElementValue(clazz, annotation, this);
  /external/proguard/src/proguard/classfile/editor/
AnnotationsAttributeEditor.java 23 import proguard.classfile.attribute.annotation.*;
47 * Adds a given annotation to the annotations attribute.
49 public void addAnnotation(Annotation annotation)
52 Annotation[] annotations = targetAnnotationsAttribute.annotations;
54 // Make sure there is enough space for the new annotation.
57 targetAnnotationsAttribute.annotations = new Annotation[annotationsCount+1];
64 // Add the annotation.
65 annotations[targetAnnotationsAttribute.u2annotationsCount++] = annotation;
ParameterAnnotationsAttributeEditor.java 23 import proguard.classfile.attribute.annotation.*;
47 * Adds a given annotation to the annotations attribute.
49 public void addAnnotation(int parameterIndex, Annotation annotation)
52 Annotation[] annotations = targetParameterAnnotationsAttribute.parameterAnnotations[parameterIndex];
54 // Make sure there is enough space for the new annotation.
58 targetParameterAnnotationsAttribute.parameterAnnotations[parameterIndex] = new Annotation[annotationsCount+1];
68 // Add the annotation.
69 annotations[targetParameterAnnotationsAttribute.u2parameterAnnotationsCount[parameterIndex]++] = annotation;
  /frameworks/base/core/java/android/text/
Annotation.java 26 public class Annotation implements ParcelableSpan {
30 public Annotation(String key, String value) {
35 public Annotation(Parcel src) {
41 return TextUtils.ANNOTATION;
  /dalvik/dexgen/src/com/android/dexgen/rop/cst/
CstAnnotation.java 19 import com.android.dexgen.rop.annotation.Annotation;
22 * Constant type that represents an annotation.
25 /** {@code non-null;} the actual annotation */
26 private final Annotation annotation; field in class:CstAnnotation
31 * @param annotation {@code non-null;} the annotation to hold
33 public CstAnnotation(Annotation annotation) {
    [all...]
  /dalvik/dx/src/com/android/dx/rop/cst/
CstAnnotation.java 19 import com.android.dx.rop.annotation.Annotation;
22 * Constant type that represents an annotation.
25 /** {@code non-null;} the actual annotation */
26 private final Annotation annotation; field in class:CstAnnotation
31 * @param annotation {@code non-null;} the annotation to hold
33 public CstAnnotation(Annotation annotation) {
    [all...]
  /external/dexmaker/src/dx/java/com/android/dx/rop/cst/
CstAnnotation.java 19 import com.android.dx.rop.annotation.Annotation;
22 * Constant type that represents an annotation.
25 /** {@code non-null;} the actual annotation */
26 private final Annotation annotation; field in class:CstAnnotation
31 * @param annotation {@code non-null;} the annotation to hold
33 public CstAnnotation(Annotation annotation) {
    [all...]

Completed in 1429 milliseconds

1 2 3 4 5 6 7 8 910