MCPcopy Create free account
hub / github.com/antlr/codebuff / finishLine

Method finishLine

output/java_guava/1.4.17/LineBuffer.java:89–96  ·  view source on GitHub ↗

Called when a line is complete.

(boolean sawNewline)

Source from the content-addressed store, hash-verified

87 /** Called when a line is complete. */
88
89 @CanIgnoreReturnValue
90 private boolean finishLine(boolean sawNewline) throws IOException {
91 String separator = sawReturn ? (sawNewline ? "\r\n" : "\r") : (sawNewline ? "\n" : "");
92 handleLine(line.toString(), separator);
93 line = new StringBuilder();
94 sawReturn = false;
95 return sawNewline;
96 }
97
98 /**
99 * Subclasses must call this method after finishing character processing, in order to ensure that

Callers 2

addMethod · 0.95
finishMethod · 0.95

Calls 2

handleLineMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected