@Test public void testCountUntilMulti() { DefaultJavadocScanner scanner = scanner("kinds.txt"); { EnumSet<JavadocTokenKind> set = EnumSet.of(IDENTIFIER, AT); int count = JavadocScannerUtil.countUntil(set, scanner, 0); assertEquals(3, count); } { EnumSet<JavadocTokenKind> set = EnumSet.of(IDENTIFIER, AT); int count = JavadocScannerUtil.countUntil(set, scanner, 5); assertEquals(5, count); } }
public static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start) { return countWhileUntil(kinds, scanner, start, true); }
JavadocScannerUtil { public static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start) { return countWhileUntil(kinds, scanner, start, true); } }
JavadocScannerUtil { public static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start) { return countWhileUntil(kinds, scanner, start, true); } private  JavadocScannerUtil(); }
JavadocScannerUtil { public static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start) { return countWhileUntil(kinds, scanner, start, true); } private  JavadocScannerUtil(); static List<JavadocToken> lookaheadTokens(JavadocScanner scanner, int start, int count); static int countWhile(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start); static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start); static int countUntilBlockEnd(JavadocScanner scanner, int start); static int countUntilCommentEnd(JavadocScanner scanner, boolean returnMinusIfMissing, int start); static int countUntilNextPrintable(JavadocScanner scanner, int start); static int countUntilNextLineStart(JavadocScanner scanner, int start); static int consumeLineEnd(JavadocScanner scanner, boolean multiline); }
JavadocScannerUtil { public static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start) { return countWhileUntil(kinds, scanner, start, true); } private  JavadocScannerUtil(); static List<JavadocToken> lookaheadTokens(JavadocScanner scanner, int start, int count); static int countWhile(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start); static int countUntil(Collection<JavadocTokenKind> kinds, JavadocScanner scanner, int start); static int countUntilBlockEnd(JavadocScanner scanner, int start); static int countUntilCommentEnd(JavadocScanner scanner, boolean returnMinusIfMissing, int start); static int countUntilNextPrintable(JavadocScanner scanner, int start); static int countUntilNextLineStart(JavadocScanner scanner, int start); static int consumeLineEnd(JavadocScanner scanner, boolean multiline);  }