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 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); } }
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 visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Mark the necessary annotation information in any annotation elements. annotationDefaultAttribute.defaultValueAccept(clazz, this); // Always mark annotation defaults. usageMarker.markAsUsed(annotationDefaultAttribute); markConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex); }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Mark the necessary annotation information in any annotation elements. annotationDefaultAttribute.defaultValueAccept(clazz, this); // Always mark annotation defaults. usageMarker.markAsUsed(annotationDefaultAttribute); markConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex); }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Mark the necessary annotation information in any annotation elements. annotationDefaultAttribute.defaultValueAccept(clazz, this); // Always mark annotation defaults. usageMarker.markAsUsed(annotationDefaultAttribute); markConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex); }
public void visitAnyAnnotationsAttribute(Clazz clazz, AnnotationsAttribute annotationsAttribute) { // Mark the necessary annotation information. attributeUsed = false; annotationsAttribute.annotationsAccept(clazz, this); if (attributeUsed) { // We got a positive used flag, so some annotation is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(annotationsAttribute); markConstant(clazz, annotationsAttribute.u2attributeNameIndex); } }
public void visitAnyParameterAnnotationsAttribute(Clazz clazz, Method method, ParameterAnnotationsAttribute parameterAnnotationsAttribute) { // Mark the necessary annotation information. attributeUsed = false; parameterAnnotationsAttribute.annotationsAccept(clazz, method, this); if (attributeUsed) { // We got a positive used flag, so some annotation is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(parameterAnnotationsAttribute); markConstant(clazz, parameterAnnotationsAttribute.u2attributeNameIndex); } }
public void visitAnyParameterAnnotationsAttribute(Clazz clazz, Method method, ParameterAnnotationsAttribute parameterAnnotationsAttribute) { // Mark the necessary annotation information. attributeUsed = false; parameterAnnotationsAttribute.annotationsAccept(clazz, method, this); if (attributeUsed) { // We got a positive used flag, so some annotation is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(parameterAnnotationsAttribute); markConstant(clazz, parameterAnnotationsAttribute.u2attributeNameIndex); } }
public void visitAnyAnnotationsAttribute(Clazz clazz, AnnotationsAttribute annotationsAttribute) { // Mark the necessary annotation information. attributeUsed = false; annotationsAttribute.annotationsAccept(clazz, this); if (attributeUsed) { // We got a positive used flag, so some annotation is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(annotationsAttribute); markConstant(clazz, annotationsAttribute.u2attributeNameIndex); } }
public void visitAnnotationDefaultAttribute(Clazz clazz, Method method, AnnotationDefaultAttribute annotationDefaultAttribute) { // Mark the necessary annotation information in any annotation elements. annotationDefaultAttribute.defaultValueAccept(clazz, this); // Always mark annotation defaults. usageMarker.markAsUsed(annotationDefaultAttribute); markConstant(clazz, annotationDefaultAttribute.u2attributeNameIndex); }
public void visitAnyParameterAnnotationsAttribute(Clazz clazz, Method method, ParameterAnnotationsAttribute parameterAnnotationsAttribute) { // Mark the necessary annotation information. attributeUsed = false; parameterAnnotationsAttribute.annotationsAccept(clazz, method, this); if (attributeUsed) { // We got a positive used flag, so some annotation is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(parameterAnnotationsAttribute); markConstant(clazz, parameterAnnotationsAttribute.u2attributeNameIndex); } }
public void visitAnyParameterAnnotationsAttribute(Clazz clazz, Method method, ParameterAnnotationsAttribute parameterAnnotationsAttribute) { // Mark the necessary annotation information. attributeUsed = false; parameterAnnotationsAttribute.annotationsAccept(clazz, method, this); if (attributeUsed) { // We got a positive used flag, so some annotation is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(parameterAnnotationsAttribute); markConstant(clazz, parameterAnnotationsAttribute.u2attributeNameIndex); } }
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 visitAnnotation(Clazz clazz, Annotation annotation) { if (isReferencedClassUsed(annotation)) { // Mark the annotation as being used. usageMarker.markAsUsed(annotation); markConstant(clazz, annotation.u2typeIndex); // Mark the necessary element values. annotation.elementValuesAccept(clazz, this); // The return values. annotationUsed = true; attributeUsed = true; } }
public void visitAnnotation(Clazz clazz, Annotation annotation) { if (isReferencedClassUsed(annotation)) { // Mark the annotation as being used. usageMarker.markAsUsed(annotation); markConstant(clazz, annotation.u2typeIndex); // Mark the necessary element values. annotation.elementValuesAccept(clazz, this); // The return values. annotationUsed = true; attributeUsed = 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 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); } }