Package com.inet.lib.less
Class LessFilePosition
- java.lang.Object
-
- com.inet.lib.less.LessFilePosition
-
public final class LessFilePosition extends java.lang.Objectthe Position of an error in a less file
-
-
Constructor Summary
Constructors Constructor Description LessFilePosition(java.lang.String filename, int line, int column)filename may be null to indicate a file name is unavailable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetColumn()Get the column in the source file.java.lang.StringgetFilename()Get the file name.intgetLine()Get the line in the source fileinthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
LessFilePosition
public LessFilePosition(java.lang.String filename, int line, int column)filename may be null to indicate a file name is unavailable- Parameters:
filename- the less file, can be null if a string was parsedline- the line number in the less filecolumn- the column in the less file
-
-
Method Detail
-
getFilename
public java.lang.String getFilename()
Get the file name.- Returns:
- the file name or null if in memory
-
getLine
public int getLine()
Get the line in the source file- Returns:
- the line number
-
getColumn
public int getColumn()
Get the column in the source file.- Returns:
- the column number
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-