Home
last modified time | relevance | path

Searched refs:Annotation (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/external/guice/core/src/com/google/inject/internal/
DAnnotations.java37 import java.lang.annotation.Annotation;
57 public static boolean isMarker(Class<? extends Annotation> annotationType) { in isMarker()
61 public static boolean isAllDefaultMethods(Class<? extends Annotation> annotationType) { in isAllDefaultMethods()
72 private static final LoadingCache<Class<? extends Annotation>, Annotation> cache =
76 new CacheLoader<Class<? extends Annotation>, Annotation>() {
78 public Annotation load(Class<? extends Annotation> input) {
87 public static <T extends Annotation> T generateAnnotation(Class<T> annotationType) { in generateAnnotation()
93 private static <T extends Annotation> T generateAnnotationImpl(final Class<T> annotationType) { in generateAnnotationImpl()
119 Class<? extends Annotation> annotationType) {
129 Class<? extends Annotation> type, Map<String, Object> members, Object other)
[all …]
DProvidesMethodScanner.java30 import java.lang.annotation.Annotation;
44 private static final ImmutableSet<Class<? extends Annotation>> ANNOTATIONS =
51 public Set<? extends Class<? extends Annotation>> annotationClasses() { in annotationClasses()
58 Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint) { in prepareMethod()
101 final Annotation annotation;
104 AnnotationOrError(Annotation annotation, boolean error) { in AnnotationOrError()
109 static AnnotationOrError forPossiblyNullAnnotation(Annotation annotation) { in forPossiblyNullAnnotation()
119 Annotation foundAnnotation = null; in findMapKeyAnnotation()
120 for (Annotation annotation : method.getAnnotations()) { in findMapKeyAnnotation()
151 static TypeAndValue<?> typeAndValueOfMapKey(Annotation mapKeyAnnotation) { in typeAndValueOfMapKey()
DProviderMethod.java35 import java.lang.annotation.Annotation;
62 Class<? extends Annotation> scopeAnnotation, in create()
64 Annotation annotation) { in create()
93 private final Class<? extends Annotation> scopeAnnotation;
96 private final Annotation annotation;
109 Class<? extends Annotation> scopeAnnotation, in ProviderMethod()
110 Annotation annotation) { in ProviderMethod()
144 public Annotation getAnnotation() { in getAnnotation()
253 Class<? extends Annotation> scopeAnnotation, in FastClassProviderMethod()
254 Annotation annotation) { in FastClassProviderMethod()
[all …]
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/util/
DAnnotationProcessingUtils.java13 import java.lang.annotation.Annotation;
35 public static <A extends Annotation> A getAnnotation(Description description, Class<A> clazz) { in getAnnotation()
45 public static <A extends Annotation> A getAnnotation(AnnotatedElement element, Class<A> clazz) { in getAnnotation()
52 public static <A extends Annotation> List<A> getAnnotations( in getAnnotations()
60 public static <A extends Annotation> List<A> getAnnotations( in getAnnotations()
66 private static boolean isChromiumAnnotation(Annotation annotation) { in isChromiumAnnotation()
98 private final List<Class<? extends Annotation>> mAnnotationTypes;
99 private final Comparator<Class<? extends Annotation>> mAnnotationTypeComparator;
100 private final Comparator<Annotation> mAnnotationComparator;
103 public AnnotationExtractor(Class<? extends Annotation>... additionalTypes) { in AnnotationExtractor()
[all …]
DAnnotationRule.java14 import java.lang.annotation.Annotation;
82 private List<Annotation> mCollectedAnnotations;
86 public AnnotationRule(Class<? extends Annotation> firstAnnotationType, in AnnotationRule()
87 Class<? extends Annotation>... additionalTypes) { in AnnotationRule()
88 List<Class<? extends Annotation>> mAnnotationTypes = new ArrayList<>(); in AnnotationRule()
115 protected List<Annotation> getAnnotations() { in getAnnotations()
123 protected @Nullable <A extends Annotation> A getAnnotation(Class<A> annnotationType) { in getAnnotation()
124 ListIterator<Annotation> iteratorFromEnd = in getAnnotation()
127 Annotation annotation = iteratorFromEnd.previous(); in getAnnotation()
135 protected @Nullable Annotation getClosestAnnotation() { in getClosestAnnotation()
/external/guice/core/src/com/google/inject/
DKey.java26 import java.lang.annotation.Annotation;
72 protected Key(Class<? extends Annotation> annotationType) { in Key()
91 protected Key(Annotation annotation) { in Key()
145 public final Class<? extends Annotation> getAnnotationType() { in getAnnotationType()
150 public final Annotation getAnnotation() { in getAnnotation()
159 Annotation annotation = annotationStrategy.getAnnotation(); in getAnnotationName()
218 public static <T> Key<T> get(Class<T> type, Class<? extends Annotation> annotationType) { in get()
223 public static <T> Key<T> get(Class<T> type, Annotation annotation) { in get()
233 public static Key<?> get(Type type, Class<? extends Annotation> annotationType) { in get()
238 public static Key<?> get(Type type, Annotation annotation) { in get()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DAnnotationTest.java34 Annotation.fromDescription(null); in fromDescription_NullDescription()
39 Annotation annotation = Annotation.fromDescription("MyAnnotationText"); in fromDescription()
46 Annotation.fromDescriptionAndAttributes(null, Collections.<String, AttributeValue>emptyMap()); in fromDescriptionAndAttributes_NullDescription()
51 Annotation.fromDescriptionAndAttributes("", null); in fromDescriptionAndAttributes_NullAttributes()
59 Annotation annotation = Annotation.fromDescriptionAndAttributes("MyAnnotationText", attributes); in fromDescriptionAndAttributes()
66 Annotation annotation = in fromDescriptionAndAttributes_EmptyAttributes()
67 Annotation.fromDescriptionAndAttributes( in fromDescriptionAndAttributes_EmptyAttributes()
81 Annotation.fromDescription("MyAnnotationText"), in annotation_EqualsAndHashCode()
82 Annotation.fromDescriptionAndAttributes( in annotation_EqualsAndHashCode()
85 Annotation.fromDescriptionAndAttributes("MyAnnotationText", attributes), in annotation_EqualsAndHashCode()
[all …]
/external/junit/src/main/java/org/junit/runners/model/
DTestClass.java6 import java.lang.annotation.Annotation;
36 private final Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations;
37 private final Map<Class<? extends Annotation>, List<FrameworkField>> fieldsForAnnotations;
52 Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations = in TestClass()
53 new LinkedHashMap<Class<? extends Annotation>, List<FrameworkMethod>>(); in TestClass()
54 Map<Class<? extends Annotation>, List<FrameworkField>> fieldsForAnnotations = in TestClass()
55 new LinkedHashMap<Class<? extends Annotation>, List<FrameworkField>>(); in TestClass()
63 …atedMembers(Map<Class<? extends Annotation>, List<FrameworkMethod>> methodsForAnnotations, Map<Cla… in scanAnnotatedMembers() argument
83 Map<Class<? extends Annotation>, List<T>> map) { in addToAnnotationLists() argument
84 for (Annotation each : member.getAnnotations()) { in addToAnnotationLists()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/
DBaseAnnotation.java35 import org.jf.dexlib2.iface.Annotation;
40 public abstract class BaseAnnotation implements Annotation {
50 if (o instanceof Annotation) { in equals()
51 Annotation other = (Annotation)o; in equals()
60 public int compareTo(Annotation o) { in compareTo()
68 public static final Comparator<? super Annotation> BY_TYPE = new Comparator<Annotation>() {
70 public int compare(Annotation annotation1, Annotation annotation2) {
/external/guava/guava/src/com/google/common/reflect/
DParameter.java25 import java.lang.annotation.Annotation;
42 private final ImmutableList<Annotation> annotations;
48 Annotation[] annotations) { in Parameter()
65 @Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent()
71 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation()
73 for (Annotation annotation : annotations) { in getAnnotation()
81 @Override public Annotation[] getAnnotations() { in getAnnotations()
89 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType()
97 @Override public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
98 return annotations.toArray(new Annotation[annotations.size()]); in getDeclaredAnnotations()
[all …]
/external/junit/src/main/java/org/junit/experimental/theories/
DParameterSignature.java3 import java.lang.annotation.Annotation;
48 Class<?>[] parameterTypes, Annotation[][] parameterAnnotations) { in signatures()
59 private final Annotation[] annotations;
61 private ParameterSignature(Class<?> type, Annotation[] annotations) { in ParameterSignature()
94 public List<Annotation> getAnnotations() { in getAnnotations()
98 public boolean hasAnnotation(Class<? extends Annotation> type) { in hasAnnotation()
102 public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType) { in findDeepAnnotation()
103 Annotation[] annotations2 = annotations; in findDeepAnnotation()
107 private <T extends Annotation> T findDeepAnnotation( in findDeepAnnotation()
108 Annotation[] annotations, Class<T> annotationType, int depth) { in findDeepAnnotation()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DAnnotationSetPool.java34 import org.jf.dexlib2.iface.Annotation;
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) { in intern()
52 for (Annotation annotation: annotationSet) { in intern()
59 @Nonnull @Override public Collection<? extends Annotation> getAnnotations( in getAnnotations()
60 @Nonnull Set<? extends Annotation> annotations) { in getAnnotations()
DAnnotationPool.java34 import org.jf.dexlib2.iface.Annotation;
42 public class AnnotationPool extends BaseOffsetPool<Annotation>
43 …implements AnnotationSection<CharSequence, CharSequence, Annotation, AnnotationElement, EncodedVal…
49 public void intern(@Nonnull Annotation annotation) { in intern()
60 @Override public int getVisibility(@Nonnull Annotation annotation) { in getVisibility()
64 @Nonnull @Override public CharSequence getType(@Nonnull Annotation annotation) { in getType()
68 …erride public Collection<? extends AnnotationElement> getElements(@Nonnull Annotation annotation) { in getElements()
/external/testng/src/main/java/org/testng/internal/annotations/
DJDK15AnnotationFinder.java3 import java.lang.annotation.Annotation;
52 private Map<Class<? extends IAnnotation>, Class<? extends Annotation>> m_annotationMap =
54 private Map<Pair<Annotation, ?>, IAnnotation> m_annotations = new ConcurrentHashMap<>();
82 private <A extends Annotation> A findAnnotationInSuperClasses(Class<?> cls, Class<A> a) { in findAnnotationInSuperClasses()
105 final Class<? extends Annotation> a = m_annotationMap.get(annotationClass); in findAnnotation()
110 Annotation annotation = m.getAnnotation(a); in findAnnotation()
117 final Class<? extends Annotation> a = m_annotationMap.get(annotationClass); in findAnnotation()
129 Annotation annotation = m.getAnnotation(a); in findAnnotation()
186 final Class<? extends Annotation> a = m_annotationMap.get(annotationClass); in findAnnotation()
191 Annotation annotation = findAnnotationInSuperClasses(cls, a); in findAnnotation()
[all …]
/external/junit/src/main/java/org/junit/internal/runners/rules/
DRuleMemberValidator.java10 import java.lang.annotation.Annotation;
71 private final Class<? extends Annotation> annotation;
112 private final Class<? extends Annotation> annotation;
116 private Builder(Class<? extends Annotation> annotation) { in Builder()
160 …void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throwable> e… in validate()
167 …public void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throw… in validate()
192 …public void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throw… in validate()
204 …public void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throw… in validate()
220 …public void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throw… in validate()
232 …public void validate(FrameworkMember<?> member, Class<? extends Annotation> annotation, List<Throw… in validate()
[all …]
/external/proguard/src/proguard/classfile/attribute/annotation/visitor/
DAllElementValueVisitor.java136 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation()
142 public void visitAnnotation(Clazz clazz, Field field, Annotation annotation) in visitAnnotation()
148 public void visitAnnotation(Clazz clazz, Method method, Annotation annotation) in visitAnnotation()
154 … public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation) in visitAnnotation()
160 …public void visitAnnotation(Clazz clazz, Method method, CodeAttribute codeAttribute, Annotation an… in visitAnnotation()
168 …public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue con… in visitConstantElementValue()
174 …public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementV… in visitEnumConstantElementValue()
180 …public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElem… in visitClassElementValue()
186 …public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue… in visitAnnotationElementValue()
197 …public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElem… in visitArrayElementValue()
DAnnotationVisitor.java25 import proguard.classfile.attribute.annotation.Annotation;
37 …public void visitAnnotation(Clazz clazz, Annotation an… in visitAnnotation()
38 …public void visitAnnotation(Clazz clazz, Field field, Annotation an… in visitAnnotation()
39 …public void visitAnnotation(Clazz clazz, Method method, Annotation an… in visitAnnotation()
40 …public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation an… in visitAnnotation()
41 …public void visitAnnotation(Clazz clazz, Method method, CodeAttribute codeAttribute, Annotation an… in visitAnnotation()
/external/guava/guava-testlib/src/com/google/common/collect/testing/features/
DFeatureUtil.java21 import java.lang.annotation.Annotation;
41 private static Map<AnnotatedElement, Annotation[]> annotationCache =
42 new HashMap<AnnotatedElement, Annotation[]>();
167 Iterable<Annotation> testerAnnotations = in buildDeclaredTesterRequirements()
169 for (Annotation testerAnnotation : testerAnnotations) { in buildDeclaredTesterRequirements()
184 public static Iterable<Annotation> getTesterAnnotations( in getTesterAnnotations()
186 List<Annotation> result = new ArrayList<Annotation>(); in getTesterAnnotations()
188 Annotation[] annotations; in getTesterAnnotations()
197 for (Annotation a : annotations) { in getTesterAnnotations()
198 Class<? extends Annotation> annotationClass = a.annotationType(); in getTesterAnnotations()
[all …]
/external/junit/src/main/java/org/junit/runner/
DDescription.java4 import java.lang.annotation.Annotation;
44 public static Description createSuiteDescription(String name, Annotation... annotations) { in createSuiteDescription()
57 …public static Description createSuiteDescription(String name, Serializable uniqueId, Annotation...… in createSuiteDescription()
72 …public static Description createTestDescription(String className, String name, Annotation... annot… in createTestDescription()
85 …public static Description createTestDescription(Class<?> clazz, String name, Annotation... annotat… in createTestDescription()
147 private final Annotation[] fAnnotations;
150 private Description(Class<?> clazz, String displayName, Annotation... annotations) { in Description()
154 …private Description(Class<?> testClass, String displayName, Serializable uniqueId, Annotation... a… in Description()
259 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation()
260 for (Annotation each : fAnnotations) { in getAnnotation()
[all …]
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DParameter.java26 import java.lang.annotation.Annotation;
40 private final Annotation bindingAnnotation;
45 public Parameter(Type type, Annotation[] annotations) { in Parameter()
72 private boolean hasAssistedAnnotation(Annotation[] annotations) { in hasAssistedAnnotation()
73 for (Annotation annotation : annotations) { in hasAssistedAnnotation()
147 private Annotation getBindingAnnotation(Annotation[] annotations) { in getBindingAnnotation()
148 Annotation bindingAnnotation = null; in getBindingAnnotation()
149 for (Annotation annotation : annotations) { in getBindingAnnotation()
DFactoryModuleBuilder.java24 import java.lang.annotation.Annotation;
239 Class<T> source, Annotation annotation, Class<? extends T> target) { in implement()
245 Class<T> source, Annotation annotation, TypeLiteral<? extends T> target) { in implement()
251 TypeLiteral<T> source, Annotation annotation, Class<? extends T> target) { in implement()
257 TypeLiteral<T> source, Annotation annotation, TypeLiteral<? extends T> target) { in implement()
263 Class<T> source, Class<? extends Annotation> annotationType, Class<? extends T> target) { in implement()
270 Class<? extends Annotation> annotationType, in implement()
278 Class<? extends Annotation> annotationType, in implement()
286 Class<? extends Annotation> annotationType, in implement()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DAnnotationRewriter.java35 import org.jf.dexlib2.iface.Annotation;
41 public class AnnotationRewriter implements Rewriter<Annotation> {
48 @Nonnull @Override public Annotation rewrite(@Nonnull Annotation value) { in rewrite()
53 @Nonnull protected Annotation annotation;
55 public RewrittenAnnotation(@Nonnull Annotation annotation) { in RewrittenAnnotation()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
DImmutableAnnotation.java36 import org.jf.dexlib2.iface.Annotation;
66 public static ImmutableAnnotation of(Annotation annotation) { in of()
81 …c ImmutableSet<ImmutableAnnotation> immutableSetOf(@Nullable Iterable<? extends Annotation> list) { in immutableSetOf()
85 private static final ImmutableConverter<ImmutableAnnotation, Annotation> CONVERTER =
86 new ImmutableConverter<ImmutableAnnotation, Annotation>() {
88 protected boolean isImmutable(@Nonnull Annotation item) {
94 protected ImmutableAnnotation makeImmutable(@Nonnull Annotation item) {
/external/tensorflow/tensorflow/java/src/gen/cc/
Djava_defs.h39 class Annotation; variable
140 const std::list<Annotation>& annotations() const { return annotations_; } in annotations()
141 Type& add_annotation(const Annotation& annotation) { in add_annotation()
164 std::list<Annotation> annotations_;
172 class Annotation : public Type {
174 static Annotation Create(const string& type_name, const string& pkg = "") {
175 return Annotation(type_name, pkg);
178 Annotation& attributes(const string& attributes) { in attributes()
186 Annotation(const string& name, const string& package) in Annotation() function
235 const std::list<Annotation>& annotations() const { return annotations_; } in annotations()
[all …]
/external/mockito/src/main/java/org/mockito/internal/configuration/
DIndependentAnnotationEngine.java7 import java.lang.annotation.Annotation;
30 …nal Map<Class<? extends Annotation>, FieldAnnotationProcessor<?>> annotationProcessorMap = new Has…
37 private Object createMockFor(Annotation annotation, Field field) { in createMockFor()
41 private <A extends Annotation> FieldAnnotationProcessor<A> forAnnotation(A annotation) { in forAnnotation()
52 …private <A extends Annotation> void registerAnnotationProcessor(Class<A> annotationClass, FieldAnn…
61 for(Annotation annotation : field.getAnnotations()) {

12345678910>>...18