public class CLToken extends CLElement


Summary

Public constructors

CLToken(char[] content)

Public methods

static CLElement
allocate(char[] content)
boolean
CLToken.Type
boolean
boolean
validate(char c, long position)

Protected methods

String
toFormattedJSON(int indent, int forceIndent)
String

Inherited methods

From androidx.constraintlayout.core.parser.CLElement
void
addIndent(StringBuilder builder, int indent)
@NonNull CLElement
String
boolean
CLElement
String
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

String
boolean

Whether this element has any valid content defined.

int
boolean
boolean
boolean
void
void
setEnd(long end)
void
setLine(int line)
void
setStart(long start)
String

Public constructors

CLToken

Added in 1.1.0-alpha13
public CLToken(char[] content)

Public methods

allocate

Added in 1.1.0-alpha13
public static CLElement allocate(char[] content)

getType

Added in 1.1.0-alpha13
public CLToken.Type getType()

validate

Added in 1.1.0-alpha13
public boolean validate(char c, long position)

Protected methods

toFormattedJSON

protected String toFormattedJSON(int indent, int forceIndent)

toJSON

protected String toJSON()