+ public static class IsKey extends Key {
+ public IsKey() {}
+ public IsKey(String c) { super(c); }
+ public Response process(JSScope root) throws JSExn {
+ JS js = keyed(path(root));
+ return js == null ? new Res(false) : new Res(js.get(matcher) != null);
+ }
+
+ public static class Res extends Response {
+ private boolean exists;
+ public Res() {}
+ public Res(boolean e) { exists = e; }
+ public boolean exists() { return exists; }
+ }
+ }
+