public class CLContainer extends CLElement

Known direct subclasses

Summary

Public constructors

CLContainer(char[] content)

Public methods

void
add(CLElement element)
static CLElement
allocate(char[] content)
void
@NonNull CLContainer
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

Inherited methods

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

Public constructors

CLContainer

Added in 1.1.0
public CLContainer(char[] content)

Public methods

add

Added in 1.1.0
public void add(CLElement element)

allocate

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

clear

Added in 1.1.0
public void clear()

clone

Added in 1.1.0
public @NonNull CLContainer clone()

equals

public boolean equals(Object obj)

getArray

Added in 1.1.0
public CLArray getArray(int index)

getArrayOrCreate

Added in 1.1.0
public CLArray getArrayOrCreate(String name)

getArrayOrNull

Added in 1.1.0
public CLArray getArrayOrNull(String name)

getBoolean

Added in 1.1.0
public boolean getBoolean(int index)

getBoolean

Added in 1.1.0
public boolean getBoolean(String name)

getFloat

Added in 1.1.0
public float getFloat(int index)

getFloat

Added in 1.1.0
public float getFloat(String name)

getFloatOrNaN

Added in 1.1.0
public float getFloatOrNaN(String name)

getInt

Added in 1.1.0
public int getInt(int index)

getObject

Added in 1.1.0
public CLObject getObject(int index)

getObjectOrNull

Added in 1.1.0
public CLObject getObjectOrNull(String name)

getOrNull

Added in 1.1.0
public CLElement getOrNull(int index)

getOrNull

Added in 1.1.0
public CLElement getOrNull(String name)

getString

Added in 1.1.0
public String getString(int index)

getStringOrNull

Added in 1.1.0
public String getStringOrNull(int index)

getStringOrNull

Added in 1.1.0
public String getStringOrNull(String name)

has

Added in 1.1.0
public boolean has(String name)

hashCode

public int hashCode()

names

Added in 1.1.0
public ArrayList<Stringnames()

put

Added in 1.1.0
public void put(String name, CLElement value)

putNumber

Added in 1.1.0
public void putNumber(String name, float value)

putString

Added in 1.1.0
public void putString(String name, String value)

remove

Added in 1.1.0
public void remove(String name)

size

Added in 1.1.0
public int size()

toString

public String toString()