Class CharStream
java.lang.Object
com.google.googlejavaformat.java.javadoc.CharStream
String reader designed for use from the lexer. Callers invoke the
tryConsume*
methods to specify what characters they expect and then readAndResetRecorded() 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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean(package private) String(package private) booleantryConsume(String expected) (package private) booleantryConsumeRegex(Pattern pattern)