Package net.hydromatic.filtex.ast
Class Pos
java.lang.Object
net.hydromatic.filtex.ast.Pos
Position of a parse-tree node.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeTo(StringBuilder buf) booleaninthashCode()static PosCreates a Pos from two offsets.Creates a Pos from a filename and a string with a delimiter character.static <E> Posstatic PosCombines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last.static PostoString()
-
Field Details
-
ZERO
-
file
-
startLine
public final int startLine -
startColumn
public final int startColumn -
endLine
public final int endLine -
endColumn
public final int endColumn
-
-
Constructor Details
-
Pos
Creates a Pos.
-
-
Method Details
-
of
Creates a Pos from two offsets. -
split
Creates a Pos from a filename and a string with a delimiter character. The delimiter must occur exactly twice in the string. -
hashCode
public int hashCode() -
equals
-
toString
-
describeTo
-
sum
Combines an iterable of parser positions to create a position which spans from the beginning of the first to the end of the last. -
sum
-
sum
-
plus
-
plusAll
-
plusAll
-