Home
last modified time | relevance | path

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

12345678910>>...24

/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 …]
/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/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotationCollector.java3 import java.lang.annotation.Annotation;
52 public abstract boolean isPresent(Annotation ann); in isPresent()
54 public abstract AnnotationCollector addOrOverride(Annotation ann); in addOrOverride()
79 public boolean isPresent(Annotation ann) { return false; } in isPresent()
82 public AnnotationCollector addOrOverride(Annotation ann) { in addOrOverride()
90 private Annotation _value;
93 Class<?> type, Annotation value) { in OneCollector()
110 public boolean isPresent(Annotation ann) { in isPresent()
115 public AnnotationCollector addOrOverride(Annotation ann) { in addOrOverride()
128 protected final HashMap<Class<?>,Annotation> _annotations;
[all …]
DAnnotationMap.java3 import java.lang.annotation.Annotation;
16 protected HashMap<Class<?>,Annotation> _annotations;
20 public static AnnotationMap of(Class<?> type, Annotation value) { in of()
21 HashMap<Class<?>,Annotation> ann = new HashMap<>(4); in of()
26 AnnotationMap(HashMap<Class<?>,Annotation> a) { in AnnotationMap()
38 public <A extends Annotation> A get(Class<A> cls) in get()
62 public boolean hasOneOf(Class<? extends Annotation>[] annoClasses) { in hasOneOf()
82 public Iterable<Annotation> annotations() { in annotations()
97 HashMap<Class<?>,Annotation> annotations = new HashMap<Class<?>,Annotation>(); in merge()
99 for (Annotation ann : secondary._annotations.values()) { in merge()
[all …]
DCollectorBase.java3 import java.lang.annotation.Annotation;
14 protected final static Annotation[] NO_ANNOTATIONS = new Annotation[0];
24 protected final AnnotationCollector collectAnnotations(Annotation[] anns) { in collectAnnotations()
27 Annotation ann = anns[i]; in collectAnnotations()
36 … protected final AnnotationCollector collectAnnotations(AnnotationCollector c, Annotation[] anns) { in collectAnnotations()
38 Annotation ann = anns[i]; in collectAnnotations()
47 … protected final AnnotationCollector collectFromBundle(AnnotationCollector c, Annotation bundle) { in collectFromBundle()
48 Annotation[] anns = ClassUtil.findClassAnnotations(bundle.annotationType()); in collectFromBundle()
50 Annotation ann = anns[i]; in collectFromBundle()
72 Annotation[] anns) { in collectDefaultAnnotations()
[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/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/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/android/guava/src/com/google/common/reflect/
DParameter.java22 import java.lang.annotation.Annotation;
38 private final ImmutableList<Annotation> annotations;
41 Invokable<?, ?> declaration, int position, TypeToken<?> type, Annotation[] annotations) { in Parameter()
59 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent()
65 public <A extends Annotation> A getAnnotation(Class<A> annotationType) { in getAnnotation()
67 for (Annotation annotation : annotations) { in getAnnotation()
76 public Annotation[] getAnnotations() { in getAnnotations()
82 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType()
89 public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
90 return annotations.toArray(new Annotation[0]); in getDeclaredAnnotations()
[all …]
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/annotationdiscovery/
DAnnotationStrings.java19 import java.lang.annotation.Annotation;
150 public abstract Class<? extends Annotation> crossProfileAnnotationClass(); in crossProfileAnnotationClass()
153 public abstract Class<? extends Annotation> crossProfileCallbackAnnotationClass(); in crossProfileCallbackAnnotationClass()
156 public abstract Class<? extends Annotation> crossProfileConfigurationAnnotationClass(); in crossProfileConfigurationAnnotationClass()
159 public abstract Class<? extends Annotation> crossProfileConfigurationsAnnotationClass(); in crossProfileConfigurationsAnnotationClass()
162 public abstract Class<? extends Annotation> crossProfileProviderAnnotationClass(); in crossProfileProviderAnnotationClass()
165 public abstract Class<? extends Annotation> crossProfileTestAnnotationClass(); in crossProfileTestAnnotationClass()
173 abstract Builder setCrossProfileAnnotationClass(Class<? extends Annotation> value); in setCrossProfileAnnotationClass()
175 abstract Builder setCrossProfileCallbackAnnotationClass(Class<? extends Annotation> value); in setCrossProfileCallbackAnnotationClass()
177 abstract Builder setCrossProfileConfigurationAnnotationClass(Class<? extends Annotation> value); in setCrossProfileConfigurationAnnotationClass()
[all …]
DAnnotationClasses.java21 import java.lang.annotation.Annotation;
31 Class<? extends Annotation> crossProfileAnnotationClass(); in crossProfileAnnotationClass()
33 Class<? extends Annotation> crossProfileCallbackAnnotationClass(); in crossProfileCallbackAnnotationClass()
35 Class<? extends Annotation> crossProfileConfigurationAnnotationClass(); in crossProfileConfigurationAnnotationClass()
37 Class<? extends Annotation> crossProfileConfigurationsAnnotationClass(); in crossProfileConfigurationsAnnotationClass()
39 Class<? extends Annotation> crossProfileProviderAnnotationClass(); in crossProfileProviderAnnotationClass()
41 Class<? extends Annotation> crossProfileTestAnnotationClass(); in crossProfileTestAnnotationClass()
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentCreatorAnnotation.java31 import java.lang.annotation.Annotation;
48 private final Class<? extends Annotation> annotation;
50 private final Class<? extends Annotation> componentAnnotation;
53 ComponentCreatorAnnotation(Class<? extends Annotation> annotation) { in ComponentCreatorAnnotation()
56 this.componentAnnotation = (Class<? extends Annotation>) annotation.getEnclosingClass(); in ComponentCreatorAnnotation()
60 public Class<? extends Annotation> annotation() { in annotation()
65 public final Class<? extends Annotation> componentAnnotation() { in componentAnnotation()
93 public static ImmutableSet<Class<? extends Annotation>> allCreatorAnnotations() { in allCreatorAnnotations()
98 public static ImmutableSet<Class<? extends Annotation>> rootComponentCreatorAnnotations() { in rootComponentCreatorAnnotations()
107 public static ImmutableSet<Class<? extends Annotation>> subcomponentCreatorAnnotations() { in subcomponentCreatorAnnotations()
[all …]
/external/guava/guava/src/com/google/common/reflect/
DParameter.java22 import java.lang.annotation.Annotation;
39 private final ImmutableList<Annotation> annotations;
46 Annotation[] annotations, in Parameter()
66 public boolean isAnnotationPresent(Class<? extends Annotation> annotationType) { in isAnnotationPresent()
71 public <A extends Annotation> @Nullable A getAnnotation(Class<A> annotationType) { in getAnnotation()
73 for (Annotation annotation : annotations) { in getAnnotation()
82 public Annotation[] getAnnotations() { in getAnnotations()
89 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) { in getAnnotationsByType()
96 public Annotation[] getDeclaredAnnotations() { in getDeclaredAnnotations()
97 return annotations.toArray(new Annotation[0]); 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/tensorflow/tensorflow/core/profiler/utils/
Dparse_annotation_test.cc27 std::vector<Annotation> annotations = ParseAnnotationStack(""); in TEST()
32 std::vector<Annotation> annotations = ParseAnnotationStack("name"); in TEST()
39 std::vector<Annotation> annotations = ParseAnnotationStack("outer::inner"); in TEST()
48 Annotation annotation = ParseAnnotation(""); in TEST()
54 Annotation annotation = ParseAnnotation("name"); in TEST()
60 Annotation annotation = ParseAnnotation("name "); in TEST()
66 Annotation annotation = ParseAnnotation("name#"); in TEST()
80 Annotation annotation = ParseAnnotation("name#key=value#"); in TEST()
88 Annotation annotation = ParseAnnotation("name#k1=v1,k2=v2,k3=v3#"); in TEST()
100 Annotation annotation = ParseAnnotation("name # k1 = v1, ,k2=v2 #"); in TEST()
[all …]
/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/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()
134 … public static Description createSuiteDescription(Class<?> testClass, Annotation... annotations) { in createSuiteDescription()
158 private final Annotation[] fAnnotations;
161 private Description(Class<?> clazz, String displayName, Annotation... annotations) { in Description()
165 …private Description(Class<?> testClass, String displayName, Serializable uniqueId, Annotation... a… in Description()
270 public <T extends Annotation> T getAnnotation(Class<T> annotationType) { in getAnnotation()
[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/
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()
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()
/external/javassist/src/main/javassist/bytecode/
DAnnotationsAttribute.java25 import javassist.bytecode.annotation.Annotation;
200 public Annotation getAnnotation(String type) { in getAnnotation()
201 Annotation[] annotations = getAnnotations(); in getAnnotation()
216 public void addAnnotation(Annotation annotation) { in addAnnotation()
218 Annotation[] annotations = getAnnotations(); in addAnnotation()
227 Annotation[] newlist = new Annotation[annotations.length + 1]; in addAnnotation()
243 Annotation[] annotations = getAnnotations(); in removeAnnotation()
246 Annotation[] newlist = new Annotation[annotations.length - 1]; in removeAnnotation()
268 public Annotation[] getAnnotations() { in getAnnotations()
284 public void setAnnotations(Annotation[] annotations) { in setAnnotations()
[all …]

12345678910>>...24