XPRMLocation
- java.lang.Object
-
- com.dashoptimization.XPRMLocation
-
public class XPRMLocation extends java.lang.Object
A location in a model source.
-
-
Field Summary
Modifier and Type Field and Description int
lineIndex
Line index.XPRMModel
model
Model for which this location is defined.
-
Method Summary
Modifier and Type Method and Description java.lang.String
getFileName()
Get the file name associated to the source location.int
getLine()
Get the line number associated to the source location.java.lang.String
toString()
Get a string representation of the location.
-
-
-
Field Detail
-
lineIndex
public final int lineIndex
Line index. All statements of a model and numbered from 0 toXPRMModel.lastLineIndex
.- See Also:
-
XPRMModel.getLocation(int)
-
model
public final XPRMModel model
Model for which this location is defined.
-
-
Method Detail
-
getLine
public int getLine()
Get the line number associated to the source location.- Returns:
- Line number in the source file.
-
getFileName
public java.lang.String getFileName()
Get the file name associated to the source location.- Returns:
- Source file name.
-
toString
public java.lang.String toString()
Get a string representation of the location. This is the concatenation "filename:line".- Overrides:
-
toString
in classjava.lang.Object
- Returns:
- String representation of the location
-
-