Job

class Job(basePos: Int = 0, sourceCode: String? = "")

This is the job object that similar to those in JavaScript Prettify.

Author

Chan Wai Shing @gmail.com>

Constructors

Link copied to clipboard
fun Job(basePos: Int = 0, sourceCode: String? = "")

Functions

Link copied to clipboard
fun getDecorations(): List<Any>

Get the parsed results. see .decorations.

Link copied to clipboard
fun getSourceCode(): String

Get the source code.

Link copied to clipboard
fun setDecorations(decorations: List<Any>?)

Set the parsed results. see .decorations.

Link copied to clipboard
fun setSourceCode(sourceCode: String?)

Set the source code.

Properties

Link copied to clipboard
var basePos: Int

The starting point of the source code.