/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...] |
/external/guice/core/src/com/google/inject/binder/ |
AnnotatedConstantBindingBuilder.java | 19 import java.lang.annotation.Annotation; 32 Class<? extends Annotation> annotationType); 37 ConstantBindingBuilder annotatedWith(Annotation annotation);
|
AnnotatedElementBuilder.java | 19 import java.lang.annotation.Annotation; 32 void annotatedWith(Class<? extends Annotation> annotationType); 37 void annotatedWith(Annotation annotation);
|
AnnotatedBindingBuilder.java | 19 import java.lang.annotation.Annotation; 32 Class<? extends Annotation> annotationType); 37 LinkedBindingBuilder<T> annotatedWith(Annotation annotation);
|
/external/junit/src/main/java/org/junit/runners/model/ |
Annotatable.java | 3 import java.lang.annotation.Annotation; 14 Annotation[] getAnnotations(); 17 * Returns the annotation on the model element of the given type, or @code{null} 19 <T extends Annotation> T getAnnotation(Class<T> annotationType);
|
/external/junit-params/src/main/java/junitparams/custom/ |
ParametersProvider.java | 3 import java.lang.annotation.Annotation; 6 * An interface for custom parameters providers. To be used with {@link CustomParameters} annotation. 9 * @param <A> type of annotation mentioning this provider 11 public interface ParametersProvider<A extends Annotation> { 14 * Initializes this provider - you can read your custom annotation config here. 16 * @param parametersAnnotation parameters annotation on test method
|
/libcore/ojluni/src/main/java/java/lang/annotation/ |
Annotation.java | 26 package java.lang.annotation; 29 * The common interface extended by all annotation types. Note that an 31 * an annotation type. Also note that this interface does not itself 32 * define an annotation type. 34 * More information about annotation types can be found in section 9.6 of 38 * compatibility concerns when evolving an annotation type from being 44 public interface Annotation { 46 * Returns true if the specified object represents an annotation 49 * annotation type as this instance, all of whose members are equal 50 * to the corresponding member of this annotation, as defined below [all...] |
IncompleteAnnotationException.java | 26 package java.lang.annotation; 30 * an annotation type that was added to the annotation type definition after 31 * the annotation was compiled (or serialized). This exception will not be 44 private Class<? extends Annotation> annotationType; 49 * the named element was missing from the specified annotation type. 51 * @param annotationType the Class object for the annotation type 56 Class<? extends Annotation> annotationType, 66 * Returns the Class object for the annotation type with the 69 * @return the Class object for the annotation type with th [all...] |
Repeatable.java | 26 package java.lang.annotation; 29 * The annotation type {@code java.lang.annotation.Repeatable} is 30 * used to indicate that the annotation type whose declaration it 32 * {@code @Repeatable} indicates the <em>containing annotation 33 * type</em> for the repeatable annotation type. 36 * @jls 9.6 Annotation Types 44 * Indicates the <em>containing annotation type</em> for the 45 * repeatable annotation type. 46 * @return the containing annotation typ [all...] |
/external/guice/core/src/com/google/inject/internal/ |
Nullability.java | 19 import java.lang.annotation.Annotation; 25 * Any annotation type whose simplename is "Nullable" is sufficient to indicate 30 * javax.annotation.meta.Nullable</a> annotation and IntelliJ IDEA's 39 public static boolean allowsNull(Annotation[] annotations) { 40 for(Annotation a : annotations) { 41 Class<? extends Annotation> type = a.annotationType();
|
Annotations.java | 36 import java.lang.annotation.Annotation; 37 import java.lang.annotation.Retention; 38 import java.lang.annotation.RetentionPolicy; 50 * Annotation utilities. 57 * Returns {@code true} if the given annotation type has no attributes. 59 public static boolean isMarker(Class<? extends Annotation> annotationType) { 63 public static boolean isAllDefaultMethods(Class<? extends Annotation> annotationType) { 74 private static final LoadingCache<Class<? extends Annotation>, Annotation> cache [all...] |
/external/r8/src/test/examples/multidex002/ |
TestApplication.java | 7 import java.lang.annotation.Annotation; 13 public static Annotation annotation = getAnnotationWithEnum(); field in class:TestApplication 14 public static Annotation annotation2 = getSoleAnnotation(Annotated.class); 15 public static Annotation annotation3 = getSoleAnnotation(Annotated2.class); 18 public static Annotation getAnnotationWithEnum() { 22 public static Annotation getSoleAnnotation(Class<?> annotated) { 23 Annotation[] annot = annotated.getAnnotations();
|
/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();
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
AnnotatedElement.java | 29 import java.lang.annotation.Annotation; 34 // apply and added a note about annotation ordering. 51 * either method is a repeatable annotation type (JLS 9.6), then the 52 * method will "look through" a container annotation (JLS 9.7), if 64 * <li> An annotation <i>A</i> is <em>directly present</em> on an 67 * <li>An annotation <i>A</i> is <em>indirectly present</em> on an 68 * element <i>E</i> if <i>E</i> is annotated by a container annotation 71 * <li>An annotation <i>A</i> is present on an element <i>E</i> if either: 77 * <li>No annotation of <i>A</i> 's type is directly present o [all...] |
/external/proguard/src/proguard/classfile/attribute/annotation/visitor/ |
AnnotationVisitor.java | 21 package proguard.classfile.attribute.annotation.visitor; 25 import proguard.classfile.attribute.annotation.Annotation; 29 * <code>Annotation</code> objects. Note that there is only a single 30 * implementation of <code>Annotation</code>, such that this interface 37 public void visitAnnotation(Clazz clazz, Annotation annotation); 38 public void visitAnnotation(Clazz clazz, Field field, Annotation annotation); 39 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/junit-params/src/main/java/junitparams/converters/ |
Converter.java | 3 import java.lang.annotation.Annotation; 7 * done via {@link Converter#initialize(java.lang.annotation.Annotation)} method<br> 10 * @param <A> type of annotation mentioning this converter 13 public interface Converter<A extends Annotation, T> { 16 * Initializes this converter - you can read your annotation config here. 18 void initialize(A annotation);
|
/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>> { 48 public void intern(@Nonnull Set<? extends Annotation> annotationSet) { 52 for (Annotation annotation: annotationSet) { 53 dexPool.annotationSection.intern(annotation); 59 @Nonnull @Override public Collection<? extends Annotation> getAnnotations [all...] |
/libcore/ojluni/src/main/java/java/text/ |
Annotation.java | 29 * An Annotation object is used as a wrapper for a text attribute value if 30 * the attribute has annotation characteristics. These characteristics are: 48 * Wrapping the attribute value into an Annotation object guarantees that 57 public class Annotation { 60 * Constructs an annotation record with the given value, which 65 public Annotation(Object value) { 79 * Returns the String representation of this Annotation. 81 * @return the {@code String} representation of this {@code Annotation}
|
/external/junit-params/src/main/java/junitparams/internal/annotation/ |
CustomParametersDescriptor.java | 1 package junitparams.internal.annotation; 3 import java.lang.annotation.Annotation; 10 private final Annotation customAnnotation; 18 public CustomParametersDescriptor(CustomParameters customParameters, Annotation customAnnotation) { 27 public Annotation annotation() { method in class:CustomParametersDescriptor
|
/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/rewriter/ |
AnnotationRewriter.java | 35 import org.jf.dexlib2.iface.Annotation; 38 import javax.annotation.Nonnull; 41 public class AnnotationRewriter implements Rewriter<Annotation> { 48 @Nonnull @Override public Annotation rewrite(@Nonnull Annotation value) { 53 @Nonnull protected Annotation annotation; field in class:AnnotationRewriter.RewrittenAnnotation 55 public RewrittenAnnotation(@Nonnull Annotation annotation) { 56 this.annotation = annotation [all...] |
/external/guice/core/src/com/google/inject/spi/ |
ModuleAnnotatedMethodScanner.java | 22 import java.lang.annotation.Annotation; 38 public abstract Set<? extends Class<? extends Annotation>> annotationClasses(); 42 * the binding annotation and return value of the method. Implementations can modify the key to 47 * <p>The injection point and annotation are provided in case the implementation wants to set the 48 * key based on the property of the annotation or if any additional preparation is needed for any 49 * of the dependencies. The annotation is guaranteed to be an instance of one the classes returned 52 public abstract <T> Key<T> prepareMethod(Binder binder, Annotation annotation, Key<T> key,
|
/external/guice/core/test/com/google/inject/internal/ |
UniqueAnnotationsTest.java | 22 import java.lang.annotation.Annotation; 32 Annotation actual = UniqueAnnotations.create(31); 34 Annotation expected = getClass().getFields()[0].getAnnotations()[0];
|
/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...] |