1 20 package org.netbeans.modules.javacore.parser; 21 22 import org.netbeans.lib.java.parser.ASTree; 23 import org.openide.util.Utilities; 24 25 public class AnnotationValueInfo extends ElementInfo { 26 public static final int ANNOTATIONVALUE_ANNOTATION = 0x1000; 27 public static final int ANNOTATIONVALUE_STRING = 0x1001; 28 public static final int ANNOTATIONVALUE_ARRAY = 0x1002; 29 30 public Object value; 31 32 33 public AnnotationValueInfo(ASTree tree, int infoType, String name, Object val) { 34 super(tree, infoType, name); 35 value = val; 36 } 37 38 public boolean equals(Object obj) { 39 if (!(obj instanceof AnnotationValueInfo)) return false; 40 AnnotationValueInfo info = (AnnotationValueInfo) obj; 41 return Utilities.compareObjects(name, info.name) && Utilities.compareObjects(value, info.value); 42 } 43 44 } 45 | Popular Tags |