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 int
cursor
private java.util.List<AsyncJSON.Frame>
stack
-
Constructor Summary
Constructors Modifier Constructor Description private
FrameStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
clear()
int
depth()
private void
grow(int grow)
private boolean
isEmpty()
private AsyncJSON.Frame
peek()
private void
pop()
private void
push(java.lang.String name, AsyncJSON.State state, java.lang.Object value)
private void
push(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:
depth
in 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()
-
-