Class PListParser.Dict

java.lang.Object
com.github.markusbernhardt.proxy.util.PListParser.Dict
All Implemented Interfaces:
Iterable<Map.Entry<String,Object>>
Enclosing class:
PListParser

public static class PListParser.Dict extends Object implements Iterable<Map.Entry<String,Object>>
Small helper class representing a tree node.
  • Field Details

  • Constructor Details

    • Dict

      public Dict()
      Constructor
  • Method Details

    • get

      public Object get(String key)
      Parameters:
      key - of the child node.
      Returns:
      the child node, null if not existing.
    • iterator

      public Iterator<Map.Entry<String,Object>> iterator()
      iterator
      Specified by:
      iterator in interface Iterable<Map.Entry<String,Object>>
      See Also:
    • size

      public int size()
      Returns:
      the size of this dictionary.
    • dump

      public void dump()
      Dumps a dictionary with all sub-nodes to the console.
    • dumpInternal

      private static void dumpInternal(PListParser.Dict plist, int indent)
      Parameters:
      plist -
      indent -
    • getAtPath

      public Object getAtPath(String path)
      Get a node at a given path.
      Parameters:
      path - a / separated path into the plist hirarchy.
      Returns:
      the object located at the given path, null if it does not exist.