public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Let the visitor visit the classes referenced in the class element value. classElementValue.referencedClassesAccept(classVisitor); }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Let the visitor visit the classes referenced in the class element value. classElementValue.referencedClassesAccept(classVisitor); }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Let the visitor visit the classes referenced in the class element value. classElementValue.referencedClassesAccept(classVisitor); }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { // Let the visitor visit the classes referenced in the class element value. classElementValue.referencedClassesAccept(classVisitor); }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { if (isReferencedMethodUsed(classElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(classElementValue); markConstant(clazz, classElementValue.u2elementNameIndex); markConstant(clazz, classElementValue.u2classInfoIndex); // Mark the referenced classes, since they can be retrieved from // the annotation and then used. // TODO: This could mark more annotation methods, affecting other annotations. classElementValue.referencedClassesAccept(usageMarker); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { if (isReferencedMethodUsed(classElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(classElementValue); markConstant(clazz, classElementValue.u2elementNameIndex); markConstant(clazz, classElementValue.u2classInfoIndex); // Mark the referenced classes, since they can be retrieved from // the annotation and then used. // TODO: This could mark more annotation methods, affecting other annotations. classElementValue.referencedClassesAccept(usageMarker); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { if (isReferencedMethodUsed(classElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(classElementValue); markConstant(clazz, classElementValue.u2elementNameIndex); markConstant(clazz, classElementValue.u2classInfoIndex); // Mark the referenced classes, since they can be retrieved from // the annotation and then used. // TODO: This could mark more annotation methods, affecting other annotations. classElementValue.referencedClassesAccept(usageMarker); } }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { if (isReferencedMethodUsed(classElementValue)) { // Check the referenced classes. classUsed = true; classElementValue.referencedClassesAccept(usageMarker); if (classUsed) { // Mark the element value as being used. usageMarker.markAsUsed(classElementValue); markConstant(clazz, classElementValue.u2elementNameIndex); markConstant(clazz, classElementValue.u2classInfoIndex); // The return value. elementValueUsed = true; } } }