Top Description Fields Constructors Methods
com.dd.plist

pack-priv Class ParsedObjectStack

extends Object
Class Inheritance

Keeps track of the stack of parsed objects in a binary property list.
Author
Daniel Dreibrodt

Field Summary

Modifier and TypeField and Description
private int
private ParsedObjectStack

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ParsedObjectStack

Returns:

The stack.
empty
()

Creates a new stack containing only the specified object identifier.

public ParsedObjectStack

Returns:

The new stack with the added object identifier.
push
(int
The object identifier.
obj
)

Tries to push the specified object identifier onto the stack, checking that it is not already on the stack.

private void
throwIfOnStack(int obj)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

objectback to summary
private int object
parentback to summary
private ParsedObjectStack parent

Constructor Detail

ParsedObjectStackback to summary
private ParsedObjectStack(ParsedObjectStack parent, int object)

Method Detail

emptyback to summary
public static ParsedObjectStack empty()

Creates a new stack containing only the specified object identifier.

Returns:ParsedObjectStack

The stack.

pushback to summary
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:int

The object identifier.

Returns:ParsedObjectStack

The new stack with the added object identifier.

Exceptions
PropertyListFormatException:
The stack already contained that object identifier, indicating a cyclic reference in the property list.
throwIfOnStackback to summary
private void throwIfOnStack(int obj) throws PropertyListFormatException