Package org.eclipse.jetty.util.ajax
Class AsyncJSON.FrameStack
java.lang.Object
org.eclipse.jetty.util.ajax.AsyncJSON.FrameStack
- All Implemented Interfaces:
AsyncJSON.Context
- Enclosing class:
AsyncJSON
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
clear()
int
depth()
private void
grow
(int grow) private boolean
isEmpty()
private AsyncJSON.Frame
peek()
private void
pop()
private void
push
(String name, AsyncJSON.State state, Object value) private void
push
(AsyncJSON.State state, Object value)
-
Field Details
-
stack
-
cursor
private int cursor
-
-
Constructor Details
-
FrameStack
private FrameStack()
-
-
Method Details
-
grow
private void grow(int grow) -
clear
private void clear() -
isEmpty
private boolean isEmpty() -
depth
public int depth()- Specified by:
depth
in interfaceAsyncJSON.Context
- Returns:
- the depth in the JSON structure
-
peek
-
push
-
push
-
pop
private void pop()
-