switch(status){ case S_INIT: contentHandler.startJSON(); nextToken(); switch(token.type){ status=S_IN_FINISHED_VALUE; statusStack.addFirst(new Integer(status)); if(!contentHandler.primitive(token.value)) return; break; status=S_IN_OBJECT; statusStack.addFirst(new Integer(status)); if(!contentHandler.startObject()) return; break; status=S_IN_ARRAY; statusStack.addFirst(new Integer(status)); if(!contentHandler.startArray()) return; break; nextToken(); if(token.type==Yytoken.TYPE_EOF){ contentHandler.endJSON(); status = S_END; return;
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.startArray(); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.startJSON(); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.endJSON(); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.primitive(obj); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.endObjectEntry(); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.startObjectEntry(obj); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.endArray(); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.startObject(); } });
@Override protected void run(ContentHandler handler) throws ParseException, IOException { handler.endObject(); } });
public boolean startArray() throws ParseException, IOException { return delegate.startArray(); }
public void startJSON() throws ParseException, IOException { delegate.startJSON(); }
public void endJSON() throws ParseException, IOException { delegate.endJSON(); }
public boolean primitive(Object value) throws ParseException, IOException { return delegate.primitive(value); }
public boolean endObjectEntry() throws ParseException, IOException { return delegate.endObjectEntry(); }
public boolean startObjectEntry(String key) throws ParseException, IOException { return delegate.startObjectEntry(key); }
public boolean endArray() throws ParseException, IOException { return delegate.endArray(); }
public boolean startObject() throws ParseException, IOException { return delegate.startObject(); }
public boolean endObject() throws ParseException, IOException { return delegate.endObject(); }
switch(status){ case S_INIT: contentHandler.startJSON(); nextToken(); switch(token.type){ status=S_IN_FINISHED_VALUE; statusStack.addFirst(new Integer(status)); if(!contentHandler.primitive(token.value)) return; break; status=S_IN_OBJECT; statusStack.addFirst(new Integer(status)); if(!contentHandler.startObject()) return; break; status=S_IN_ARRAY; statusStack.addFirst(new Integer(status)); if(!contentHandler.startArray()) return; break; nextToken(); if(token.type==Yytoken.TYPE_EOF){ contentHandler.endJSON(); status = S_END; return;