/external/junit/src/org/junit/runners/model/ |
FrameworkField.java | 3 import java.lang.annotation.Annotation; 25 public Annotation[] getAnnotations() {
|
/external/proguard/src/proguard/classfile/attribute/annotation/ |
AnnotationsAttribute.java | 21 package proguard.classfile.attribute.annotation; 25 import proguard.classfile.attribute.annotation.visitor.AnnotationVisitor; 35 public Annotation[] annotations; 51 Annotation[] annotations) 68 // type of Annotation. 82 // type of Annotation. 96 // type of Annotation.
|
ArrayElementValue.java | 21 package proguard.classfile.attribute.annotation; 24 import proguard.classfile.attribute.annotation.visitor.ElementValueVisitor; 66 public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) 68 elementValueVisitor.visitArrayElementValue(clazz, annotation, this); 75 public void elementValuesAccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) 79 elementValues[index].accept(clazz, annotation, elementValueVisitor);
|
RuntimeInvisibleParameterAnnotationsAttribute.java | 21 package proguard.classfile.attribute.annotation; 47 Annotation[][] parameterAnnotations)
|
RuntimeVisibleParameterAnnotationsAttribute.java | 21 package proguard.classfile.attribute.annotation; 47 Annotation[][] parameterAnnotations)
|
Annotation.java | 21 package proguard.classfile.attribute.annotation; 24 import proguard.classfile.attribute.annotation.visitor.ElementValueVisitor; 28 * Representation of an annotation. 32 public class Annotation implements VisitorAccepter 54 * Creates an uninitialized Annotation. 56 public Annotation() 62 * Creates an initialized Annotation. 64 public Annotation(int u2typeIndex, 86 * main annotation class.
|
ConstantElementValue.java | 21 package proguard.classfile.attribute.annotation; 24 import proguard.classfile.attribute.annotation.visitor.ElementValueVisitor; 67 public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) 69 elementValueVisitor.visitConstantElementValue(clazz, annotation, this);
|
RuntimeInvisibleAnnotationsAttribute.java | 21 package proguard.classfile.attribute.annotation; 46 Annotation[] annotations)
|
RuntimeVisibleAnnotationsAttribute.java | 21 package proguard.classfile.attribute.annotation; 46 Annotation[] annotations)
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/ |
HasMethodAnnotationTest.java | 17 package android.test.suitebuilder.annotation; 22 import java.lang.annotation.Annotation; 40 Class<? extends Annotation> expectedClassification
|
/external/javassist/src/main/javassist/bytecode/ |
AnnotationsAttribute.java | 23 import javassist.bytecode.annotation.*; 42 * import javassist.bytecode.annotation.Annotation; 48 * Annotation an = attr.getAnnotation("Author"); 53 * <p>This code snippet retrieves an annotation of the type <code>Author</code> 57 * <p>If the annotation type <code>Author</code> is annotated by a meta annotation: 74 * <p>If the member value of an annotation is not specified, the default value 76 * <code>Annotation</code> returns <code>null</code> 80 * annotation type 339 final int annotation(int pos) throws Exception { method in class:AnnotationsAttribute.Walker 345 int annotation(int pos, int type, int numPairs) throws Exception { method in class:AnnotationsAttribute.Walker 427 int annotation(int pos, int type, int numPairs) throws Exception { method in class:AnnotationsAttribute.Renamer 495 int annotation(int pos, int type, int numPairs) throws Exception { method in class:AnnotationsAttribute.Copier 617 int annotation(int pos, int type, int numPairs) throws Exception { method in class:AnnotationsAttribute.Parser [all...] |
ParameterAnnotationsAttribute.java | 27 import javassist.bytecode.annotation.*; 75 * A new annotation can be later added to the created attribute 81 * @see #setAnnotations(Annotation[][]) 128 * @see #setAnnotations(Annotation[][]) 130 public Annotation[][] getAnnotations() { 141 * the given array of <code>Annotation</code> objects. 145 * is an array of <code>Annotation</code> and 148 public void setAnnotations(Annotation[][] params) { 155 Annotation[] anno = params[i]; 195 Annotation[][] aa = getAnnotations() [all...] |
/libcore/support/src/test/java/tests/resources/Package/ |
hyts_package.jar | |
/dalvik/tests/004-annotations/src/android/test/anno/ |
TestAnnotations.java | 3 import java.lang.annotation.Annotation; 14 static private void printAnnotationArray(String prefix, Annotation[] arr) { 15 TreeMap<String, Annotation> sorted = 16 new TreeMap<String, Annotation>(); 18 for (Annotation a : arr) { 22 for (Annotation a : sorted.values()) { 29 Annotation[] annos; 30 Annotation[][] parAnnos; 44 for (Annotation[] pannos: c.getParameterAnnotations()) [all...] |
/external/mockito/src/org/mockito/internal/util/reflection/ |
InstanceField.java | 9 import java.lang.annotation.Annotation; 64 * Check if the field is annotated by the given annotation. 66 * @param annotationClass The annotation type to check. 67 * @return <code>true</code> if the field is annotated by this annotation, else <code>false</code>. 69 public boolean isAnnotatedBy(Class<? extends Annotation> annotationClass) { 74 * Returns the annotation instance for the given annotation type. 76 * @param annotationClass Tha annotation type to retrieve. 77 * @param <A> Type of the annotation 80 public <A extends Annotation> A annotation(Class<A> annotationClass) { method in class:InstanceField [all...] |
/libcore/luni/src/main/java/java/lang/reflect/ |
Method.java | 35 import java.lang.annotation.Annotation; 145 Object[] annotation = getSignatureAnnotation(declaringClass, slot); local 147 if (annotation == null) { 151 return StringUtils.combineStrings(annotation); 155 * Returns the Signature annotation for this method. Returns {@code null} if 267 public Annotation[] getDeclaredAnnotations() { 270 static native Annotation[] getDeclaredAnnotations(Class<?> declaringClass, int slot); 272 @Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { 278 static native <A extends Annotation> A getAnnotation [all...] |
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/ |
Annotation.java | 17 package com.android.dexgen.rop.annotation; 38 * An annotation on an element of a class. Annotations have an 42 public final class Annotation extends MutabilityControl 43 implements Comparable<Annotation>, ToHuman { 44 /** {@code non-null;} type of the annotation */ 47 /** {@code non-null;} the visibility of the annotation */ 56 * @param type {@code non-null;} type of the annotation 57 * @param visibility {@code non-null;} the visibility of the annotation 59 public Annotation(CstType type, AnnotationVisibility visibility) { 76 if (! (other instanceof Annotation)) { [all...] |
/dalvik/dx/src/com/android/dx/rop/annotation/ |
Annotation.java | 17 package com.android.dx.rop.annotation; 30 * An annotation on an element of a class. Annotations have an 34 public final class Annotation extends MutabilityControl 35 implements Comparable<Annotation>, ToHuman { 36 /** {@code non-null;} type of the annotation */ 39 /** {@code non-null;} the visibility of the annotation */ 48 * @param type {@code non-null;} type of the annotation 49 * @param visibility {@code non-null;} the visibility of the annotation 51 public Annotation(CstType type, AnnotationVisibility visibility) { 68 if (! (other instanceof Annotation)) { [all...] |
/external/dexmaker/src/dx/java/com/android/dx/rop/annotation/ |
Annotation.java | 17 package com.android.dx.rop.annotation; 30 * An annotation on an element of a class. Annotations have an 34 public final class Annotation extends MutabilityControl 35 implements Comparable<Annotation>, ToHuman { 36 /** {@code non-null;} type of the annotation */ 39 /** {@code non-null;} the visibility of the annotation */ 48 * @param type {@code non-null;} type of the annotation 49 * @param visibility {@code non-null;} the visibility of the annotation 51 public Annotation(CstType type, AnnotationVisibility visibility) { 68 if (! (other instanceof Annotation)) { [all...] |
/external/proguard/src/proguard/classfile/editor/ |
ElementValueAdder.java | 24 import proguard.classfile.attribute.annotation.*; 25 import proguard.classfile.attribute.annotation.visitor.ElementValueVisitor; 29 * target annotation default attribute, annotation, or element value. 48 * given target annotation default attribute value. 64 * given target annotation. 67 Annotation targetAnnotation, 100 public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) 117 public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue [all...] |
/external/junit/src/org/junit/internal/runners/rules/ |
RuleFieldValidator.java | 3 import java.lang.annotation.Annotation; 18 * validates fields with a {@link ClassRule} annotation and the 19 * {@link #RULE_VALIDATOR} validates fields with a {@link Rule} annotation. 23 * Validates fields with a {@link ClassRule} annotation. 27 * Validates fields with a {@link Rule} annotation. 31 private final Class<? extends Annotation> fAnnotation; 35 private RuleFieldValidator(Class<? extends Annotation> annotation, 37 this.fAnnotation= annotation; [all...] |
/dalvik/dx/src/com/android/dx/io/ |
Annotation.java | 22 * An annotation. 24 public final class Annotation implements Comparable<Annotation> { 31 public Annotation(DexBuffer buffer, byte visibility, int typeIndex, int[] names, 66 @Override public int compareTo(Annotation other) {
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
Annotation.java | 16 package javassist.bytecode.annotation; 31 * The <code>annotation</code> structure. 47 public class Annotation { 59 * Constructs an annotation including no members. A member can be 60 * later added to the created annotation by <code>addMemberValue()</code>. 65 * repreenting the name of the annotation interface type. 70 public Annotation(int type, ConstPool cp) { 77 * Constructs an annotation including no members. A member can be 78 * later added to the created annotation by <code>addMemberValue()</code>. 80 * @param typeName the name of the annotation interface type [all...] |
/external/junit/src/org/junit/internal/runners/ |
TestClass.java | 3 import java.lang.annotation.Annotation; 41 public List<Method> getAnnotatedMethods(Class<? extends Annotation> annotationClass) { 46 Annotation annotation= eachMethod.getAnnotation(annotationClass); local 47 if (annotation != null && ! isShadowed(eachMethod, results)) 56 private boolean runsTopToBottom(Class< ? extends Annotation> annotation) { 57 return annotation.equals(Before.class) || annotation.equals(BeforeClass.class) [all...] |
/frameworks/testing/androidtestlib/src/com/android/test/runner/ |
TestRequestBuilder.java | 20 import android.test.suitebuilder.annotation.LargeTest; 21 import android.test.suitebuilder.annotation.MediumTest; 22 import android.test.suitebuilder.annotation.SmallTest; 23 import android.test.suitebuilder.annotation.Suppress; 39 import java.lang.annotation.Annotation; 68 private final Class<? extends Annotation> mAnnotationClass; 70 AnnotationInclusionFilter(Class<? extends Annotation> annotation) { 71 mAnnotationClass = annotation; [all...] |