CLElement
public class CLElement implements Cloneable
CLContainer |
////////////////////////////////////////////////////////////////////// |
CLNumber |
|
CLString |
|
CLToken |
Base element to represent a piece of parsed Json.
Summary
Protected fields |
|
|---|---|
CLContainer |
|
long |
|
long |
|
static int |
|
static int |
Public constructors |
|---|
CLElement(char[] content) |
Public methods |
|
|---|---|
@NonNull CLElement |
clone() |
String |
content() |
boolean |
|
CLElement |
|
long |
getEnd()The character index this element was ended on |
float |
getFloat() |
int |
getInt() |
int |
getLine()get the line Number |
long |
getStart()The character index this element was started on |
boolean |
Whether this element has any valid content defined. |
int |
hashCode() |
boolean |
isDone() |
boolean |
|
boolean |
|
void |
setContainer(CLContainer element) |
void |
setEnd(long end) |
void |
setLine(int line) |
void |
setStart(long start) |
String |
toString() |
Protected methods |
|
|---|---|
void |
addIndent(StringBuilder builder, int indent) |
String |
|
String |
|
String |
toFormattedJSON(int indent, int forceIndent) |
String |
toJSON() |
Protected fields
Public methods
getLine
public int getLine()
get the line Number
| Returns | |
|---|---|
int |
return the line number this element was on |
hasContent
public boolean hasContent()
Whether this element has any valid content defined.
The content is valid when content can be called without causing exceptions.