public class ResourceFilePresenceFilter extends java.lang.Object implements ResourceFileVisitor
ResourceFileVisitor
delegates its visits to one of two
ResourceFileVisitor
instances, depending on whether the name of
the visited resource file is present in a given FilePool
or not.Constructor and Description |
---|
ResourceFilePresenceFilter(FilePool filePool,
ResourceFileVisitor presentResourceFileVisitor,
ResourceFileVisitor missingResourceFileVisitor)
Creates a new ResourceFilePresenceFilter.
|
ResourceFilePresenceFilter(ResourceFilePool resourceFilePool,
ResourceFileVisitor presentResourceFileVisitor,
ResourceFileVisitor missingResourceFileVisitor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ResourceFileVisitor |
resourceFileVisitor(ResourceFile resourceFile)
Returns the appropriate
ResourceFileVisitor . |
void |
visitKotlinModule(KotlinModule kotlinModule) |
void |
visitResourceFile(ResourceFile resourceFile) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyResourceFile
public ResourceFilePresenceFilter(FilePool filePool, ResourceFileVisitor presentResourceFileVisitor, ResourceFileVisitor missingResourceFileVisitor)
filePool
- the ResourceFilePool
in which the
presence will be tested.presentResourceFileVisitor
- the ResourceFileVisitor
to which visits
of present resource files will be delegated.missingResourceFileVisitor
- the ResourceFileVisitor
to which visits
of missing resource files will be delegated.@Deprecated public ResourceFilePresenceFilter(ResourceFilePool resourceFilePool, ResourceFileVisitor presentResourceFileVisitor, ResourceFileVisitor missingResourceFileVisitor)
resourceFilePool
- the ResourceFilePool
in which the
presence will be tested.presentResourceFileVisitor
- the ResourceFileVisitor
to which visits
of present resource files will be delegated.missingResourceFileVisitor
- the ResourceFileVisitor
to which visits
of missing resource files will be delegated.public void visitResourceFile(ResourceFile resourceFile)
visitResourceFile
in interface ResourceFileVisitor
public void visitKotlinModule(KotlinModule kotlinModule)
visitKotlinModule
in interface ResourceFileVisitor
visitKotlinModule
in interface KotlinModuleVisitor
protected ResourceFileVisitor resourceFileVisitor(ResourceFile resourceFile)
ResourceFileVisitor
.