Class PListParser.Dict
java.lang.Object
com.github.markusbernhardt.proxy.util.PListParser.Dict
- Enclosing class:
PListParser
Small helper class representing a tree node.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump()Dumps a dictionary with all sub-nodes to the console.private static voiddumpInternal(PListParser.Dict plist, int indent) Get a node at a given path.iterator()iteratorintsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
children
-
-
Constructor Details
-
Dict
public Dict()Constructor
-
-
Method Details
-
get
- Parameters:
key- of the child node.- Returns:
- the child node, null if not existing.
-
iterator
iterator -
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
- Parameters:
plist-indent-
-
getAtPath
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.
-