public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { if (isReferencedMethodUsed(constantElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(constantElementValue); markConstant(clazz, constantElementValue.u2elementNameIndex); markConstant(clazz, constantElementValue.u2constantValueIndex); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { if (isReferencedMethodUsed(constantElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(constantElementValue); markConstant(clazz, constantElementValue.u2elementNameIndex); markConstant(clazz, constantElementValue.u2constantValueIndex); // The return value. elementValueUsed = true; } }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { if (isReferencedMethodUsed(arrayElementValue)) { // Check and mark the contained element values. arrayElementValue.elementValuesAccept(clazz, annotation, this); // Mark the element value as being used. usageMarker.markAsUsed(arrayElementValue); markConstant(clazz, arrayElementValue.u2elementNameIndex); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { if (isReferencedMethodUsed(constantElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(constantElementValue); markConstant(clazz, constantElementValue.u2elementNameIndex); markConstant(clazz, constantElementValue.u2constantValueIndex); } }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { if (isReferencedMethodUsed(arrayElementValue)) { // Check and mark the contained element values. arrayElementValue.elementValuesAccept(clazz, annotation, this); // Mark the element value as being used. usageMarker.markAsUsed(arrayElementValue); markConstant(clazz, arrayElementValue.u2elementNameIndex); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { if (isReferencedMethodUsed(constantElementValue)) { // Mark the element value as being used. usageMarker.markAsUsed(constantElementValue); markConstant(clazz, constantElementValue.u2elementNameIndex); markConstant(clazz, constantElementValue.u2constantValueIndex); } }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { if (isReferencedMethodUsed(arrayElementValue)) { // Check and mark the contained element values. arrayElementValue.elementValuesAccept(clazz, annotation, this); // Mark the element value as being used. usageMarker.markAsUsed(arrayElementValue); markConstant(clazz, arrayElementValue.u2elementNameIndex); } }
public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) { if (isReferencedMethodUsed(annotationElementValue)) { boolean oldAnnotationUsed = annotationUsed; // Check and mark the contained annotation. annotationUsed = false; annotationElementValue.annotationAccept(clazz, this); if (annotationUsed) { // Mark the element value as being used. usageMarker.markAsUsed(annotationElementValue); markConstant(clazz, annotationElementValue.u2elementNameIndex); } annotationUsed = oldAnnotationUsed; } }
public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) { if (isReferencedMethodUsed(annotationElementValue)) { boolean oldAnnotationUsed = annotationUsed; // Check and mark the contained annotation. annotationUsed = false; annotationElementValue.annotationAccept(clazz, this); if (annotationUsed) { // Mark the element value as being used. usageMarker.markAsUsed(annotationElementValue); markConstant(clazz, annotationElementValue.u2elementNameIndex); } annotationUsed = oldAnnotationUsed; } }
public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) { if (isReferencedMethodUsed(annotationElementValue)) { boolean oldAnnotationUsed = annotationUsed; // Check and mark the contained annotation. annotationUsed = false; annotationElementValue.annotationAccept(clazz, this); if (annotationUsed) { // Mark the element value as being used. usageMarker.markAsUsed(annotationElementValue); markConstant(clazz, annotationElementValue.u2elementNameIndex); } annotationUsed = oldAnnotationUsed; } }
public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) { if (isReferencedMethodUsed(annotationElementValue)) { boolean oldAnnotationUsed = annotationUsed; // Check and mark the contained annotation. annotationUsed = false; annotationElementValue.annotationAccept(clazz, this); if (annotationUsed) { // Mark the element value as being used. usageMarker.markAsUsed(annotationElementValue); markConstant(clazz, annotationElementValue.u2elementNameIndex); // The return value. elementValueUsed = true; } annotationUsed = oldAnnotationUsed; } }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { if (isReferencedMethodUsed(arrayElementValue)) { boolean oldelementValueUsed = elementValueUsed; // Check and mark the contained element values. elementValueUsed = false; arrayElementValue.elementValuesAccept(clazz, annotation, this); if (elementValueUsed) { // Mark the element value as being used. usageMarker.markAsUsed(arrayElementValue); markConstant(clazz, arrayElementValue.u2elementNameIndex); // The return value. //elementValueUsed = true; } else { elementValueUsed = oldelementValueUsed; } } }
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; } } }
public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue) { if (isReferencedMethodUsed(enumConstantElementValue)) { // Check the referenced classes. allClassesUsed = true; enumConstantElementValue.referencedClassesAccept(this); if (allClassesUsed) { // Mark the element value as being used. usageMarker.markAsUsed(enumConstantElementValue); markConstant(clazz, enumConstantElementValue.u2elementNameIndex); markConstant(clazz, enumConstantElementValue.u2typeNameIndex); markConstant(clazz, enumConstantElementValue.u2constantNameIndex); } } }
public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue) { if (isReferencedMethodUsed(enumConstantElementValue)) { // Check the referenced classes. classUsed = true; enumConstantElementValue.referencedClassesAccept(usageMarker); if (classUsed) { // Mark the element value as being used. usageMarker.markAsUsed(enumConstantElementValue); markConstant(clazz, enumConstantElementValue.u2elementNameIndex); markConstant(clazz, enumConstantElementValue.u2typeNameIndex); markConstant(clazz, enumConstantElementValue.u2constantNameIndex); // The return value. elementValueUsed = true; } } }
public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue) { if (isReferencedMethodUsed(enumConstantElementValue)) { // Check the referenced classes. allClassesUsed = true; enumConstantElementValue.referencedClassesAccept(this); if (allClassesUsed) { // Mark the element value as being used. usageMarker.markAsUsed(enumConstantElementValue); markConstant(clazz, enumConstantElementValue.u2elementNameIndex); markConstant(clazz, enumConstantElementValue.u2typeNameIndex); markConstant(clazz, enumConstantElementValue.u2constantNameIndex); } } }
public void visitEnumConstantElementValue(Clazz clazz, Annotation annotation, EnumConstantElementValue enumConstantElementValue) { if (isReferencedMethodUsed(enumConstantElementValue)) { // Check the referenced classes. allClassesUsed = true; enumConstantElementValue.referencedClassesAccept(this); if (allClassesUsed) { // Mark the element value as being used. usageMarker.markAsUsed(enumConstantElementValue); markConstant(clazz, enumConstantElementValue.u2elementNameIndex); markConstant(clazz, enumConstantElementValue.u2typeNameIndex); markConstant(clazz, enumConstantElementValue.u2constantNameIndex); } } }