MCPcopy Index your code
hub / github.com/antlr/codebuff / getLine

Method getLine

src/org/antlr/codebuff/InputDocument.java:37–45  ·  view source on GitHub ↗
(int line)

Source from the content-addressed store, hash-verified

35 }
36
37 public String getLine(int line) {
38 if ( lines==null ) {
39 lines = Arrays.asList(content.split("\n"));
40 }
41 if ( line>0 ) {
42 return lines.get(line-1);
43 }
44 return null;
45 }
46
47 public void setTree(ParserRuleContext root) {
48 this.tree = root;

Callers 11

toStringMethod · 0.95
getExemplarDisplayMethod · 0.95
getAlignmentCategoryMethod · 0.45
getFeaturesMethod · 0.45
getContextFeaturesMethod · 0.45
getFeaturesMethod · 0.45
getTokenAnalysisMethod · 0.45

Calls 3

getMethod · 0.65
asListMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected