Package io.dialob.rule.parser.node
Interface Span
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ImmutableSpan
@Immutable public interface Span extends Serializable
-
-
Field Summary
Fields Modifier and Type Field Description static SpanUNDEFINED_SPAN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetStartIndex()intgetStopIndex()static Spanof(int startIndex, int stopIndex)static Spanof(org.antlr.v4.runtime.ParserRuleContext ctx)static Spanof(org.antlr.v4.runtime.Token token)static Spanundefined()
-
-
-
Field Detail
-
UNDEFINED_SPAN
static final Span UNDEFINED_SPAN
-
-
Method Detail
-
getStartIndex
@Parameter int getStartIndex()
-
getStopIndex
@Parameter int getStopIndex()
-
of
static Span of(org.antlr.v4.runtime.Token token)
-
of
static Span of(int startIndex, int stopIndex)
-
undefined
static Span undefined()
-
of
static Span of(org.antlr.v4.runtime.ParserRuleContext ctx)
-
-