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).
    • Constructor Summary

      Constructors 
      Constructor Description
      AntResourcesLocator​(java.lang.String encoding, int tabWidth)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(org.apache.tools.ant.types.Resource resource)
      Adds the given file or directory resource to the locator.
      (package private) void addAll​(java.util.Iterator<?> iterator)  
      (package private) boolean isEmpty()
      Checks, whether resources have been added.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • encoding

        private final java.lang.String encoding
      • empty

        private boolean empty
    • Constructor Detail

      • AntResourcesLocator

        AntResourcesLocator​(java.lang.String encoding,
                            int tabWidth)
    • Method Detail

      • 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​(java.util.Iterator<?> iterator)
      • isEmpty

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