Lines Matching refs:lines
71 ArrayList<String> lines = new ArrayList<String>();
72 lines.addAll(FileUtils.readLines(f, "utf-8"));
75 replace(lines, toPosition(it.getStart()), toEndPosition(it.getStop()), "");
88 recurseReplace(layoutNode, lines, noTag, newTag, 0);
93 replace(lines, rootStartTag, rootEndTag, "");
96 PositionPair endLayoutPositions = findTerminalPositions(root, lines);
97 replace(lines, endLayoutPositions.left, endLayoutPositions.right, "");
137 fixPosition(lines, endTagPosition);
138 String line = lines.get(endTagPosition.line);
141 lines.set(endTagPosition.line, newLine);
143 return Joiner.on(StringUtils.LINE_SEPARATOR).join(lines);
239 private static boolean replace(ArrayList<String> lines, Position start, Position end,
241 fixPosition(lines, start);
242 fixPosition(lines, end);
244 String startLine = lines.get(start.line);
246 lines.set(start.line, newStartLine);
248 String line = lines.get(i);
249 lines.set(i, replaceWithSpaces(line, 0, line.length() - 1));
251 String endLine = lines.get(end.line);
253 lines.set(end.line, newEndLine);
256 String line = lines.get(start.line);
260 lines.set(start.line, spacedText);
263 String line = lines.get(start.line);
265 lines.set(start.line, newLine);
288 private static int recurseReplace(ElementContext node, ArrayList<String> lines,
308 replace(lines, start, end, it.attrName.getText() + "=\"" + defaultVal + "\"");
309 } else if (replace(lines, start, end, tag)) {
325 nextBindingIndex = recurseReplace(it, lines, noTag, nextTag, nextBindingIndex);
374 ArrayList<String> lines) {
379 index = lines.get(startPosition.line).lastIndexOf("</");
396 private static void fixPosition(ArrayList<String> lines, Position pos) {
397 String line = lines.get(pos.line);