Package ortus.boxlang.compiler.ast
Class Position
java.lang.Object
ortus.boxlang.compiler.ast.Position
- All Implemented Interfaces:
Serializable
Represents a region of code within a text
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Position
Creates a position- Parameters:
start- the start position in the source codeend- the end position in the source code
-
Position
Creates a position including the file information- Parameters:
start- the start position in the source codeend- the end position in the source codesource- the source file reference
-
-
Method Details
-
getStart
Returns the start point- Returns:
- the start point of the region
-
getEnd
Returns the end point- Returns:
- the end point of the region
-
setEnd
Set the end point- Parameters:
end- the end point of the region
-
setStart
Set the end point- Parameters:
start- the end point of the region
-
getSource
Returns the source of the position- Returns:
- the start point of the region
- See Also:
-
setSource
Set the source of the position- Parameters:
source- The source of the position (i.e. file)- See Also:
-
toString
String representation of the Position -
toMap
-