Class ResourceFileProcessingFlagFilter

  • All Implemented Interfaces:
    ResourceFileVisitor, KotlinModuleVisitor

    public class ResourceFileProcessingFlagFilter
    extends java.lang.Object
    implements ResourceFileVisitor
    This ResourceFileVisitor delegates all its visits to a given delegate visitor, but only of the processing flags of the visited resource file match the given processing flag requirements.
    • Constructor Detail

      • ResourceFileProcessingFlagFilter

        public ResourceFileProcessingFlagFilter​(int requiredSetProcessingFlags,
                                                int requiredUnsetProcessingFlags,
                                                ResourceFileVisitor acceptedVisitor)
        Creates a new ResourceFileProcessingFlagFilter.
        Parameters:
        requiredSetProcessingFlags - the processing flags that should be set.
        requiredUnsetProcessingFlags - the class processing flags that should be unset.
        acceptedVisitor - the ResourceFileVisitor to which visits will be delegated.
    • Method Detail

      • visitAnyResourceFile

        public void visitAnyResourceFile​(ResourceFile resourceFile)
        Description copied from interface: ResourceFileVisitor
        Visits any ResourceFile instance. The more specific default implementations of this interface delegate to this method.

        Unlike most other visitor interfaces, this default implementation is empty, because most implementations only care about one type of resource file.

        Specified by:
        visitAnyResourceFile in interface ResourceFileVisitor