Stay organized with collections Save and categorize content based on your preferences.

CLContainer

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

public CLContainer(char[] content)

Public methods

add

public void add(CLElement element)

allocate

public static CLElement allocate(char[] content)

clear

public void clear()

clone

public CLContainer clone()

equals

public boolean equals(Object obj)

get

public CLElement get(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

get

public CLElement get(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getArray

public CLArray getArray(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getArray

public CLArray getArray(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getArrayOrCreate

public CLArray getArrayOrCreate(String name)

getArrayOrNull

public CLArray getArrayOrNull(String name)

getBoolean

public boolean getBoolean(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getBoolean

public boolean getBoolean(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getFloat

public float getFloat(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getFloat

public float getFloat(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getFloatOrNaN

public float getFloatOrNaN(String name)

getInt

public int getInt(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getInt

public int getInt(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getObject

public CLObject getObject(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getObject

public CLObject getObject(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getObjectOrNull

public CLObject getObjectOrNull(String name)

getOrNull

public CLElement getOrNull(int index)

getOrNull

public CLElement getOrNull(String name)

getString

public String getString(int index)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getString

public String getString(String name)
Throws
androidx.constraintlayout.core.parser.CLParsingException androidx.constraintlayout.core.parser.CLParsingException

getStringOrNull

public String getStringOrNull(int index)

getStringOrNull

public String getStringOrNull(String name)

has

public boolean has(String name)

hashCode

public int hashCode()

names

public ArrayList<Stringnames()

put

public void put(String name, CLElement value)

putNumber

public void putNumber(String name, float value)

putString

public void putString(String name, String value)

remove

public void remove(String name)

size

public int size()

toString

public String toString()