use of com.jopdesign.common.bcel.Annotation in project jop by jop-devel.
the class MemberInfo method setUnusedAnnotation.
public void setUnusedAnnotation() {
AnnotationAttribute a = getAnnotation(false, true);
if (a.findAnnotation(AnnotationAttribute.UNUSED_TAG_NAME) != null)
return;
ConstantPoolGen cpg = getConstantPoolGen();
int nameIdx = cpg.addUtf8(AnnotationAttribute.UNUSED_TAG_NAME);
Annotation an = new Annotation(nameIdx, cpg.getConstantPool(), 0);
a.addAnnotation(an);
}
use of com.jopdesign.common.bcel.Annotation in project jop by jop-devel.
the class MemberInfo method removeUnusedAnnotation.
public void removeUnusedAnnotation() {
AnnotationAttribute a = getAnnotation(false, false);
if (a == null)
return;
Annotation an = a.findAnnotation(AnnotationAttribute.UNUSED_TAG_NAME);
if (an != null) {
a.removeAnnotation(an);
}
}
Aggregations