ParseResult

class ParseResult(    var offset: Int,     var length: Int,     styleKeys: List<String>?)

The parser parsed result.

This class include the information needed to highlight the syntax. Information includes where the content located in the document (offset and length) and what style(s) should be applied on that segment of content.

Author

Chan Wai Shing @gmail.com>

Constructors

Link copied to clipboard
fun ParseResult(    offset: Int,     length: Int,     styleKeys: List<String>?)

Functions

Link copied to clipboard
fun addStyleKey(styleKey: String): Boolean

The style keys of the content.

Link copied to clipboard
fun clearStyleKeys()

The style keys of the content.

Link copied to clipboard
fun removeStyleKey(styleKey: String): Boolean

The style keys of the content.

Link copied to clipboard
open override fun toString(): String

{@inheritDoc}

Properties

Link copied to clipboard
var length: Int

The length of the content.

Link copied to clipboard
var offset: Int

The start position of the content.

Link copied to clipboard
val styleKeysString: String

Get the style keys represented by one string key, see Theme.getStylesAttributeSet.