Class AttributesNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<AttributesRule> rules
      The rules that have been parsed into this node.
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributesNode()
      Create an empty ignore node with no rules.
      AttributesNode​(java.util.List<AttributesRule> rules)
      Create an ignore node with given rules.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.io.BufferedReader asReader​(java.io.InputStream in)  
      java.util.List<AttributesRule> getRules()
      Getter for the field rules.
      void parse​(java.io.InputStream in)
      Parse files according to gitattribute standards.
      • Methods inherited from class java.lang.Object

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

      • rules

        private final java.util.List<AttributesRule> rules
        The rules that have been parsed into this node.
    • Constructor Detail

      • AttributesNode

        public AttributesNode()
        Create an empty ignore node with no rules.
      • AttributesNode

        public AttributesNode​(java.util.List<AttributesRule> rules)
        Create an ignore node with given rules.
        Parameters:
        rules - list of rules.
    • Method Detail

      • parse

        public void parse​(java.io.InputStream in)
                   throws java.io.IOException
        Parse files according to gitattribute standards.
        Parameters:
        in - input stream holding the standard ignore format. The caller is responsible for closing the stream.
        Throws:
        java.io.IOException - Error thrown when reading an ignore file.
      • asReader

        private static java.io.BufferedReader asReader​(java.io.InputStream in)
      • getRules

        public java.util.List<AttributesRule> getRules()
        Getter for the field rules.
        Returns:
        list of all ignore rules held by this node