1 21 package proguard.classfile.attribute.annotation; 22 23 import proguard.classfile.*; 24 import proguard.classfile.attribute.annotation.visitor.ElementValueVisitor; 25 26 import java.io.*; 27 28 33 public class ArrayElementValue extends ElementValue 34 { 35 public int u2elementValuesCount; 36 public ElementValue[] elementValues; 37 38 39 42 public ArrayElementValue() 43 { 44 } 45 46 47 49 public int getTag() 50 { 51 return ClassConstants.ELEMENT_VALUE_ARRAY; 52 } 53 54 public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) 55 { 56 elementValueVisitor.visitArrayElementValue(clazz, annotation, this); 57 } 58 59 60 63 public void elementValuesAccept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) 64 { 65 for (int index = 0; index < u2elementValuesCount; index++) 66 { 67 elementValues[index].accept(clazz, annotation, elementValueVisitor); 68 } 69 } 70 } 71 | Popular Tags |