Class CharStream
- java.lang.Object
-
- com.google.googlejavaformat.java.javadoc.CharStream
-
final class CharStream extends java.lang.ObjectString reader designed for use from the lexer. Callers invoke thetryConsume*methods to specify what characters they expect and thenreadAndResetRecorded()to retrieve and consume the matched characters. This is a slightly odd API -- why not just return the matched characters from tryConsume? -- but it is convenient for the lexer.
-
-
Constructor Summary
Constructors Constructor Description CharStream(java.lang.String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanisExhausted()(package private) java.lang.StringreadAndResetRecorded()(package private) booleantryConsume(java.lang.String expected)(package private) booleantryConsumeRegex(java.util.regex.Pattern pattern)
-