public final class Token extends Object
| Constructor and Description |
|---|
Token(String fileName,
int startLine,
int startCol,
int startPos,
int endLine,
int endChar,
int endPos,
String content)
Constructor of the token description.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
int |
getEndCol() |
int |
getEndLine() |
int |
getEndPos() |
String |
getFileName() |
int |
getStartCol() |
int |
getStartLine() |
int |
getStartPos() |
int |
length() |
String |
toString() |
public Token(String fileName, int startLine, int startCol, int startPos, int endLine, int endChar, int endPos, String content)
fileName - File name (or provided name for non-file streams), where the token was found.startLine - Line in the input, on which the token starts.startCol - Column on the line, where the token content starts.startPos - Position (character-wise) of start of the token in the file (including number of characters of all previous lines).endLine - Line in the input, on which the token ends.endChar - Column on the line, where the token content ends.endPos - Position (character-wise) of end of the token in the file (including number of characters of all previous lines).content - String content as-is identified in the source file.public String getFileName()
public int getStartLine()
public int getStartCol()
public int getStartPos()
public int getEndLine()
public int getEndCol()
public int getEndPos()
public String getContent()
public int length()
Copyright © 2020. All rights reserved.