Home
last modified time | relevance | path

Searched refs:AnnotationEntryGen (Results 1 – 13 of 13) sorted by relevance

/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DAnnotationGenTestCase.java66 final AnnotationEntryGen a = new AnnotationEntryGen(t, elements, true, cp); in testConstructMutableAnnotation()
91 final AnnotationEntryGen a = new AnnotationEntryGen(t, elements, true, cp); in testVisibleInvisibleAnnotationGen()
92 final List<AnnotationEntryGen> v = new ArrayList<>(); in testVisibleInvisibleAnnotationGen()
94 …final Attribute[] attributes = AnnotationEntryGen.getAnnotationAttributes(cp, v.toArray(new Annota… in testVisibleInvisibleAnnotationGen()
106 final AnnotationEntryGen a2 = new AnnotationEntryGen(t, elements, false, cp); in testVisibleInvisibleAnnotationGen()
107 final List<AnnotationEntryGen> v2 = new ArrayList<>(); in testVisibleInvisibleAnnotationGen()
109 …final Attribute[] attributes2 = AnnotationEntryGen.getAnnotationAttributes(cp, v2.toArray(new Anno… in testVisibleInvisibleAnnotationGen()
121 private void checkSerialize(final AnnotationEntryGen a, final ConstantPoolGen cpg) in checkSerialize()
133 AnnotationEntryGen annAfter; in checkSerialize()
135 annAfter = AnnotationEntryGen.read(dis, cpg, a.isRuntimeVisible()); in checkSerialize()
DGeneratingAnnotatedClassesTestCase.java203 final AnnotationEntryGen[] annotations = cgen.getAnnotationEntries(); in testTransformClassToClassGen_SimpleTypes()
218 final AnnotationEntryGen[] annotations = cgen.getAnnotationEntries(); in testTransformClassToClassGen_EnumType()
233 final AnnotationEntryGen[] annotations = cgen.getAnnotationEntries(); in testTransformClassToClassGen_ArrayAndAnnotationTypes()
236 final AnnotationEntryGen a = annotations[0]; in testTransformClassToClassGen_ArrayAndAnnotationTypes()
340 final AnnotationEntryGen[] annotations = cgen.getAnnotationEntries(); in testTransformComplexClassToClassGen()
632 public AnnotationEntryGen createSimpleVisibleAnnotation(final ConstantPoolGen cp) in createSimpleVisibleAnnotation()
640 final AnnotationEntryGen a = new AnnotationEntryGen(t, elements, true, cp); in createSimpleVisibleAnnotation()
644 public AnnotationEntryGen createFruitAnnotation(final ConstantPoolGen cp, in createFruitAnnotation()
653 return new AnnotationEntryGen(t, elements, true, cp); in createFruitAnnotation()
656 public AnnotationEntryGen createCombinedAnnotation(final ConstantPoolGen cp) in createCombinedAnnotation()
[all …]
DMethodGenTestCase.java112 final List<AnnotationEntryGen> firstParamAnnotations = mg.getAnnotationsOnParameter(0); in testAnnotationsAreUnpacked()
114 final List<AnnotationEntryGen> secondParamAnnotations = mg.getAnnotationsOnParameter(1); in testAnnotationsAreUnpacked()
DFieldAnnotationsTestCase.java81 final AnnotationEntryGen fruitBasedAnnotationEntry = createFruitAnnotationEntry(clg in testFieldAnnotationModification()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DAnnotationEntryGen.java41 public class AnnotationEntryGen { class
58 public AnnotationEntryGen(final AnnotationEntry a, final ConstantPoolGen cpool, in AnnotationEntryGen() method in AnnotationEntryGen
79 private AnnotationEntryGen(final ConstantPoolGen cpool) { in AnnotationEntryGen() method in AnnotationEntryGen
95 public AnnotationEntryGen(final ObjectType type, in AnnotationEntryGen() method in AnnotationEntryGen
104 public static AnnotationEntryGen read(final DataInput dis, in read()
106 final AnnotationEntryGen a = new AnnotationEntryGen(cpool); in read()
199 …static Attribute[] getAnnotationAttributes(final ConstantPoolGen cp, final AnnotationEntryGen[] an… in getAnnotationAttributes()
209 for (final AnnotationEntryGen a : annotationEntryGens) { in getAnnotationAttributes()
226 for (final AnnotationEntryGen a : annotationEntryGens) { in getAnnotationAttributes()
276 … final List<AnnotationEntryGen>[] /*Array of lists, array size depends on #params */vec) { in getParameterAnnotationAttributes()
[all …]
DFieldGenOrMethodGen.java56 private final List<AnnotationEntryGen> annotation_vec= new ArrayList<>();
124 …protected void addAnnotationEntry(final AnnotationEntryGen ag) // TODO could this be package prote… in addAnnotationEntry()
140 …protected void removeAnnotationEntry(final AnnotationEntryGen ag) // TODO could this be package pr… in removeAnnotationEntry()
171 public AnnotationEntryGen[] getAnnotationEntries() { in getAnnotationEntries()
172 final AnnotationEntryGen[] annotations = new AnnotationEntryGen[annotation_vec.size()]; in getAnnotationEntries()
DAnnotationElementValueGen.java32 private final AnnotationEntryGen a;
34 public AnnotationElementValueGen(final AnnotationEntryGen a, final ConstantPoolGen cpool) in AnnotationElementValueGen()
40 public AnnotationElementValueGen(final int type, final AnnotationEntryGen annotation, in AnnotationElementValueGen()
55 a = new AnnotationEntryGen(value.getAnnotationEntry(), cpool, copyPoolEntries); in AnnotationElementValueGen()
82 public AnnotationEntryGen getAnnotation() in getAnnotation()
DClassGen.java61 private final List<AnnotationEntryGen> annotation_vec = new ArrayList<>();
143 final AnnotationEntryGen[] annotations = unpackAnnotations(attributes); in ClassGen()
155 for (final AnnotationEntryGen annotation : annotations) { in ClassGen()
169 private AnnotationEntryGen[] unpackAnnotations(final Attribute[] attrs) in unpackAnnotations()
171 final List<AnnotationEntryGen> annotationGenObjs = new ArrayList<>(); in unpackAnnotations()
178 annotationGenObjs.add(new AnnotationEntryGen(a, in unpackAnnotations()
188 annotationGenObjs.add(new AnnotationEntryGen(a, in unpackAnnotations()
193 return annotationGenObjs.toArray(new AnnotationEntryGen[annotationGenObjs.size()]); in unpackAnnotations()
209 …final Attribute[] annAttributes = AnnotationEntryGen.getAnnotationAttributes(cp, getAnnotationEnt… in getJavaClass()
278 public void addAnnotationEntry(final AnnotationEntryGen a) { in addAnnotationEntry()
[all …]
DMethodGen.java76 …private List<AnnotationEntryGen>[] param_annotations; // Array of lists containing AnnotationGen o…
243 addAnnotationEntry(new AnnotationEntryGen(element, cp, false)); in MethodGen()
609 …final Attribute[] attrs = AnnotationEntryGen.getAnnotationAttributes(cp, super.getAnnotationEntrie… in addAnnotationsAsAttribute()
622 …final Attribute[] attrs = AnnotationEntryGen.getParameterAnnotationAttributes(cp,param_annotations… in addParameterAnnotationsAsAttribute()
1138 public List<AnnotationEntryGen> getAnnotationsOnParameter(final int i) { in getAnnotationsOnParameter()
1170 final List<AnnotationEntryGen>[] parmList = new List[arg_types.length]; in ensureExistingParameterAnnotationsUnpacked()
1189 …final List<AnnotationEntryGen> mutable = makeMutableVersion(immutableArray.getAnnotationEntries()); in ensureExistingParameterAnnotationsUnpacked()
1204 private List<AnnotationEntryGen> makeMutableVersion(final AnnotationEntry[] mutableArray) in makeMutableVersion()
1206 final List<AnnotationEntryGen> result = new ArrayList<>(); in makeMutableVersion()
1208 result.add(new AnnotationEntryGen(element, getConstantPool(), in makeMutableVersion()
[all …]
DFieldGen.java99 addAnnotationEntry(new AnnotationEntryGen(element,cp,false)); in FieldGen()
231 …final Attribute[] attrs = AnnotationEntryGen.getAnnotationAttributes(cp, super.getAnnotationEntrie… in addAnnotationsAsAttribute()
DElementValueGen.java137 new AnnotationEntryGen(AnnotationEntry.read(dis, cpGen in readElementValue()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/
DAbstractTestCase.java29 import org.apache.bcel.generic.AnnotationEntryGen;
181 protected String dumpAnnotationEntries(final AnnotationEntryGen[] as) in dumpAnnotationEntries()
187 final AnnotationEntryGen annotation = as[i]; in dumpAnnotationEntries()
197 public AnnotationEntryGen createFruitAnnotationEntry(final ConstantPoolGen cp, in createFruitAnnotationEntry()
206 return new AnnotationEntryGen(t, elements, visibility, cp); in createFruitAnnotationEntry()
/external/owasp/sanitizer/tools/findbugs/lib/
Dbcel.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...