/** * Returns whether the given class has any attributes that can not be copied when * merging it into another class. */ private boolean hasNonCopiableAttributes(Clazz clazz) { AttributeCounter counter = new AttributeCounter(); // Copy over the other attributes. clazz.attributesAccept( new AttributeNameFilter( new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_InnerClasses), new FixedStringMatcher(ClassConstants.ATTR_EnclosingMethod)), counter)); return counter.getCount() > 0; }
new AttributeNameFilter(attributeNames, attributeVisitor);
/** * Returns whether the given class has any attributes that can not be copied when * merging it into another class. */ private boolean hasNonCopiableAttributes(Clazz clazz) { AttributeCounter counter = new AttributeCounter(); // Copy over the other attributes. clazz.attributesAccept( new AttributeNameFilter( new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_InnerClasses), new FixedStringMatcher(ClassConstants.ATTR_EnclosingMethod)), counter)); return counter.getCount() > 0; }
new AttributeNameFilter(attributeNames, attributeVisitor);
/** * Returns whether the given class has any attributes that can not be copied when * merging it into another class. */ private boolean hasNonCopiableAttributes(Clazz clazz) { AttributeCounter counter = new AttributeCounter(); // Copy over the other attributes. clazz.attributesAccept( new AttributeNameFilter( new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_InnerClasses), new FixedStringMatcher(ClassConstants.ATTR_EnclosingMethod)), counter)); return counter.getCount() > 0; }
new AttributeNameFilter(attributeNames, attributeVisitor);
new AttributeNameFilter(ClassConstants.ATTR_Code, attributeVisitor) : null;
new AttributeNameFilter(ClassConstants.ATTR_Code, attributeVisitor) : null;
new AttributeNameFilter(ClassConstants.ATTR_Code, attributeVisitor) : null;
new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_9, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AttributeToClassVisitor( new MultiClassVisitor( new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_8, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AttributeToClassVisitor( new ClassPoolFiller(filteredClasses))))));
new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_9, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AttributeToClassVisitor( new MultiClassVisitor( new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_8, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AttributeToClassVisitor( new ClassPoolFiller(filteredClasses))))));
new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_9, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AttributeToClassVisitor( new MultiClassVisitor( new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_8, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AttributeToClassVisitor( new ClassPoolFiller(filteredClasses))))));
new AttributeNameFilter(new ListParser(new NameParser()).parse(configuration.keepAttributes), requiredAttributeUsageMarker);
new ClassVersionFilter(ClassConstants.CLASS_VERSION_1_7, new AllAttributeVisitor( new AttributeNameFilter(ClassConstants.ATTR_BootstrapMethods, new AllBootstrapMethodInfoVisitor( new AllBootstrapMethodArgumentVisitor( new AttributeNameFilter(configuration.keepAttributes, attributeUsageMarker);
new AttributeNameFilter(new NotMatcher( new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_BootstrapMethods), new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_SourceFile),
new AttributeNameFilter(new NotMatcher( new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_BootstrapMethods), new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_SourceFile),
new AttributeNameFilter(new NotMatcher( new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_BootstrapMethods), new OrMatcher(new FixedStringMatcher(ClassConstants.ATTR_SourceFile),
new AttributeNameFilter(attributesMatcher, attributeVisitor);
new AttributeNameFilter(attributesMatcher, attributeVisitor);
new AttributeNameFilter(attributesMatcher, attributeVisitor);