The Checker for the Parser
Eventually, Checker gets created and checks the parser. This is illustrated in Example 7.5, “The Checker for the Parser�. Example 7.5. The Checker for the Parser public void create() throws Throwable { Set strings = new TreeSet(String.CASE_INSENSITIVE_ORDER); for (Object element : elements) strings.add(element.toString()); if (expected.equals(strings) == false) throw new IllegalArgumentException("Illegal expected set: " + expected + "!=" + strings); }