CLElement
class CLElement : Cloneable
CLContainer |
|
CLNumber |
|
CLString |
|
CLToken |
Base element to represent a piece of parsed Json.
Summary
Public functions |
|
|---|---|
CLElement |
clone() |
String! |
content() |
Boolean |
|
CLElement! |
|
Long |
getEnd()The character index this element was ended on |
Float |
getFloat() |
Int |
getInt() |
Int |
getLine()get the line Number |
Long |
getStart()The character index this element was started on |
Boolean |
Whether this element has any valid content defined. |
Int |
hashCode() |
Boolean |
isDone() |
Boolean |
|
Boolean |
|
Unit |
setContainer(element: CLContainer!) |
Unit |
|
Unit |
|
Unit |
|
String! |
toString() |
Protected functions |
|
|---|---|
Unit |
addIndent(builder: StringBuilder!, indent: Int) |
String! |
|
String! |
|
String! |
toFormattedJSON(indent: Int, forceIndent: Int) |
String! |
toJSON() |
Protected properties |
|
|---|---|
CLContainer! |
|
Long |
|
Long |
|
java-static Int |
|
java-static Int |
Public functions
getLine
Added in 1.1.1
fun getLine(): Int
get the line Number
| Returns | |
|---|---|
Int |
return the line number this element was on |
hasContent
Added in 1.1.1
fun hasContent(): Boolean
Whether this element has any valid content defined.
The content is valid when content can be called without causing exceptions.
Protected functions
toFormattedJSON
Added in 1.1.1
protected fun toFormattedJSON(indent: Int, forceIndent: Int): String!