![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Represents a range in a document. More...
Inherits Comparable< Range >.
Public Member Functions | |
| int | compareTo (Range o) |
| Compares this to o. | |
| boolean | contains (Position p) |
| Returns whether this contains p. | |
| boolean | equals (Object o) |
| Position | getEndExclusive () |
| Returns the Position that immediately follows the last Position in this Range. | |
| Position | getStartInclusive () |
| Returns the first Position that is included in this Range. | |
| int | hashCode () |
| Range (Position startInclusive, Position endExclusive) | |
| Initializes a Range that starts at startInclusive and ends at, but does not include, endExclusive. | |
| String | toString () |
Static Public Member Functions | |
| static Range | degenerateRange (Position p) |
| Returns the degenerate range that simply describes the exact location specified by p. | |
| static Range | fromString (String s) |
| Converts s to a Range. | |
| static Range | fromString (String s, Position relativeTo) |
| Converts s to a Range, with the assumption that the positions expressed in s are given relative to relativeTo. | |
Static Public Attributes | |
| static final Pattern | PATTERN |
Represents a range in a document.
Ranges have a natural ordering that respects their start position(s) only.
Initializes a Range that starts at startInclusive and ends at, but does not include, endExclusive.
| startInclusive | the start of the range (inclusive) |
| endExclusive | the end of the range (exclusive) |
| int org.lflang.generator.Range.compareTo | ( | Range | o | ) |
| boolean org.lflang.generator.Range.contains | ( | Position | p | ) |
| boolean org.lflang.generator.Range.equals | ( | Object | o | ) |
|
static |
Converts s to a Range.
| s | a String that represents a Range, formatted like the output of Range.toString |
Converts s to a Range, with the assumption that the positions expressed in s are given relative to relativeTo.
| s | a String that represents a Range, formatted like the output of Range.toString |
| relativeTo | the position relative to which the positions in s are represented |
| Position org.lflang.generator.Range.getEndExclusive | ( | ) |
| Position org.lflang.generator.Range.getStartInclusive | ( | ) |
| int org.lflang.generator.Range.hashCode | ( | ) |
| String org.lflang.generator.Range.toString | ( | ) |
|
static |