| 1 21 package proguard.classfile.attribute.annotation; 22 23 import proguard.classfile.*; 24 import proguard.classfile.visitor.ClassVisitor; 25 import proguard.classfile.attribute.annotation.visitor.ElementValueVisitor; 26 27 import java.io.*; 28 29 34 public class ClassElementValue extends ElementValue 35 { 36 public int u2classInfoIndex; 37 38 44 public Clazz[] referencedClasses; 45 46 47 50 public ClassElementValue() 51 { 52 } 53 54 55 58 public void referencedClassesAccept(ClassVisitor classVisitor) 59 { 60 if (referencedClasses != null) 61 { 62 for (int index = 0; index < referencedClasses.length; index++) 63 { 64 Clazz referencedClass = referencedClasses[index]; 65 if (referencedClass != null) 66 { 67 referencedClass.accept(classVisitor); 68 } 69 } 70 } 71 } 72 73 74 76 public int getTag() 77 { 78 return ClassConstants.ELEMENT_VALUE_CLASS; 79 } 80 81 public void accept(Clazz clazz, Annotation annotation, ElementValueVisitor elementValueVisitor) 82 { 83 elementValueVisitor.visitClassElementValue(clazz, annotation, this); 84 } 85 } 86 | Popular Tags |