Package com.dd.plist
Class ParsedObjectStack
- java.lang.Object
-
- com.dd.plist.ParsedObjectStack
-
class ParsedObjectStack extends java.lang.ObjectKeeps track of the stack of parsed objects in a binary property list.
-
-
Field Summary
Fields Modifier and Type Field Description private intobjectprivate ParsedObjectStackparent
-
Constructor Summary
Constructors Modifier Constructor Description privateParsedObjectStack(ParsedObjectStack parent, int object)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParsedObjectStackempty()Creates a new stack containing only the specified object identifier.ParsedObjectStackpush(int obj)Tries to push the specified object identifier onto the stack, checking that it is not already on the stack.private voidthrowIfOnStack(int obj)
-
-
-
Field Detail
-
parent
private ParsedObjectStack parent
-
object
private int object
-
-
Constructor Detail
-
ParsedObjectStack
private ParsedObjectStack(ParsedObjectStack parent, int object)
-
-
Method Detail
-
empty
public static ParsedObjectStack empty()
Creates a new stack containing only the specified object identifier.- Returns:
- The stack.
-
push
public ParsedObjectStack push(int obj) throws PropertyListFormatException
Tries to push the specified object identifier onto the stack, checking that it is not already on the stack.- Parameters:
obj- The object identifier.- Returns:
- The new stack with the added object identifier.
- Throws:
PropertyListFormatException- The stack already contained that object identifier, indicating a cyclic reference in the property list.
-
throwIfOnStack
private void throwIfOnStack(int obj) throws PropertyListFormatException- Throws:
PropertyListFormatException
-
-