public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute) { // Mark the necessary inner classes information. attributeUsed = false; innerClassesAttribute.innerClassEntriesAccept(clazz, this); if (attributeUsed) { // We got a positive used flag, so some inner class is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(innerClassesAttribute); markConstant(clazz, innerClassesAttribute.u2attributeNameIndex); } }
new MultiAttributeVisitor(new AttributeVisitor[] new InnerUsageMarker(usageMarker), new AnnotationUsageMarker(usageMarker), }))));
new MultiAttributeVisitor(new AttributeVisitor[] new InnerUsageMarker(usageMarker), new AnnotationUsageMarker(usageMarker), new LocalVariableTypeUsageMarker(usageMarker)
public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute) { // Mark the necessary inner classes information. attributeUsed = false; innerClassesAttribute.innerClassEntriesAccept(clazz, this); if (attributeUsed) { // We got a positive used flag, so some inner class is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(innerClassesAttribute); markConstant(clazz, innerClassesAttribute.u2attributeNameIndex); } }
new MultiAttributeVisitor(new AttributeVisitor[] new InnerUsageMarker(usageMarker), new AnnotationUsageMarker(usageMarker), new LocalVariableTypeUsageMarker(usageMarker)
public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute) { // Mark the necessary inner classes information. attributeUsed = false; innerClassesAttribute.innerClassEntriesAccept(clazz, this); if (attributeUsed) { // We got a positive used flag, so some inner class is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(innerClassesAttribute); markConstant(clazz, innerClassesAttribute.u2attributeNameIndex); } }
new MultiAttributeVisitor(new AttributeVisitor[] new InnerUsageMarker(usageMarker), new AnnotationUsageMarker(usageMarker), new LocalVariableTypeUsageMarker(usageMarker)
public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute) { // Mark the necessary inner classes information. attributeUsed = false; innerClassesAttribute.innerClassEntriesAccept(clazz, this); if (attributeUsed) { // We got a positive used flag, so some inner class is being used. // Mark this attribute as being used as well. usageMarker.markAsUsed(innerClassesAttribute); markConstant(clazz, innerClassesAttribute.u2attributeNameIndex); } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { classUsed = usageMarker.isUsed(classConstant); // Is the class constant marked as being used? if (!classUsed) { // Check the referenced class. classUsed = true; classConstant.referencedClassAccept(this); // Is the referenced class marked as being used? if (classUsed) { // Mark the class constant and its Utf8 constant. usageMarker.markAsUsed(classConstant); markConstant(clazz, classConstant.u2nameIndex); } } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { classUsed = usageMarker.isUsed(classConstant); // Is the class constant marked as being used? if (!classUsed) { // Check the referenced class. classUsed = true; classConstant.referencedClassAccept(this); // Is the referenced class marked as being used? if (classUsed) { // Mark the class constant and its Utf8 constant. usageMarker.markAsUsed(classConstant); markConstant(clazz, classConstant.u2nameIndex); } } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { classUsed = usageMarker.isUsed(classConstant); // Is the class constant marked as being used? if (!classUsed) { // Check the referenced class. classUsed = true; classConstant.referencedClassAccept(this); // Is the referenced class marked as being used? if (classUsed) { // Mark the class constant and its Utf8 constant. usageMarker.markAsUsed(classConstant); markConstant(clazz, classConstant.u2nameIndex); } } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { classUsed = usageMarker.isUsed(classConstant); // Is the class constant marked as being used? if (!classUsed) { // Check the referenced class. classUsed = true; classConstant.referencedClassAccept(this); // Is the referenced class marked as being used? if (classUsed) { // Mark the class constant and its Utf8 constant. usageMarker.markAsUsed(classConstant); markConstant(clazz, classConstant.u2nameIndex); } } }