Class DirNode


  • public class DirNode
    extends Object
    Represents the contents of a directory. Created: Tue Dec 6 03:05:24 2016
    Version:
    1.0
    Author:
    Ernst Reissner
    • Field Detail

      • regularFileNames

        private final Set<String> regularFileNames
        The set of names of regular files, i.e. files except directories in the directory described by this node. If the directory described by this node is not readable, this field is null.
        See Also:
        isValid()
      • name2node

        private final Map<String,​DirNode> name2node
        The set of subdirectories in the directory described by this node: The keys are the names and the according values are the nodes describing the subdirectories. If the directory described by this node is not readable, this field is null.
        See Also:
        isValid()
    • Constructor Detail

      • DirNode

        public DirNode​(File dir,
                       TexFileUtils fileUtils)
        Creates a new DirNode instance.

        Logging: WFU01: Cannot read directory

        Parameters:
        dir - The directory this node represents including subdirectories recursively. This is the latex source directory or a subdirectory recursively.
        fileUtils -
    • Method Detail

      • isValid

        boolean isValid()
        Whether the directory described by this node is readable.
      • getRegularFileNames

        Set<String> getRegularFileNames()