/** * 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; }
/** * 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; }
/** * 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; }