/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
AnnotationTest.java | 20 import java.text.Annotation; 27 assertNotNull(new Annotation(null)); 28 assertNotNull(new Annotation("value")); 32 Annotation a = new Annotation(null); 34 a = new Annotation("value"); 39 Annotation ant = new Annotation("HelloWorld"); 41 "java.text.Annotation[value=HelloWorld]",ant.toString()); 42 assertNotNull(new Annotation(null).toString()) [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() {
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ |
TestApplication.java | 21 import java.lang.annotation.Annotation; 26 public static Annotation annotation = getAnnotationWithEnum(); field in class:TestApplication 27 public static Annotation annotation2 = getSoleAnnotation(Annotated.class); 28 public static Annotation annotation3 = getSoleAnnotation(Annotated2.class); 31 public static Annotation getAnnotationWithEnum() { 35 public static Annotation getSoleAnnotation(Class<?> annotated) { 36 Annotation[] annot = annotated.getAnnotations();
|
/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...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
AnnotationSetPool.java | 34 import org.jf.dexlib2.iface.Annotation; 37 import javax.annotation.Nonnull; 41 public class AnnotationSetPool extends BaseNullableOffsetPool<Set<? extends Annotation>> 42 implements AnnotationSetSection<Annotation, Set<? extends Annotation>> { 49 public void intern(@Nonnull Set<? extends Annotation> annotationSet) { 53 for (Annotation annotation: annotationSet) { 54 annotationPool.intern(annotation); 60 @Nonnull @Override public Collection<? extends Annotation> getAnnotations [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...] |
/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...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/ |
BaseAnnotation.java | 35 import org.jf.dexlib2.iface.Annotation; 40 public abstract class BaseAnnotation implements Annotation { 50 if (o instanceof Annotation) { 51 Annotation other = (Annotation)o; 60 public int compareTo(Annotation o) { 68 public static final Comparator<? super Annotation> BY_TYPE = new Comparator<Annotation>() { 70 public int compare(Annotation annotation1, Annotation annotation2) [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/iface/ |
Annotation.java | 34 import javax.annotation.Nonnull; 35 import javax.annotation.Nullable; 39 * This class represents a specific instance of an annotation applied to a class/field/method/parameter 41 public interface Annotation extends BasicAnnotation, Comparable<Annotation> { 43 * Gets the visibility of this annotation. 47 * @return The visibility of this annotation 52 * Gets the type of this annotation. 54 * This will be the type descriptor of the class that defines this annotation. 56 * @return The type of this annotation [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/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/ |
AnnotationSetSection.java | 34 import org.jf.dexlib2.iface.Annotation; 36 import javax.annotation.Nonnull; 39 public interface AnnotationSetSection<AnnotationKey extends Annotation, AnnotationSetKey>
|
/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...] |
/libcore/libart/src/main/java/java/lang/reflect/ |
AccessibleObject.java | 35 import java.lang.annotation.Annotation; 94 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { 98 @Override public Annotation[] getDeclaredAnnotations() { 102 @Override public Annotation[] getAnnotations() { 107 @Override public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
|
/prebuilts/maven_repo/android/com/android/support/support-annotations/21.0.3/ |
support-annotations-21.0.3.jar | |
/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;
|