Package autumn.lang.compiler.ast.nodes
Class SourceLocation
java.lang.Object
autumn.lang.compiler.ast.nodes.SourceLocation
An instance of this class stores the source-location information for an enclosing construct.
| 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IAstVisitor visitor) This method welcomes a visitor that wants to visit this object.copy()This method creates a shallow copy of this object.static SourceLocationThis method creates a new instance of this class.Getter.Getter.getFile()Getter.getLine()Getter.setAdditionalInfo(Object value) Setter.Setter.Setter.Setter.toMap()This method creates a map representation of this struct.toString()
-
Constructor Details
-
SourceLocation
public SourceLocation()
-
-
Method Details
-
setFile
Setter.- Parameters:
value- is the new value of propertyfile.- Returns:
- a copy of this object with property
fileset to value.
-
getFile
Getter.- Returns:
- the value of property
file.
-
setLine
Setter.- Parameters:
value- is the new value of propertyline.- Returns:
- a copy of this object with property
lineset to value.
-
getLine
Getter.- Returns:
- the value of property
line.
-
setColumn
Setter.- Parameters:
value- is the new value of propertycolumn.- Returns:
- a copy of this object with property
columnset to value.
-
getColumn
Getter.- Returns:
- the value of property
column.
-
setAdditionalInfo
Setter.- Parameters:
value- is the new value of propertyadditional_info.- Returns:
- a copy of this object with property
additional_infoset to value.
-
getAdditionalInfo
Getter.- Returns:
- the value of property
additional_info.
-
create
This method creates a new instance of this class.- Parameters:
file- is the value for propertyfile.line- is the value for propertyline.column- is the value for propertycolumn.additional_info- is the value for propertyadditional_info.- Returns:
- a new instance of this class.
-
accept
This method welcomes a visitor that wants to visit this object.- Parameters:
visitor- is the visitor that is visiting this object.
-
copy
This method creates a shallow copy of this object.- Returns:
- a shallow copy of this object.
-
toMap
This method creates a map representation of this struct.Each key is the name of a field. Each value is the result of calling the key field's getter.
- Returns:
- a map containing the entries in this struct.
-
toString
-