MCPcopy Create free account
hub / github.com/mozilla/rhino / getLineNumber

Method getLineNumber

examples/src/main/java/File.java:225–228  ·  view source on GitHub ↗

Get the current line number of the reader. Used to define the "lineNumber" property in JavaScript. The line number starts at 0 and increments with each line read. @return the current line number (0-based) of the file reader @throws FileNotFoundException if the file cannot be found or opened for

()

Source from the content-addressed store, hash-verified

223 * @throws FileNotFoundException if the file cannot be found or opened for reading
224 */
225 @JSGetter
226 public int getLineNumber() throws FileNotFoundException {
227 return getReader().getLineNumber();
228 }
229
230 /**
231 * Close the file streams.

Callers 8

diagnoseStackFunction · 0.45
printFrameFunction · 0.45
diagnoseStackFunction · 0.45
printFrameFunction · 0.45
diagnoseStackFunction · 0.45
printFrameFunction · 0.45
diagnoseStackFunction · 0.45
printFrameFunction · 0.45

Calls 1

getReaderMethod · 0.95

Tested by

no test coverage detected