public class CLObject extends CLContainer implements Iterable


Summary

Public constructors

CLObject(char[] content)

Public methods

static CLObject
allocate(char[] content)

Allocate a CLObject around an array of chars

@NonNull CLObject
Iterator<CLKey>
String

Returns a object as a formatted JSON5 String

String
toFormattedJSON(int indent, int forceIndent)

Returns as a formatted JSON5 String with an indentation

String

Returns objet as a JSON5 String

Inherited methods

From androidx.constraintlayout.core.parser.CLContainer
void
add(CLElement element)
static CLElement
allocate(char[] content)
void
boolean
CLElement
get(int index)
CLElement
get(String name)
CLArray
getArray(int index)
CLArray
CLArray
CLArray
boolean
getBoolean(int index)
boolean
float
getFloat(int index)
float
float
int
getInt(int index)
int
getInt(String name)
CLObject
getObject(int index)
CLObject
CLObject
CLElement
getOrNull(int index)
CLElement
String
getString(int index)
String
String
getStringOrNull(int index)
String
boolean
has(String name)
int
ArrayList<String>
void
put(String name, CLElement value)
void
putNumber(String name, float value)
void
putString(String name, String value)
void
remove(String name)
int
String
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.

boolean
boolean
boolean
void
void
setEnd(long end)
void
setLine(int line)
void
setStart(long start)
From java.lang.Iterable
void
forEach(Consumer<T> action)
Spliterator<T>

Public constructors

CLObject

Added in 1.1.0
public CLObject(char[] content)

Public methods

allocate

Added in 1.1.0
public static CLObject allocate(char[] content)

Allocate a CLObject around an array of chars

clone

Added in 1.1.0
public @NonNull CLObject clone()

iterator

Added in 1.1.0
public Iterator<CLKeyiterator()

toFormattedJSON

Added in 1.1.0
public String toFormattedJSON()

Returns a object as a formatted JSON5 String

toFormattedJSON

Added in 1.1.0
public String toFormattedJSON(int indent, int forceIndent)

Returns as a formatted JSON5 String with an indentation

toJSON

Added in 1.1.0
public String toJSON()

Returns objet as a JSON5 String