Class CLObject
- java.lang.Object
-
- androidx.constraintlayout.core.parser.CLElement
-
- androidx.constraintlayout.core.parser.CLContainer
-
- androidx.constraintlayout.core.parser.CLObject
-
- All Implemented Interfaces:
java.lang.Iterable<CLKey>
public class CLObject extends CLContainer implements java.lang.Iterable<CLKey>
-
-
Field Summary
-
Fields inherited from class androidx.constraintlayout.core.parser.CLElement
mContainer, mEnd, mStart, sBaseIndent, sMaxLine
-
-
Constructor Summary
Constructors Constructor Description CLObject(char[] content)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLObjectallocate(char[] content)Allocate a CLObject around an array of charsjava.util.Iterator<CLKey>iterator()java.lang.StringtoFormattedJSON()Returns a object as a formatted JSON5 Stringjava.lang.StringtoFormattedJSON(int indent, int forceIndent)Returns as a formatted JSON5 String with an indentationjava.lang.StringtoJSON()Returns objet as a JSON5 String-
Methods inherited from class androidx.constraintlayout.core.parser.CLContainer
add, clear, get, get, getArray, getArray, getArrayOrCreate, getArrayOrNull, getBoolean, getBoolean, getFloat, getFloat, getFloatOrNaN, getInt, getInt, getObject, getObject, getObjectOrNull, getOrNull, getOrNull, getString, getString, getStringOrNull, getStringOrNull, has, names, put, putNumber, putString, remove, size, toString
-
Methods inherited from class androidx.constraintlayout.core.parser.CLElement
addIndent, content, getContainer, getDebugName, getEnd, getFloat, getInt, getLine, getStart, getStrClass, isDone, isStarted, notStarted, setContainer, setEnd, setLine, setStart
-
-
-
-
Method Detail
-
allocate
public static CLObject allocate(char[] content)
Allocate a CLObject around an array of chars
-
toJSON
public java.lang.String toJSON()
Returns objet as a JSON5 String
-
toFormattedJSON
public java.lang.String toFormattedJSON()
Returns a object as a formatted JSON5 String
-
toFormattedJSON
public java.lang.String toFormattedJSON(int indent, int forceIndent)Returns as a formatted JSON5 String with an indentation- Overrides:
toFormattedJSONin classCLElement
-
-