| Package | Description |
|---|---|
| se.l4.lect | |
| se.l4.lect.handlers | |
| se.l4.lect.location | |
| se.l4.lect.tokens |
| Modifier and Type | Method and Description |
|---|---|
Location |
TextSourceEncounter.location()
Get the currently set location.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Handler.endAttribute(Location location,
TokenProperty<?> property)
An attribute has been cleared.
|
void |
Handler.endParagraph(Location location)
A paragraph has ended.
|
void |
Handler.endSentence(Location location)
The end of a sentence has been found.
|
void |
LanguageEncounter.endSentence(Location location)
End the current sentence.
|
void |
TextSourceEncounter.location(Location location)
Set the location of the next event.
|
void |
Handler.startAttribute(Location location,
TokenProperty<?> property,
Object value)
An attribute has been set by the source.
|
void |
Handler.startParagraph(Location location)
A new paragraph has been started.
|
void |
Handler.startSentence(Location location)
The start of a sentence has been found.
|
void |
LanguageEncounter.startSentence(Location location)
Start a new sentence.
|
void |
TextSourceEncounter.text(CharSequence text,
Location end)
Add some text.
|
void |
LanguageParser.text(CharSequence text,
Location start,
Location end)
Add some text that should be parsed.
|
void |
ChunkedLanguageParser.text(CharSequence text,
Location start,
Location end) |
void |
ChunkedLanguageParser.text(String text,
String original,
Location start) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultHandler.endAttribute(Location location,
TokenProperty<?> property) |
void |
DelegatingMultiStageHandler.endAttribute(Location location,
TokenProperty<?> property) |
void |
DefaultHandler.endParagraph(Location location) |
void |
DelegatingMultiStageHandler.endParagraph(Location location) |
void |
DefaultHandler.endSentence(Location location) |
void |
DelegatingMultiStageHandler.endSentence(Location location) |
void |
DefaultHandler.startAttribute(Location location,
TokenProperty<?> property,
Object value) |
void |
DelegatingMultiStageHandler.startAttribute(Location location,
TokenProperty<?> property,
Object value) |
void |
DefaultHandler.startParagraph(Location location) |
void |
DelegatingMultiStageHandler.startParagraph(Location location) |
void |
DefaultHandler.startSentence(Location location) |
void |
DelegatingMultiStageHandler.startSentence(Location location) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
OffsetLocation
Location representing an offset in the source.
|
interface |
TextLocation
Location for text, where line and column is the important thing to
keep track of. |
interface |
TextOffsetLocation
Location representing an offset and a text location in the source.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MutableOffsetLocation
OffsetLocation that is mutable. |
class |
MutableTextLocation
Mutable
TextLocation for use in cases where line and column is
important. |
class |
MutableTextOffsetLocation
Mutable
TextOffsetLocation for use in cases where both offset, line
and column is important. |
| Modifier and Type | Method and Description |
|---|---|
Location |
Location.copy()
Create a copy of this location.
|
Location |
Location.moveTextIndex(CharSequence sequence)
Move the text index according to the given sequence of characters.
|
Location |
Location.moveTextIndex(CharSequence sequence,
int offset,
int length)
Move the text index according to the given sequence of characters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MutableOffsetLocation.compareTo(Location o) |
int |
MutableTextLocation.compareTo(Location o) |
int |
MutableTextOffsetLocation.compareTo(Location o) |
default boolean |
Location.isAfter(Location other)
Get if this location comes after another location.
|
default boolean |
Location.isBefore(Location other)
Get if this location comes before another location.
|
default boolean |
Location.isSameOrAfter(Location other)
Get if this location is the same or after another location.
|
default boolean |
Location.isSameOrBefore(Location other)
Get if this location is the same or before another location.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
Token.getEnd()
Get where this token ends.
|
Location |
MutableToken.getEnd() |
Location |
ImmutableToken.getEnd() |
Location |
Token.getStart()
Get where this token starts.
|
Location |
MutableToken.getStart() |
Location |
ImmutableToken.getStart() |
| Modifier and Type | Method and Description |
|---|---|
MutableToken |
MutableToken.setEnd(Location end) |
MutableToken |
MutableToken.setStart(Location start) |
void |
MutableToken.update(TokenType type,
Location start,
Location end,
CharSequence text)
Update the data within the token.
|
void |
MutableToken.update(TokenType type,
Location start,
Location end,
CharSequence text,
Map<String,Object> otherProperties)
Update the data within the token including properties.
|
| Constructor and Description |
|---|
ImmutableToken(TokenType type,
Location start,
Location end,
CharSequence text,
Map<String,Object> properties) |
MutableToken(TokenType type,
Location start,
Location end,
CharSequence text)
Create a new token with a given type, location and text.
|
Copyright © 2018. All rights reserved.