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
private static class AsyncJSON.FrameStack extends java.lang.Object implements AsyncJSON.Context
-
-
Field Summary
Fields Modifier and Type Field Description private intcursorprivate java.util.List<AsyncJSON.Frame>stack
-
Constructor Summary
Constructors Modifier Constructor Description privateFrameStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidclear()intdepth()private voidgrow(int grow)private booleanisEmpty()private AsyncJSON.Framepeek()private voidpop()private voidpush(java.lang.String name, AsyncJSON.State state, java.lang.Object value)private voidpush(AsyncJSON.State state, java.lang.Object value)
-
-
-
Field Detail
-
stack
private final java.util.List<AsyncJSON.Frame> stack
-
cursor
private int cursor
-
-
Method Detail
-
grow
private void grow(int grow)
-
clear
private void clear()
-
isEmpty
private boolean isEmpty()
-
depth
public int depth()
- Specified by:
depthin interfaceAsyncJSON.Context- Returns:
- the depth in the JSON structure
-
peek
private AsyncJSON.Frame peek()
-
push
private void push(AsyncJSON.State state, java.lang.Object value)
-
push
private void push(java.lang.String name, AsyncJSON.State state, java.lang.Object value)
-
pop
private void pop()
-
-