Class Section

java.lang.Object
nz.org.riskscape.ini.Section

public class Section extends Object

AST for an .ini file section, comprising the header ([section]) and KeyValues beneath it

  • Constructor Details

  • Method Details

    • getName

      public String getName()

      The name of the section, i.e. the content within the square brackets with leading and trailing whitespace removed.

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAll

      public List<String> getAll(String key)
      Returns:
      all the values in this section for a given key, removing blank values. Never returns null, instead will return an empty list if the key is not defined.
    • getHeaderToken

      public Token getHeaderToken()
    • getMembers

      public List<KeyValue> getMembers()