class CLElement : Cloneable

Known direct subclasses
CLContainer
CLNumber
CLString

CLElement implementation for json Strings when used as property values or array elements.

CLToken
Known indirect subclasses

Base element to represent a piece of parsed Json.

Summary

Public constructors

CLElement(content: CharArray!)

Public functions

CLElement
String!
Boolean
equals(o: Any!)
CLElement!
Long

The character index this element was ended on

Float
Int
Int

get the line Number

Long

The character index this element was started on

Boolean

Whether this element has any valid content defined.

Int
Boolean
Boolean
Boolean
Unit
Unit
setEnd(end: Long)
Unit
setLine(line: Int)
Unit
setStart(start: Long)
String!

Protected functions

Unit
addIndent(builder: StringBuilder!, indent: Int)
String!
String!
String!
toFormattedJSON(indent: Int, forceIndent: Int)
String!

Protected properties

CLContainer!
Long
Long
java-static Int
java-static Int

Public constructors

CLElement

Added in 1.1.0-alpha14
CLElement(content: CharArray!)

Public functions

clone

Added in 1.1.0-alpha14
fun clone(): CLElement

content

Added in 1.1.0-alpha14
fun content(): String!

equals

fun equals(o: Any!): Boolean

getContainer

Added in 1.1.0-alpha14
fun getContainer(): CLElement!

getEnd

Added in 1.1.0-alpha14
fun getEnd(): Long

The character index this element was ended on

getFloat

Added in 1.1.0-alpha14
fun getFloat(): Float

getInt

Added in 1.1.0-alpha14
fun getInt(): Int

getLine

Added in 1.1.0-alpha14
fun getLine(): Int

get the line Number

Returns
Int

return the line number this element was on

getStart

Added in 1.1.0-alpha14
fun getStart(): Long

The character index this element was started on

hasContent

Added in 1.1.0-alpha14
fun hasContent(): Boolean

Whether this element has any valid content defined.

The content is valid when content can be called without causing exceptions.

hashCode

fun hashCode(): Int

isDone

Added in 1.1.0-alpha14
fun isDone(): Boolean

isStarted

Added in 1.1.0-alpha14
fun isStarted(): Boolean

notStarted

Added in 1.1.0-alpha14
fun notStarted(): Boolean

setContainer

Added in 1.1.0-alpha14
fun setContainer(element: CLContainer!): Unit

setEnd

Added in 1.1.0-alpha14
fun setEnd(end: Long): Unit

setLine

Added in 1.1.0-alpha14
fun setLine(line: Int): Unit

setStart

Added in 1.1.0-alpha14
fun setStart(start: Long): Unit

toString

fun toString(): String!

Protected functions

addIndent

Added in 1.1.0-alpha14
protected fun addIndent(builder: StringBuilder!, indent: Int): Unit

getDebugName

Added in 1.1.0-alpha14
protected fun getDebugName(): String!

getStrClass

Added in 1.1.0-alpha14
protected fun getStrClass(): String!

toFormattedJSON

Added in 1.1.0-alpha14
protected fun toFormattedJSON(indent: Int, forceIndent: Int): String!

toJSON

Added in 1.1.0-alpha14
protected fun toJSON(): String!

Protected properties

mContainer

Added in 1.1.0-alpha14
protected val mContainerCLContainer!

mEnd

Added in 1.1.0-alpha14
protected val mEndLong

mStart

Added in 1.1.0-alpha14
protected val mStartLong

sBaseIndent

Added in 1.1.0-alpha14
protected java-static val sBaseIndentInt

sMaxLine

Added in 1.1.0-alpha14
protected java-static val sMaxLineInt