1 19 package org.netbeans.modules.javacore.parser; 20 21 import org.netbeans.lib.java.parser.ASTree; 22 import org.netbeans.lib.java.parser.ASTreeTypes; 23 import org.netbeans.modules.javacore.jmiimpl.javamodel.AnnotationImpl; 24 25 29 public final class AnnotationInfo extends ElementInfo { 30 public static final int ANNOTATION_TYPE = ASTreeTypes.ANNOTATION; 31 public AnnotationValueInfo[] values; 32 public NameRef type; 33 34 public AnnotationInfo(ASTree tree, int infoType, NameRef name, AnnotationValueInfo[] values) { 35 super(tree, infoType, null); 36 this.values = values == null ? EMPTY_ANNOTATION_VALUES : values; 37 type=name; 38 } 39 40 public void doAttribution(AnnotationImpl parent) { 41 assert parent.getElementInfo() == this; 42 ((ResourceInfo) resource.getElementInfo()).doAttribution(parent); 43 } 44 } 45 | Popular Tags |