public class CLString extends CLElement


CLElement implementation for json Strings when used as property values or array elements.

Summary

Public constructors

CLString(char[] content)

Public methods

static CLElement
allocate(char[] content)
boolean
static @NonNull CLString
from(@NonNull String content)

Creates a CLString element from a String object.

int

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
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.

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

Public constructors

CLString

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

Public methods

allocate

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

equals

public boolean equals(Object obj)

from

Added in 1.1.0-alpha13
public static @NonNull CLString from(@NonNull String content)

Creates a CLString element from a String object.

hashCode

public int hashCode()

Protected methods

toFormattedJSON

protected String toFormattedJSON(int indent, int forceIndent)

toJSON

protected String toJSON()