8283848586878889909192
for (;;) { int idx; c = x.nextClean(); switch (c) { case 0: throw x.syntaxError("A JSONObject text must end with '}'"); case '}': return; default: x.back(); idx = x.getMyIndex();
102103104105106107108109110111112
if (c == '=') { if (x.next() != '>') { x.back(); } } else if (c != ':') { throw x.syntaxError("Expected a ':' after a key"); } if ("id".equals(key)) { Object value = x.nextValue(); UIComponent component = RendererUtils.getInstance().findComponentFor(effect, value.toString());
135136137138139140141142143144145
x.back(); break; case '}': return; default: throw x.syntaxError("Expected a ',' or '}'"); } } } private String findComponentId(String id, FacesContext context, UIComponent component) {
6364656667686970717273
JSONTokener x = new JSONTokener(s.toString()); char c; String key; if (x.nextClean() != '{') { throw x.syntaxError("A JSONObject text must begin with '{'"); } for (;;) { int idx; c = x.nextClean(); switch (c) {
7071727374757677787980
90919293949596979899100
if (c == '=') { if (x.next() != '>') { x.back(); } } else if (c != ':') { throw x.syntaxError("Expected a ':' after a key"); } if ("id".equals(key)) { Object value = x.nextValue(); UIComponent component = effect.findComponent(value.toString());
123124125126127128129130131132
x.back(); break; case '}': return; default: throw x.syntaxError("Expected a ',' or '}'"); } } } }