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
CLElement(content: CharArray!)

Public functions

clone

Added in 1.1.0
fun clone(): CLElement

content

Added in 1.1.0
fun content(): String!

equals

fun equals(o: Any!): Boolean

getContainer

Added in 1.1.0
fun getContainer(): CLElement!

getEnd

Added in 1.1.0
fun getEnd(): Long

The character index this element was ended on

getFloat

Added in 1.1.0
fun getFloat(): Float

getInt

Added in 1.1.0
fun getInt(): Int

getLine

Added in 1.1.0
fun getLine(): Int

get the line Number

Returns
Int

return the line number this element was on

getStart

Added in 1.1.0
fun getStart(): Long

The character index this element was started on

hasContent

Added in 1.1.0
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
fun isDone(): Boolean

isStarted

Added in 1.1.0
fun isStarted(): Boolean

notStarted

Added in 1.1.0
fun notStarted(): Boolean

setContainer

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

setEnd

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

setLine

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

setStart

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

toString

fun toString(): String!

Protected functions

addIndent

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

getDebugName

Added in 1.1.0
protected fun getDebugName(): String!

getStrClass

Added in 1.1.0
protected fun getStrClass(): String!

toFormattedJSON

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

toJSON

Added in 1.1.0
protected fun toJSON(): String!

Protected properties

mContainer

Added in 1.1.0
protected val mContainerCLContainer!

mEnd

Added in 1.1.0
protected val mEndLong

mStart

Added in 1.1.0
protected val mStartLong

sBaseIndent

Added in 1.1.0
protected java-static val sBaseIndentInt

sMaxLine

Added in 1.1.0
protected java-static val sMaxLineInt