Package org.smtlib.impl
Class Pos
java.lang.Object
org.smtlib.impl.Pos
- All Implemented Interfaces:
IPos
Represents a range of characters in a source - used to indicate the location of errors
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA Printable that also implements IExpr, additionally holding the sort computed for the expression by the type checker (null if not yet, or never, computed).static classAn implementation of IPosable, holding an instance of Pos, that can be used as a base class if necessarystatic classA Posable that also implements INode, with toString() delegating to Printer.static classAn implementation of the ISource interfaceNested classes/interfaces inherited from interface org.smtlib.IPos
IPos.IPosable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
charStart
protected int charStartThe starting character, beginning from 0 -
charEnd
protected int charEndOne past the last character of the range, beginning from 0 -
source
The source of text
-
-
Constructor Details
-
Pos
Constructor for a Pos object- Parameters:
cs- the start position of the character range, 0-basedce- one past the end position of the character range, 0- baseds- the source of text to which the character positions refer
-
-
Method Details
-
charStart
public int charStart()The starting character, beginning from 0 -
charEnd
public int charEnd()One past the last character of the range, beginning from 0 -
source
The source of text
-