# CLToken

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/CLToken.java+class:androidx.constraintlayout.core.parser.CLToken) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***

<br />

```
class CLToken : CLElement
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.constraintlayout.core.parser.CLElement](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement) ||
|   | ↳ | [androidx.constraintlayout.core.parser.CLToken](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#CLToken(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 |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#allocate(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>!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#getBoolean()()` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken.Type!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#getType()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#isNull()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#validate(char,long)(c: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html, position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLToken#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/CLToken#toJSON()()` |

### Inherited functions

From [androidx.constraintlayout.core.parser.CLElement](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement) `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://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/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getDebugName()()` `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/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getStrClass()()` `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()()`

### Inherited properties

From [androidx.constraintlayout.core.parser.CLElement](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement) `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

### CLToken

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

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

## Public functions

### allocate

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

```
java-static fun allocate(content: CharArray<Char>!): CLElement!
```

### getBoolean

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

```
fun getBoolean(): Boolean
```

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLParsingException` |   |

### getType

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

```
fun getType(): CLToken.Type!
```

### isNull

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

```
fun isNull(): Boolean
```

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLParsingException` |   |

### validate

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

```
fun validate(c: Char, position: Long): Boolean
```

## Protected functions

### toFormattedJSON

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

### toJSON

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