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

Method finish

output/java_guava/1.4.17/LineBuffer.java:106–110  ·  view source on GitHub ↗

Subclasses must call this method after finishing character processing, in order to ensure that any unterminated line in the buffer is passed to #handleLine. @throws IOException if an I/O error occurs

()

Source from the content-addressed store, hash-verified

104
105
106 protected void finish() throws IOException {
107 if (sawReturn || line.length() > 0) {
108 finishLine(false);
109 }
110 }
111
112 /**
113 * Called for each line found in the character data passed to {@link #add}.

Callers 5

readLineMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45

Calls 2

finishLineMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected