KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("lara.util.LineInserter");

(.lara)
import lara.util.LineInserter;

LineInserter

Constructor

LineInserter

new LineInserter()

Helps inserting lines.


Instance Members

add

add(contents, linesToInsert)

Parameters

contents: string|J#java.io.File - The contents where lines will be inserted.
linesToInsert: object - Maps line numbers to strings to insert.

Returns

any - the contents with the lines inserted.

setNewLine

setNewLine(newLine)

Sets the new line.

Parameters

newLine: string - the new line to use.