Lines Matching defs:stack
125 private final List<JsonScope> stack = new ArrayList<JsonScope>();
127 stack.add(JsonScope.EMPTY_DOCUMENT);
240 stack.add(empty);
253 throw new IllegalStateException("Nesting problem: " + stack);
256 stack.remove(stack.size() - 1);
265 * Returns the value on the top of the stack.
268 return stack.get(stack.size() - 1);
272 * Replace the value on the top of the stack with the given value.
275 stack.set(stack.size() - 1, topOfStack);
467 for (int i = 1; i < stack.size(); i++) {
474 * adjusts the stack to expect the name's value.
481 throw new IllegalStateException("Nesting problem: " + stack);
489 * inline array, or inline object. Also adjusts the stack to expect either a
525 throw new IllegalStateException("Nesting problem: " + stack);