# CLElement

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/parser/CLElement.java+class:androidx.constraintlayout.core.parser.CLElement) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***


```
class CLElement : Cloneable
```

<br />

Known direct subclasses [CLContainer](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLContainer), [CLNumber](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber), [CLString](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLString), [CLToken](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLContainer` | ////////////////////////////////////////////////////////////////////// |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLString` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement` implementation for json Strings when used as property values or array elements. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken` |   |

Known indirect subclasses [CLArray](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLArray), [CLKey](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLKey), [CLObject](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLObject)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLArray` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLKey` |   |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLObject` |   |

*** ** * ** ***

Base element to represent a piece of parsed Json.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#CLElement(char[])(content: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html>!)` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#clone()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#content()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getContainer()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getEnd()()` The character index this element was ended on |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getFloat()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getInt()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getLine()()` get the line Number |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getStart()()` The character index this element was started on |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#hasContent()()` Whether this element has any valid content defined. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#isDone()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#isStarted()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#notStarted()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setContainer(androidx.constraintlayout.core.parser.CLContainer)(element: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLContainer!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setEnd(long)(end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setLine(int)(line: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setStart(long)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#toString()()` |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#addIndent(java.lang.StringBuilder,int)(builder: https://developer.android.com/reference/java/lang/StringBuilder.html!, indent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getDebugName()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getStrClass()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#toFormattedJSON(int,int)(indent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, forceIndent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#toJSON()()` |

| ### Protected properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLContainer!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#mContainer()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#mEnd()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#mStart()` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#sBaseIndent()` |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#sMaxLine()` |

## Public constructors

### CLElement

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
CLElement(content: CharArray<Char>!)
```

## Public functions

### clone

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun clone(): CLElement
```

### content

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun content(): String!
```

### equals

```
fun equals(o: Any!): Boolean
```

### getContainer

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getContainer(): CLElement!
```

### getEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getEnd(): Long
```

The character index this element was ended on

### getFloat

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getFloat(): Float
```

### getInt

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getInt(): Int
```

### getLine

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getLine(): Int
```

get the line Number

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | return the line number this element was on |

### getStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun getStart(): Long
```

The character index this element was started on

### hasContent

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun hasContent(): Boolean
```

Whether this element has any valid content defined.

The content is valid when `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#content()` can be called without causing exceptions.

### hashCode

```
fun hashCode(): Int
```

### isDone

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun isDone(): Boolean
```

### isStarted

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun isStarted(): Boolean
```

### notStarted

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun notStarted(): Boolean
```

### setContainer

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setContainer(element: CLContainer!): Unit
```

### setEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setEnd(end: Long): Unit
```

### setLine

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setLine(line: Int): Unit
```

### setStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun setStart(start: Long): Unit
```

### toString

```
fun toString(): String!
```

## Protected functions

### addIndent

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected fun addIndent(builder: StringBuilder!, indent: Int): Unit
```

### getDebugName

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected fun getDebugName(): String!
```

### getStrClass

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected fun getStrClass(): String!
```

### toFormattedJSON

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected fun toFormattedJSON(indent: Int, forceIndent: Int): String!
```

### toJSON

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected fun toJSON(): String!
```

## Protected properties

### mContainer

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected val mContainer: CLContainer!
```

### mEnd

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected val mEnd: Long
```

### mStart

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected val mStart: Long
```

### sBaseIndent

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected java-static val sBaseIndent: Int
```

### sMaxLine

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
protected java-static val sMaxLine: Int
```