Package com.ibm.wala.shrike.sourcepos
Class Position
- java.lang.Object
-
- com.ibm.wala.shrike.sourcepos.Position
-
public final class Position extends java.lang.ObjectRepresents a source file position. Source file positions are integers in the format:line-number << LINESHIFT + column-number
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()Returns the column number.intgetLine()Returns the line number.booleanisUndefined()Tests whether this position is undefined.java.lang.StringtoString()
-
-
-
Method Detail
-
getLine
public int getLine()
Returns the line number.- Returns:
- the line number
-
getColumn
public int getColumn()
Returns the column number.- Returns:
- the column number
-
isUndefined
public boolean isUndefined()
Tests whether this position is undefined.- Returns:
- true if this position is undefined
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-