Home
last modified time | relevance | path

Searched refs:annotation (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
DCstAnnotation.java19 import com.android.dx.rop.annotation.Annotation;
26 private final Annotation annotation; field in CstAnnotation
33 public CstAnnotation(Annotation annotation) { in CstAnnotation() argument
34 if (annotation == null) { in CstAnnotation()
38 annotation.throwIfMutable(); in CstAnnotation()
40 this.annotation = annotation; in CstAnnotation()
50 return annotation.equals(((CstAnnotation) other).annotation); in equals()
56 return annotation.hashCode(); in hashCode()
62 return annotation.compareTo(((CstAnnotation) other).annotation); in compareTo0()
68 return annotation.toString(); in toString()
[all …]
/external/proguard/src/proguard/classfile/attribute/annotation/visitor/
DAnnotationTypeFilter.java21 package proguard.classfile.attribute.annotation.visitor;
24 import proguard.classfile.attribute.annotation.Annotation;
60 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
62 if (accepted(annotation.getType(clazz))) in visitAnnotation()
64 annotationVisitor.visitAnnotation(clazz, annotation); in visitAnnotation()
69 public void visitAnnotation(Clazz clazz, Field field, Annotation annotation) in visitAnnotation() argument
71 if (accepted(annotation.getType(clazz))) in visitAnnotation()
73 annotationVisitor.visitAnnotation(clazz, field, annotation); in visitAnnotation()
78 public void visitAnnotation(Clazz clazz, Method method, Annotation annotation) in visitAnnotation() argument
80 if (accepted(annotation.getType(clazz))) in visitAnnotation()
[all …]
DElementValueVisitor.java21 package proguard.classfile.attribute.annotation.visitor;
24 import proguard.classfile.attribute.annotation.*;
34 …public void visitConstantElementValue( Clazz clazz, Annotation annotation, Const… in visitConstantElementValue() argument
35 …public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumC… in visitEnumConstantElementValue() argument
36 …public void visitClassElementValue( Clazz clazz, Annotation annotation, Class… in visitClassElementValue() argument
37 …public void visitAnnotationElementValue( Clazz clazz, Annotation annotation, Annot… in visitAnnotationElementValue() argument
38 …public void visitArrayElementValue( Clazz clazz, Annotation annotation, Array… in visitArrayElementValue() argument
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DAnnotationItem.java19 import com.android.dx.rop.annotation.Annotation;
20 import com.android.dx.rop.annotation.AnnotationVisibility;
21 import com.android.dx.rop.annotation.NameValuePair;
51 private final Annotation annotation; field in AnnotationItem
100 public AnnotationItem(Annotation annotation) { in AnnotationItem() argument
107 if (annotation == null) { in AnnotationItem()
111 this.annotation = annotation; in AnnotationItem()
125 return annotation.hashCode(); in hashCode()
133 return annotation.compareTo(otherAnnotation.annotation); in compareTo0()
139 return annotation.toHuman(); in toHuman()
[all …]
/external/proguard/src/proguard/classfile/editor/
DAnnotationAdder.java24 import proguard.classfile.attribute.annotation.*;
25 import proguard.classfile.attribute.annotation.visitor.AnnotationVisitor;
100 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
103 new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), in visitAnnotation()
105 annotation.u2elementValuesCount > 0 ? in visitAnnotation()
106 new ElementValue[annotation.u2elementValuesCount] : in visitAnnotation()
110 newAnnotation.referencedClasses = annotation.referencedClasses; in visitAnnotation()
113 annotation.elementValuesAccept(clazz, in visitAnnotation()
132 … public void visitAnnotation(Clazz clazz, Method method, int parameterIndex, Annotation annotation) in visitAnnotation() argument
135 new Annotation(constantAdder.addConstant(clazz, annotation.u2typeIndex), in visitAnnotation()
[all …]
/external/jsr305/ri/src/main/java/javax/annotation/
DMatchesPattern.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
8 import javax.annotation.meta.TypeQualifier;
9 import javax.annotation.meta.TypeQualifierValidator;
10 import javax.annotation.meta.When;
22 public When forConstantValue(MatchesPattern annotation, Object value) { in forConstantValue() argument
23 Pattern p = Pattern.compile(annotation.value(), annotation.flags()); in forConstantValue()
DRegEx.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
9 import javax.annotation.meta.TypeQualifierNickname;
10 import javax.annotation.meta.TypeQualifierValidator;
11 import javax.annotation.meta.When;
27 public When forConstantValue(RegEx annotation, Object value) { in forConstantValue() argument
DNonnegative.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
7 import javax.annotation.meta.TypeQualifier;
8 import javax.annotation.meta.TypeQualifierValidator;
9 import javax.annotation.meta.When;
20 public When forConstantValue(Nonnegative annotation, Object v) { in forConstantValue() argument
DCheckReturnValue.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
9 import javax.annotation.meta.When;
DNonnull.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
7 import javax.annotation.meta.TypeQualifier;
8 import javax.annotation.meta.TypeQualifierValidator;
9 import javax.annotation.meta.When;
DOverridingMethodsMustInvokeSuper.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
DParametersAreNonnullByDefault.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
8 import javax.annotation.meta.TypeQualifierDefault;
DParametersAreNullableByDefault.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
8 import javax.annotation.meta.TypeQualifierDefault;
DUntainted.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
7 import javax.annotation.meta.TypeQualifier;
8 import javax.annotation.meta.When;
DTainted.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
7 import javax.annotation.meta.TypeQualifierNickname;
8 import javax.annotation.meta.When;
DCheckForNull.java1 package javax.annotation;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
7 import javax.annotation.meta.TypeQualifierNickname;
8 import javax.annotation.meta.When;
/external/jsr305/sampleUses/src/main/java/
DCreditCardNumber.java1 import java.lang.annotation.Documented;
2 import java.lang.annotation.ElementType;
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
6 import javax.annotation.MatchesPattern;
7 import javax.annotation.meta.TypeQualifier;
8 import javax.annotation.meta.TypeQualifierValidator;
9 import javax.annotation.meta.When;
18 public When forConstantValue(CreditCardNumber annotation, Object v) { in forConstantValue() argument
DFixedLengthString.java1 import java.lang.annotation.Documented;
2 import java.lang.annotation.Retention;
3 import java.lang.annotation.RetentionPolicy;
5 import javax.annotation.meta.TypeQualifier;
6 import javax.annotation.meta.TypeQualifierValidator;
7 import javax.annotation.meta.When;
17 public When forConstantValue(FixedLengthString annotation, Object v) { in forConstantValue() argument
21 if (s.length() == annotation.value()) in forConstantValue()
DSocialSecurityNumber.java1 import java.lang.annotation.Documented;
2 import java.lang.annotation.ElementType;
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
6 import javax.annotation.MatchesPattern;
7 import javax.annotation.meta.TypeQualifierNickname;
/external/proguard/src/proguard/shrink/
DAnnotationUsageMarker.java25 import proguard.classfile.attribute.annotation.*;
26 import proguard.classfile.attribute.annotation.visitor.*;
124 public void visitAnnotation(Clazz clazz, Annotation annotation) in visitAnnotation() argument
126 if (isReferencedClassUsed(annotation)) in visitAnnotation()
129 usageMarker.markAsUsed(annotation); in visitAnnotation()
131 markConstant(clazz, annotation.u2typeIndex); in visitAnnotation()
134 annotation.elementValuesAccept(clazz, this); in visitAnnotation()
145 …public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue con… in visitConstantElementValue() argument
161 …public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementV… in visitEnumConstantElementValue() argument
185 …public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElem… in visitClassElementValue() argument
[all …]
/external/smali/smali-integration-tests/src/test/smali/junit-tests/StaticFieldInitializerTest/
DStaticFieldInitializerTest.smali41 .annotation runtime Lorg/junit/Test;
42 .end annotation
58 .annotation runtime Lorg/junit/Test;
59 .end annotation
75 .annotation runtime Lorg/junit/Test;
76 .end annotation
92 .annotation runtime Lorg/junit/Test;
93 .end annotation
109 .annotation runtime Lorg/junit/Test;
110 .end annotation
[all …]
/external/smali/examples/RecursiveAnnotation/
DRecursiveAnnotation.smali1 .class public abstract interface annotation LRecursiveAnnotation;
3 .implements Ljava/lang/annotation/Annotation;
5 #this is a recursive annotation that has a default value of itself.
6 #Trying to print .toString() on an instance of this annotation
12 .annotation system Ldalvik/annotation/AnnotationDefault;
17 .end annotation
/external/jsr305/ri/src/main/java/javax/annotation/concurrent/
DImmutable.java1 package javax.annotation.concurrent;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
DThreadSafe.java1 package javax.annotation.concurrent;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;
DNotThreadSafe.java1 package javax.annotation.concurrent;
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Retention;
6 import java.lang.annotation.RetentionPolicy;
7 import java.lang.annotation.Target;

12345678910>>...21