public final class SourceLocation
extends java.lang.Object
| Property Name | Property Description |
file | (optional) This is the path to the source-code file. |
line | (optional) This is the one-based index of the line within the source-file. |
column | (optional) This is the one-based index of the column within the line within the source-file. |
additional_info | (optional) This is a place for things like IDEs to store additional location information. |
This file was auto-generated on (Sun May 31 11:54:12 EDT 2015).
| Constructor and Description |
|---|
SourceLocation() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IAstVisitor visitor)
This method welcomes a visitor that wants to visit this object.
|
SourceLocation |
copy()
This method creates a shallow copy of this object.
|
static SourceLocation |
create(java.net.URL file,
java.lang.Integer line,
java.lang.Integer column,
java.lang.Object additional_info)
This method creates a new instance of this class.
|
java.lang.Object |
getAdditionalInfo()
Getter.
|
java.lang.Integer |
getColumn()
Getter.
|
java.net.URL |
getFile()
Getter.
|
java.lang.Integer |
getLine()
Getter.
|
SourceLocation |
setAdditionalInfo(java.lang.Object value)
Setter.
|
SourceLocation |
setColumn(java.lang.Integer value)
Setter.
|
SourceLocation |
setFile(java.net.URL value)
Setter.
|
SourceLocation |
setLine(java.lang.Integer value)
Setter.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap()
This method creates a map representation of this struct.
|
java.lang.String |
toString() |
public SourceLocation setFile(java.net.URL value)
value - is the new value of property file.file set to value.public java.net.URL getFile()
file.public SourceLocation setLine(java.lang.Integer value)
value - is the new value of property line.line set to value.public java.lang.Integer getLine()
line.public SourceLocation setColumn(java.lang.Integer value)
value - is the new value of property column.column set to value.public java.lang.Integer getColumn()
column.public SourceLocation setAdditionalInfo(java.lang.Object value)
value - is the new value of property additional_info.additional_info set to value.public java.lang.Object getAdditionalInfo()
additional_info.public static SourceLocation create(java.net.URL file, java.lang.Integer line, java.lang.Integer column, java.lang.Object additional_info)
file - is the value for property file.line - is the value for property line.column - is the value for property column.additional_info - is the value for property additional_info.public void accept(IAstVisitor visitor)
visitor - is the visitor that is visiting this object.public SourceLocation copy()
public java.util.Map<java.lang.String,java.lang.Object> toMap()
Each key is the name of a field. Each value is the result of calling the key field's getter.
public java.lang.String toString()
toString in class java.lang.Object