- find(CharSequence, int, CharPredicate) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index after or at the given start that matches the predicate.
- findBestTokenType(CharSequence) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the best token type for the given text.
- findNext(CharSequence, int, CharPredicate) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index after the given start that matches the predicate.
- findNextNonWhitespace(CharSequence, int) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index of the first non-whitespace character following the given start index.
- findNextToken(int) - Method in class se.l4.lect.tokens.OffsetTokenizer
-
Find the next token.
- findNextWhitespace(CharSequence, int) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index of the first whitespace character following the given start index.
- findNonWhitespace(CharSequence, int) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index where the first non-whitespace character is available, either at the given start of after it.
- findPreviousNonWhitespace(CharSequence, int) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index of the first non-whitespace character preceding the given start index.
- findPreviousWhitespace(CharSequence, int) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index of the first whitespace character preceding the given start index.
- findWhitespace(CharSequence, int) - Static method in class se.l4.lect.tokens.TextTokenization
-
Find the index where the first whitespace character is available, either at the given start of after it.
- flush() - Method in class se.l4.lect.ChunkedLanguageParser
-
- flush() - Method in interface se.l4.lect.LanguageParser
-
Indicate that the current paragraph-level content is finished and that
parsed sentences and words need to be flushed.
- forBytes(Bytes, Charset) - Static method in class se.l4.lect.text.PlainTextSource
-
Create a new source using the given Bytes to resolve the text
content.
- forLocale(Locale) - Static method in class se.l4.lect.ICULanguage
-
Get a factory that will create a language parser for the given
Locale.
- forReader(Reader) - Static method in class se.l4.lect.text.PlainTextSource
-
Create a new source for the given
Reader.
- forReader(IOSupplier<Reader>) - Static method in class se.l4.lect.text.PlainTextSource
-
Create a new source that will use the given
IoSupplier to open a
Reader.
- forStream(InputStream, Charset) - Static method in class se.l4.lect.text.PlainTextSource
-
Create a new source for the given
InputStream using the
specified character set to decode it.
- forStream(IOSupplier<InputStream>, Charset) - Static method in class se.l4.lect.text.PlainTextSource
-
Create a new source that uses the given IoSupplier to resolve
the text content.
- forString(String) - Static method in class se.l4.lect.text.PlainTextSource
-
Create a new source for the given
String.
- forString(String) - Static method in class se.l4.lect.text.StringTextSource
-
Create a new source for the given
String.
- matcher() - Method in class se.l4.lect.internal.tokens.TokenPatternImpl
-
- matcher() - Method in interface se.l4.lect.tokens.TokenPattern
-
Create a new matcher for streaming matching.
- MatcherNode - Class in se.l4.lect.internal.tokens
-
- MatcherNode() - Constructor for class se.l4.lect.internal.tokens.MatcherNode
-
- merge(Iterable<Token>) - Static method in class se.l4.lect.tokens.Tokens
-
Merge the given tokens into a new token.
- merge(List<Token>, int, int) - Static method in class se.l4.lect.tokens.Tokens
-
- moveTextIndex(CharSequence) - Method in interface se.l4.lect.location.Location
-
Move the text index according to the given sequence of characters.
- moveTextIndex(CharSequence, int, int) - Method in interface se.l4.lect.location.Location
-
Move the text index according to the given sequence of characters.
- moveTextIndex(int) - Method in class se.l4.lect.location.MutableOffsetLocation
-
- moveTextIndex(CharSequence) - Method in class se.l4.lect.location.MutableOffsetLocation
-
- moveTextIndex(CharSequence, int, int) - Method in class se.l4.lect.location.MutableOffsetLocation
-
- moveTextIndex(CharSequence) - Method in class se.l4.lect.location.MutableTextLocation
-
- moveTextIndex(CharSequence, int, int) - Method in class se.l4.lect.location.MutableTextLocation
-
- moveTextIndex(int) - Method in class se.l4.lect.location.MutableTextOffsetLocation
-
- moveTextIndex(CharSequence) - Method in class se.l4.lect.location.MutableTextOffsetLocation
-
- moveTextIndex(CharSequence, int, int) - Method in class se.l4.lect.location.MutableTextOffsetLocation
-
- moveTextIndex(int) - Method in interface se.l4.lect.location.OffsetLocation
-
Create a version of this
Location that has moved a number of
positions in a text.
- moveTextIndex(CharSequence) - Method in interface se.l4.lect.location.OffsetLocation
-
Move the text index according to the given sequence of characters.
- moveTextIndex(CharSequence, int, int) - Method in interface se.l4.lect.location.OffsetLocation
-
Move the text index according to the given sequence of characters.
- moveTextIndex(CharSequence) - Method in interface se.l4.lect.location.TextLocation
-
Move the text index according to the given sequence of characters.
- moveTextIndex(CharSequence, int, int) - Method in interface se.l4.lect.location.TextLocation
-
Move the text index according to the given sequence of characters.
- moveTextIndex(CharSequence) - Method in interface se.l4.lect.location.TextOffsetLocation
-
Move the text index according to the given sequence of characters.
- moveTextIndex(CharSequence, int, int) - Method in interface se.l4.lect.location.TextOffsetLocation
-
Move the text index according to the given sequence of characters.
- moveTo(int, int) - Method in class se.l4.lect.location.MutableTextLocation
-
- moveTo(int, int, int) - Method in class se.l4.lect.location.MutableTextOffsetLocation
-
- moveTo(int, int) - Method in class se.l4.lect.location.MutableTextOffsetLocation
-
- moveTo(int, int) - Method in interface se.l4.lect.location.TextLocation
-
Move the line and column of this location, returning either itself if
utable or a copy if this instance is immutable.
- moveTo(int, int, int) - Method in interface se.l4.lect.location.TextOffsetLocation
-
Move the offset, line and column of this location, returning either
itself if mutable or a copy if this instance is immutable.
- MultiStageHandler - Interface in se.l4.lect.handlers
-
Extension to
Handler for those handlers that need to run on
TextSource more than once.
- MutableOffsetLocation - Class in se.l4.lect.location
-
- MutableOffsetLocation() - Constructor for class se.l4.lect.location.MutableOffsetLocation
-
- MutableOffsetLocation(int) - Constructor for class se.l4.lect.location.MutableOffsetLocation
-
- MutableTextLocation - Class in se.l4.lect.location
-
Mutable
TextLocation for use in cases where line and column is
important.
- MutableTextLocation(int, int) - Constructor for class se.l4.lect.location.MutableTextLocation
-
Create a new location representing the given line and column.
- MutableTextOffsetLocation - Class in se.l4.lect.location
-
Mutable
TextOffsetLocation for use in cases where both offset, line
and column is important.
- MutableTextOffsetLocation(int, int, int) - Constructor for class se.l4.lect.location.MutableTextOffsetLocation
-
Create a new location representing the given line and column.
- MutableToken - Class in se.l4.lect.tokens
-
Implementation of
Token that is mutable.
- MutableToken() - Constructor for class se.l4.lect.tokens.MutableToken
-
Create a new empty token.
- MutableToken(TokenType, Location, Location, CharSequence) - Constructor for class se.l4.lect.tokens.MutableToken
-
Create a new token with a given type, location and text.
- test(char) - Method in interface se.l4.lect.CharPredicate
-
Apply this predicate to the given character.
- text(CharSequence, Location, Location) - Method in class se.l4.lect.ChunkedLanguageParser
-
- text(String, String, Location) - Method in class se.l4.lect.ChunkedLanguageParser
-
- text(CharSequence, Location, Location) - Method in interface se.l4.lect.LanguageParser
-
Add some text that should be parsed.
- text(int, int, int) - Static method in interface se.l4.lect.location.Location
-
- text(CharSequence, Location) - Method in interface se.l4.lect.TextSourceEncounter
-
Add some text.
- TextLocation - Interface in se.l4.lect.location
-
Location for text, where line and column is the important thing to
keep track of.
- TextOffsetLocation - Interface in se.l4.lect.location
-
Location representing an offset and a text location in the source.
- TextSource - Interface in se.l4.lect
-
Abstraction over sources of text, used to support different formats such as
plain text and HTML.
- TextSourceEncounter - Interface in se.l4.lect
-
Encounter given to
TextSources when they should parse their content.
- TextTokenization - Class in se.l4.lect.tokens
-
Utilities to help with some text tokenization tasks.
- toArray() - Method in interface se.l4.lect.tokens.Tokenizer
-
Get these tokens as an array.
- token(Token) - Method in interface se.l4.lect.Handler
-
Token has been found, can either be whitespace, symbol or word.
- token(Token) - Method in class se.l4.lect.handlers.DefaultHandler
-
- token(Token) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
-
- token(Token) - Method in interface se.l4.lect.LanguageEncounter
-
A token has been encountered, either within a sentence or outside a
sentence.
- Token - Interface in se.l4.lect.tokens
-
Token containing some text that is either words, symbols or whitespace.
- Tokenizer - Interface in se.l4.lect.tokens
-
Tokenizer used to tokenize input into
Tokens.
- TokenizerFactory - Interface in se.l4.lect.tokens
-
- TokenizingLanguage - Class in se.l4.lect
-
- TokenizingLanguage(Locale, TokenizerFactory, TokenizerFactory, LanguageEncounter) - Constructor for class se.l4.lect.TokenizingLanguage
-
- TokenMatcher - Interface in se.l4.lect.tokens
-
Matcher created from a
TokenPattern that will match the sequence the
pattern describes.
- TokenMatcherImpl - Class in se.l4.lect.internal.tokens
-
- TokenMatcherImpl(int, MatcherNode) - Constructor for class se.l4.lect.internal.tokens.TokenMatcherImpl
-
- TokenNode - Class in se.l4.lect.internal.tokens
-
Node that checks that an individual token and its properties matches.
- TokenNode(TokenType, Map<String, Object>) - Constructor for class se.l4.lect.internal.tokens.TokenNode
-
- TokenPattern - Interface in se.l4.lect.tokens
-
Pattern for matching a sequence of tokens.
- TokenPatternImpl - Class in se.l4.lect.internal.tokens
-
- TokenPatternImpl(int, MatcherNode) - Constructor for class se.l4.lect.internal.tokens.TokenPatternImpl
-
- TokenPatternParser - Class in se.l4.lect.internal.tokens
-
- TokenPatternParser(String) - Constructor for class se.l4.lect.internal.tokens.TokenPatternParser
-
- TokenProperty<T> - Class in se.l4.lect.tokens
-
- Tokens - Class in se.l4.lect.tokens
-
Utilities for working with
Tokens.
- TokenType - Enum in se.l4.lect.tokens
-
Enumeration for the different types of tokens extracted from text.
- toList() - Method in interface se.l4.lect.tokens.Tokenizer
-
Get the tokens as a
List.
- toString() - Method in class se.l4.lect.internal.tokens.BranchNode
-
- toString() - Method in class se.l4.lect.internal.tokens.NegateNode
-
- toString() - Method in class se.l4.lect.internal.tokens.RangeNode
-
- toString() - Method in class se.l4.lect.internal.tokens.SequenceNode
-
- toString() - Method in class se.l4.lect.internal.tokens.TokenNode
-
- toString() - Method in interface se.l4.lect.location.Location
-
Return a string representation of this location suitable for debugging
output, such as in log messages.
- toString() - Method in class se.l4.lect.location.MutableOffsetLocation
-
- toString() - Method in class se.l4.lect.location.MutableTextLocation
-
- toString() - Method in class se.l4.lect.location.MutableTextOffsetLocation
-
- toString() - Method in class se.l4.lect.tokens.ImmutableToken
-
- toString() - Method in class se.l4.lect.tokens.MutableToken
-
- toString() - Method in class se.l4.lect.tokens.TokenProperty
-