public final class AstLocation
extends java.lang.Object
| Constructor and Description |
|---|
AstLocation(java.lang.String fileName,
int line,
int charPositionInLine)
Constructor from file name and position.
|
AstLocation(org.antlr.v4.runtime.Token token)
Constructor from grammar token.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn()
Gets column number where the AST node is localized.
|
java.lang.String |
getFileName()
Gets file name where the AST node is localized.
|
int |
getLine()
Gets line number where the AST node is localized.
|
java.lang.String |
toString() |
public AstLocation(org.antlr.v4.runtime.Token token)
token - Grammar token to localize AST node in the sources.public AstLocation(java.lang.String fileName,
int line,
int charPositionInLine)
fileName - File name of the source.line - Line number of the position in the source file.charPositionInLine - Character position in the source line.public java.lang.String getFileName()
public int getLine()
public int getColumn()
public java.lang.String toString()
toString in class java.lang.ObjectLast updated 2024-10-29 12:56:13