Class AntResourcesLocator

All Implemented Interfaces:
ISourceFileLocator

class AntResourcesLocator extends MultiSourceFileLocator
Source file locator based on Ant resources. The locator supports files as well as directories. The lookup is first performed on files (matching the local file name) and afterwards on directories, by the order the directory resources have been added. The directories are considered as source folders that are searched for source files with the fully qualified name (package and local name).
  • Field Details

    • encoding

      private final String encoding
    • filesLocator

      private final AntFilesLocator filesLocator
    • empty

      private boolean empty
  • Constructor Details

    • AntResourcesLocator

      AntResourcesLocator(String encoding, int tabWidth)
  • Method Details

    • add

      void add(org.apache.tools.ant.types.Resource resource)
      Adds the given file or directory resource to the locator.
      Parameters:
      resource - resource to add
    • addAll

      void addAll(Iterator<?> iterator)
    • isEmpty

      boolean isEmpty()
      Checks, whether resources have been added.
      Returns:
      true, if no resources have been added