Class CLElement
- java.lang.Object
-
- androidx.constraintlayout.core.parser.CLElement
-
- Direct Known Subclasses:
CLContainer,CLNumber,CLString,CLToken
public class CLElement extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CLContainermContainerprotected longmEndprotected longmStartprotected static intsBaseIndentprotected static intsMaxLine
-
Constructor Summary
Constructors Constructor Description CLElement(char[] content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddIndent(java.lang.StringBuilder builder, int indent)java.lang.Stringcontent()CLElementgetContainer()protected java.lang.StringgetDebugName()longgetEnd()The character index this element was ended onfloatgetFloat()intgetInt()intgetLine()get the line NumberlonggetStart()The character index this element was started onprotected java.lang.StringgetStrClass()booleanisDone()booleanisStarted()booleannotStarted()voidsetContainer(CLContainer element)voidsetEnd(long end)voidsetLine(int line)voidsetStart(long start)protected java.lang.StringtoFormattedJSON(int indent, int forceIndent)protected java.lang.StringtoJSON()java.lang.StringtoString()
-
-
-
Field Detail
-
mStart
protected long mStart
-
mEnd
protected long mEnd
-
mContainer
protected CLContainer mContainer
-
sMaxLine
protected static int sMaxLine
-
sBaseIndent
protected static int sBaseIndent
-
-
Method Detail
-
notStarted
public boolean notStarted()
-
setLine
public void setLine(int line)
-
getLine
public int getLine()
get the line Number- Returns:
- return the line number this element was on
-
setStart
public void setStart(long start)
-
getStart
public long getStart()
The character index this element was started on
-
getEnd
public long getEnd()
The character index this element was ended on
-
setEnd
public void setEnd(long end)
-
addIndent
protected void addIndent(java.lang.StringBuilder builder, int indent)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getStrClass
protected java.lang.String getStrClass()
-
getDebugName
protected java.lang.String getDebugName()
-
content
public java.lang.String content()
-
isDone
public boolean isDone()
-
setContainer
public void setContainer(CLContainer element)
-
getContainer
public CLElement getContainer()
-
isStarted
public boolean isStarted()
-
toJSON
protected java.lang.String toJSON()
-
toFormattedJSON
protected java.lang.String toFormattedJSON(int indent, int forceIndent)
-
getInt
public int getInt()
-
getFloat
public float getFloat()
-
-