Package io.github.qishr.cascara.lang.json.token
Class JsonStructuralToken
java.lang.Object
io.github.qishr.cascara.lang.json.token.JsonStructuralToken
All Implemented Interfaces:
JsonToken
public class JsonStructuralToken
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
| protected final int | startColumn | |
| protected final int | startLine | |
| protected final int | startOffset | |
| protected final JsonTokenType | type |
Constructor Summary
| Constructor | Description |
|---|---|
| JsonStructuralToken(int line, int column, int startOffset, JsonTokenType type) | |
| JsonStructuralToken(JsonTokenType type) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public String | getLexeme() | |
| public String | getContent() | |
| public int | getOffset() | |
| public int | getStartLine() | |
| public int | getStartColumn() | |
| public JsonTokenType | getType() | |
| public QuoteStyle | getQuoteStyle() | |
| public JsonLiteral | getLiteral() | |
| public List<JsonComment> | getComments() | |
| public void | attachComments(List<JsonComment> list) |
Field Details
startColumn
protected final int startColumn
startLine
protected final int startLine
startOffset
protected final int startOffset
type
protected final JsonTokenType type
Method Details
getLexeme
public String getLexeme()
getContent
public String getContent()
getOffset
public int getOffset()
getStartLine
public int getStartLine()
getStartColumn
public int getStartColumn()
getType
public JsonTokenType getType()
Specified By:
getQuoteStyle
public QuoteStyle getQuoteStyle()
Specified By:
getLiteral
public JsonLiteral getLiteral()
Specified By:
getComments
public List<JsonComment> getComments()
Specified By:
attachComments
public void attachComments(List<JsonComment> list)
Specified By: