Tokens { public static Fragment identifier(String name) { return fragment(name, Tag.IDENTIFIER); } private  Tokens(); static Fragment fragment(String text, Object tag); static Fragment reserved(String name); static Fragment identifier(String name); static Fragment decimalLiteral(String s); static Fragment integerLiteral(String s); static ScientificNotation scientificNotation(String significand, String exponent);  }
@Test public void testWord() { assertFragment(Tokens.Tag.IDENTIFIER, "word", Tokens.identifier("word")); }