Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

add(Token) - Method in class se.l4.lect.internal.tokens.TokenMatcherImpl
 
add(Token) - Method in interface se.l4.lect.tokens.TokenMatcher
Add a token to this matcher returning whether a match has now been found.

B

BranchNode - Class in se.l4.lect.internal.tokens
Node that branches out and allows matches to be done in several branches.
BranchNode(List<MatcherNode>) - Constructor for class se.l4.lect.internal.tokens.BranchNode
 
build() - Method in class se.l4.lect.internal.PipelineBuilderImpl
 
build() - Method in interface se.l4.lect.PipelineBuilder
Build the instance of Pipeline.

C

cast(Object) - Method in class se.l4.lect.tokens.TokenProperty
Cast an object to the data type of this token.
CharPredicate - Interface in se.l4.lect
Predicate for testing a character.
ChunkedLanguageParser - Class in se.l4.lect
Abstract implementation of LanguageParser that allows an implementation to handle a single CharSequence without worrying about mapping to the correct location or original text in the source.
ChunkedLanguageParser(LanguageEncounter) - Constructor for class se.l4.lect.ChunkedLanguageParser
 
clearAttribute(TokenProperty<?>) - Method in interface se.l4.lect.TextSourceEncounter
Clear an attribute.
collector() - Method in interface se.l4.lect.Encounter
Get the object used to collect results from this execution.
collector(NewCollector) - Method in class se.l4.lect.PipelineRunner
 
compareTo(Location) - Method in class se.l4.lect.location.MutableOffsetLocation
 
compareTo(Location) - Method in class se.l4.lect.location.MutableTextLocation
 
compareTo(Location) - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
compile(String, int) - Static method in class se.l4.lect.internal.tokens.TokenPatternImpl
 
compile(String) - Static method in interface se.l4.lect.tokens.TokenPattern
Compile a pattern that can be used to match tokens.
compile(String, int) - Static method in interface se.l4.lect.tokens.TokenPattern
Compile a pattern that can be used to match tokens.
consume(char) - Method in class se.l4.lect.internal.tokens.TokenPatternParser
 
consumeUntil(CharPredicate) - Method in class se.l4.lect.internal.tokens.TokenPatternParser
 
consumeWhitespace() - Method in class se.l4.lect.internal.tokens.TokenPatternParser
 
copy() - Method in interface se.l4.lect.location.Location
Create a copy of this location.
copy() - Method in class se.l4.lect.location.MutableOffsetLocation
 
copy() - Method in class se.l4.lect.location.MutableTextLocation
 
copy() - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
copy() - Method in interface se.l4.lect.location.OffsetLocation
Create a copy of this location.
copy() - Method in interface se.l4.lect.location.TextLocation
Create a copy of this location.
copy() - Method in interface se.l4.lect.location.TextOffsetLocation
Copy this location.
copy() - Method in class se.l4.lect.tokens.ImmutableToken
 
copy() - Method in class se.l4.lect.tokens.MutableToken
 
copy() - Method in interface se.l4.lect.tokens.Token
Get a copy of this token as an ImmutableToken.
copyFrom(TextLocation) - Method in class se.l4.lect.location.MutableTextLocation
 
copyFrom(MutableTextOffsetLocation) - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
copyFrom(Token) - Method in class se.l4.lect.tokens.MutableToken
Copy data from another token into this one.
create(Encounter<? extends Collector>) - Method in interface se.l4.lect.HandlerFactory
Create a handler for the given encounter.
create(LanguageEncounter) - Method in interface se.l4.lect.LanguageFactory
Create a parser that will send its results to the given encounter.
create(LanguageEncounter) - Method in class se.l4.lect.ParagraphLanguage
 
create(Locale, TokenizerFactory, TokenizerFactory, LanguageEncounter) - Static method in class se.l4.lect.TokenizingLanguage
Create an instance for the given locale and tokenizers.
create(Locale, TokenizerFactory, TokenizerFactory) - Static method in class se.l4.lect.TokenizingLanguage
Create a Function that can create a parser for the given locale.
create(CharSequence) - Method in interface se.l4.lect.tokens.TokenizerFactory
Create a new Tokenizer for the given input text.
create(Token) - Method in interface se.l4.lect.tokens.TokenizerFactory
Create a new Tokenizer for the given input token.
createSequence(List<MatcherNode>) - Static method in class se.l4.lect.internal.tokens.MatcherNode
Create a SequenceNode for the given nodes.

D

DefaultHandler - Class in se.l4.lect.handlers
Implementation of Handler that provides a starting point for implementing custom handlers.
DefaultHandler() - Constructor for class se.l4.lect.handlers.DefaultHandler
 
define(String, Class<T>) - Static method in class se.l4.lect.tokens.TokenProperty
Define some data that can be attacted to a Token.
DelegatingMultiStageHandler - Class in se.l4.lect.handlers
MultiStageHandler that delegates to a Handler for each stage.
DelegatingMultiStageHandler() - Constructor for class se.l4.lect.handlers.DelegatingMultiStageHandler
 
done() - Method in interface se.l4.lect.Handler
Indicates that there are no more events to process.
done() - Method in class se.l4.lect.handlers.DefaultHandler
 
done() - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
done() - Method in interface se.l4.lect.TextSourceEncounter
Indicate that we are done parsing.

E

emitToken(int, TokenType, String) - Method in class se.l4.lect.ChunkedLanguageParser
 
emitToken(int, TokenType, int) - Method in class se.l4.lect.ChunkedLanguageParser
 
emitToken(int, TokenType, int, Map<String, Object>) - Method in class se.l4.lect.ChunkedLanguageParser
 
empty() - Static method in interface se.l4.lect.TextSource
Get a TextSource that is empty.
EmptyTextSource - Class in se.l4.lect.internal
TextSource that reads and emits nothing.
encounter - Variable in class se.l4.lect.ChunkedLanguageParser
 
Encounter<Collector> - Interface in se.l4.lect
Information provided to Handlers when they are part of a Pipeline.
END - Static variable in class se.l4.lect.internal.tokens.TokenMatcherImpl
 
end() - Method in class se.l4.lect.internal.tokens.TokenMatcherImpl
 
end() - Method in interface se.l4.lect.tokens.TokenMatcher
Indicate that this is the end of the current match sequence.
endAttribute(Location, TokenProperty<?>) - Method in interface se.l4.lect.Handler
An attribute has been cleared.
endAttribute(Location, TokenProperty<?>) - Method in class se.l4.lect.handlers.DefaultHandler
 
endAttribute(Location, TokenProperty<?>) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
endParagraph(Location) - Method in interface se.l4.lect.Handler
A paragraph has ended.
endParagraph(Location) - Method in class se.l4.lect.handlers.DefaultHandler
 
endParagraph(Location) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
endParagraph() - Method in interface se.l4.lect.TextSourceEncounter
End current paragraph-level content.
endSentence(int) - Method in class se.l4.lect.ChunkedLanguageParser
End a sentence at the given offset.
endSentence(Location) - Method in interface se.l4.lect.Handler
The end of a sentence has been found.
endSentence(Location) - Method in class se.l4.lect.handlers.DefaultHandler
 
endSentence(Location) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
endSentence(Location) - Method in interface se.l4.lect.LanguageEncounter
End the current sentence.
enhanceNextToken(TokenProperty<T>, T) - Method in class se.l4.lect.tokens.OffsetTokenizer
Enhance the next token.
equals(Object) - Method in class se.l4.lect.location.MutableOffsetLocation
 
equals(Object) - Method in class se.l4.lect.location.MutableTextLocation
 
equals(Object) - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
equals(Object) - Method in class se.l4.lect.tokens.TokenProperty
 
ExactTokenNode - Class in se.l4.lect.internal.tokens
Node used to match the start and end of input.
ExactTokenNode(Token) - Constructor for class se.l4.lect.internal.tokens.ExactTokenNode
 
EXTENDED_TYPE - Static variable in class se.l4.lect.tokens.TokenProperty
Extended type for use with TokenType.SPECIAL.

F

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.

G

get() - Method in class se.l4.lect.location.MutableOffsetLocation
 
get() - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
get() - Method in interface se.l4.lect.location.OffsetLocation
Get the offset.
get() - Static method in class se.l4.lect.ParagraphLanguage
 
get(TokenProperty<T>) - Method in class se.l4.lect.tokens.ImmutableToken
 
get(TokenProperty<T>) - Method in class se.l4.lect.tokens.MutableToken
 
get(TokenProperty<T>) - Method in interface se.l4.lect.tokens.Token
Get some optional data for this token.
getColumn() - Method in class se.l4.lect.location.MutableTextLocation
 
getColumn() - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
getColumn() - Method in interface se.l4.lect.location.TextLocation
Get the column this location represents.
getEnd() - Method in class se.l4.lect.tokens.ImmutableToken
 
getEnd() - Method in class se.l4.lect.tokens.MutableToken
 
getEnd() - Method in interface se.l4.lect.tokens.Token
Get where this token ends.
getId() - Method in class se.l4.lect.tokens.TokenProperty
 
getLine() - Method in class se.l4.lect.location.MutableTextLocation
 
getLine() - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
getLine() - Method in interface se.l4.lect.location.TextLocation
Get the line this location represents.
getProperties() - Method in class se.l4.lect.tokens.ImmutableToken
 
getProperties() - Method in class se.l4.lect.tokens.MutableToken
 
getProperties() - Method in interface se.l4.lect.tokens.Token
Get properties as a Map.
getStart() - Method in class se.l4.lect.tokens.ImmutableToken
 
getStart() - Method in class se.l4.lect.tokens.MutableToken
 
getStart() - Method in interface se.l4.lect.tokens.Token
Get where this token starts.
getTail() - Method in class se.l4.lect.internal.tokens.MatcherNode
Get the tail of this node.
getText() - Method in class se.l4.lect.tokens.ImmutableToken
 
getText() - Method in class se.l4.lect.tokens.MutableToken
 
getText() - Method in interface se.l4.lect.tokens.Token
Get the text of the token.
getType() - Method in class se.l4.lect.tokens.ImmutableToken
 
getType() - Method in class se.l4.lect.tokens.MutableToken
 
getType() - Method in interface se.l4.lect.tokens.Token
Get the type of token.

H

handleChunk(CharSequence) - Method in class se.l4.lect.ChunkedLanguageParser
Handle the given sequence of characters.
handleChunk(CharSequence) - Method in class se.l4.lect.ICULanguage
 
handleChunk(CharSequence) - Method in class se.l4.lect.TokenizingLanguage
 
Handler - Interface in se.l4.lect
Handler that receives streaming events when processing a Lect syntax tree.
HandlerFactory<Collector> - Interface in se.l4.lect
Interface for creating instances of a Handler.
has(TokenProperty<?>) - Method in class se.l4.lect.tokens.ImmutableToken
 
has(TokenProperty<?>) - Method in class se.l4.lect.tokens.MutableToken
 
has(TokenProperty<?>) - Method in interface se.l4.lect.tokens.Token
Get if this token has the given data.
hashCode() - Method in class se.l4.lect.location.MutableOffsetLocation
 
hashCode() - Method in class se.l4.lect.location.MutableTextLocation
 
hashCode() - Method in class se.l4.lect.location.MutableTextOffsetLocation
 
hashCode() - Method in class se.l4.lect.tokens.TokenProperty
 
hasMoreStages() - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
hasMoreStages() - Method in interface se.l4.lect.handlers.MultiStageHandler
Get if there any more stages needed.
hasNext() - Method in class se.l4.lect.tokens.OffsetTokenizer
 
hasNext() - Method in interface se.l4.lect.tokens.Tokenizer
Get if any more tokens are available.

I

ICULanguage - Class in se.l4.lect
LanguageParser that uses BreakIterator from ICU4J to split text into sentences and tokens.
ICULanguage(Locale, LanguageEncounter) - Constructor for class se.l4.lect.ICULanguage
 
ImmutableToken - Class in se.l4.lect.tokens
Implementation of Token that is immutable.
ImmutableToken(TokenType, Location, Location, CharSequence, Map<String, Object>) - Constructor for class se.l4.lect.tokens.ImmutableToken
 
inParagraph() - Method in interface se.l4.lect.TextSourceEncounter
Check if we are currently in a paragraph.
INSTANCE - Static variable in class se.l4.lect.internal.EmptyTextSource
 
isAfter(Location) - Method in interface se.l4.lect.location.Location
Get if this location comes after another location.
isBefore(Location) - Method in interface se.l4.lect.location.Location
Get if this location comes before another location.
isMatch() - Method in class se.l4.lect.internal.tokens.TokenMatcherImpl
 
isMatch() - Method in interface se.l4.lect.tokens.TokenMatcher
Get if the matcher is currently matching.
isSameOrAfter(Location) - Method in interface se.l4.lect.location.Location
Get if this location is the same or after another location.
isSameOrBefore(Location) - Method in interface se.l4.lect.location.Location
Get if this location is the same or before another location.

L

language(LanguageFactory) - Method in class se.l4.lect.internal.PipelineBuilderImpl
 
language(LanguageFactory) - Method in interface se.l4.lect.PipelineAssembly
Set the function used to create the parser.
language(LanguageFactory) - Method in class se.l4.lect.PipelineRunner
 
LanguageEncounter - Interface in se.l4.lect
Encounter used while using a LanguageParser to extract natural language details.
LanguageFactory - Interface in se.l4.lect
Factory for creating instances of LanguageParser.
LanguageParser - Interface in se.l4.lect
Language parser used for parsing contents within paragraph-level content.
LEMMA - Static variable in class se.l4.lect.tokens.TokenProperty
Lemma of the token.
locale() - Method in interface se.l4.lect.Encounter
Get the locale is being processed.
locale() - Method in class se.l4.lect.ICULanguage
 
locale() - Method in interface se.l4.lect.LanguageParser
Get the locale of this parser.
locale() - Method in interface se.l4.lect.TextSourceEncounter
Get the locale we are building the tree for.
locale() - Method in class se.l4.lect.TokenizingLanguage
 
Location - Interface in se.l4.lect.location
Virtual representation of the location of something in a TextSource.
location() - Method in interface se.l4.lect.TextSourceEncounter
Get the currently set location.
location(Location) - Method in interface se.l4.lect.TextSourceEncounter
Set the location of the next event.

M

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
Abstract base class for anything used with a TokenPatternImpl for matching via TokenMatcherImpl.
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
OffsetLocation that is mutable.
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.

N

NegateNode - Class in se.l4.lect.internal.tokens
Node for negating the result of another node.
NegateNode(MatcherNode) - Constructor for class se.l4.lect.internal.tokens.NegateNode
 
newBuilder() - Static method in interface se.l4.lect.Pipeline
Start creating a reusable pipeline.
next() - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
next() - Method in class se.l4.lect.handlers.SimpleMultiStageHandler
 
next - Variable in class se.l4.lect.internal.tokens.MatcherNode
 
next() - Method in class se.l4.lect.tokens.OffsetTokenizer
 
next() - Method in interface se.l4.lect.tokens.Tokenizer
Get the next available token.
nextToken() - Method in class se.l4.lect.tokens.OffsetTokenizer
Get the token that has been set by the last call to OffsetTokenizer.setNextToken(TokenType, int, CharSequence).
NORMALIZED - Static variable in class se.l4.lect.tokens.TokenProperty
Normalized form of the token.

O

offset(int) - Static method in interface se.l4.lect.location.Location
Quickly create a new MutableOffsetLocation.
OffsetLocation - Interface in se.l4.lect.location
Location representing an offset in the source.
OffsetTokenizer - Class in se.l4.lect.tokens
Tokenizer that tokenizes using OffsetLocations.
OffsetTokenizer() - Constructor for class se.l4.lect.tokens.OffsetTokenizer
 
offsetToLocation(int) - Method in class se.l4.lect.text.OffsetTrackingReader
Resolve the MutableTextOffsetLocation of a character offset.
offsetToLocation(int, TextOffsetLocation) - Method in class se.l4.lect.text.OffsetTrackingReader
Resolve the MutableTextOffsetLocation of a character offset and store it in the given target.
OffsetTrackingReader - Class in se.l4.lect.text
Reader that tracks offsets and allows mapping between offset and line and column.
OffsetTrackingReader(Reader) - Constructor for class se.l4.lect.text.OffsetTrackingReader
 
ofType(TokenType) - Static method in class se.l4.lect.tokens.MutableToken
 
over(TextSource) - Static method in interface se.l4.lect.Pipeline
Start creating a pipeline with the intention of executing over the given source.

P

ParagraphLanguage - Class in se.l4.lect
LanguageFactory that just emits entire paragraphs as a Token.
parse(TextSourceEncounter) - Method in class se.l4.lect.internal.EmptyTextSource
 
parse() - Method in class se.l4.lect.internal.tokens.TokenPatternParser
 
parse(TextSourceEncounter) - Method in class se.l4.lect.text.PlainTextSource
 
parse(TextSourceEncounter) - Method in class se.l4.lect.text.StringTextSource
 
parse(TextSourceEncounter) - Method in interface se.l4.lect.TextSource
Parse the source using the given encounter.
Pipeline<Collector> - Interface in se.l4.lect
Pipeline over a TextSource that will run Handlers on the text in the source.
PipelineAssembly<Collector,Self extends PipelineAssembly<Collector,Self>> - Interface in se.l4.lect
Assembly interface for creating pipelines, used to support both PipelineBuilder and PipelineRunner.
PipelineBuilder<Collector> - Interface in se.l4.lect
Builder for instances of Pipeline.
PipelineBuilderImpl<Collector> - Class in se.l4.lect.internal
Implementation of PipelineBuilder.
PipelineBuilderImpl() - Constructor for class se.l4.lect.internal.PipelineBuilderImpl
 
PipelineImpl<Collector> - Class in se.l4.lect.internal
Implementation of Pipeline.
PipelineImpl(LanguageFactory, List<HandlerFactory<?>>) - Constructor for class se.l4.lect.internal.PipelineImpl
 
PipelineRunner<Collector> - Class in se.l4.lect
Assembly for a Pipeline to run a set of handlers over a single TextSource.
PipelineRunner(TextSource) - Constructor for class se.l4.lect.PipelineRunner
 
PlainTextSource - Class in se.l4.lect.text
Source that parses plain text into a syntax tree.
POS - Static variable in class se.l4.lect.tokens.TokenProperty
The part of speech the token is.
process() - Method in interface se.l4.lect.TextSource
Start building a pipeline to process contents in this source.

R

RangeNode - Class in se.l4.lect.internal.tokens
Node that checks that another node matches a number of times.
RangeNode(MatcherNode, int, int) - Constructor for class se.l4.lect.internal.tokens.RangeNode
 
read() - Method in class se.l4.lect.text.OffsetTrackingReader
 
read(char[], int, int) - Method in class se.l4.lect.text.OffsetTrackingReader
 
reset() - Method in class se.l4.lect.internal.tokens.TokenMatcherImpl
 
reset() - Method in interface se.l4.lect.tokens.TokenMatcher
Reset the matching, for when tokens are no longer logically connected, such as when new sentence has been started.
run(TextSource) - Method in class se.l4.lect.internal.PipelineImpl
 
run(TextSource, Collector) - Method in class se.l4.lect.internal.PipelineImpl
 
run(TextSource) - Method in interface se.l4.lect.Pipeline
Run this pipeline on the given source.
run(TextSource, Collector) - Method in interface se.l4.lect.Pipeline
Run this pipeline on the given source and collect results using the given collector.
run() - Method in class se.l4.lect.PipelineRunner
 

S

se.l4.lect - package se.l4.lect
 
se.l4.lect.handlers - package se.l4.lect.handlers
 
se.l4.lect.internal - package se.l4.lect.internal
 
se.l4.lect.internal.tokens - package se.l4.lect.internal.tokens
 
se.l4.lect.location - package se.l4.lect.location
 
se.l4.lect.text - package se.l4.lect.text
 
se.l4.lect.tokens - package se.l4.lect.tokens
 
SequenceNode - Class in se.l4.lect.internal.tokens
Node that checks that an entire sequence of nodes matches.
SequenceNode(MatcherNode) - Constructor for class se.l4.lect.internal.tokens.SequenceNode
 
set(int) - Method in class se.l4.lect.location.MutableOffsetLocation
 
set(TokenProperty<T>, T) - Method in class se.l4.lect.tokens.MutableToken
Set a property for this token.
setAttribute(TokenProperty<T>, T) - Method in interface se.l4.lect.TextSourceEncounter
Set an attribute at the current location.
setEnd(Location) - Method in class se.l4.lect.tokens.MutableToken
 
setNext(MatcherNode) - Method in class se.l4.lect.internal.tokens.BranchNode
 
setNext(MatcherNode) - Method in class se.l4.lect.internal.tokens.MatcherNode
Set the node to evaluate after this one.
setNext(MatcherNode) - Method in class se.l4.lect.internal.tokens.SequenceNode
 
setNextToken(TokenType, int, CharSequence) - Method in class se.l4.lect.tokens.OffsetTokenizer
Set the next token.
setStart(Location) - Method in class se.l4.lect.tokens.MutableToken
 
setText(CharSequence) - Method in class se.l4.lect.tokens.MutableToken
 
setType(TokenType) - Method in class se.l4.lect.tokens.MutableToken
 
SimpleMultiStageHandler - Class in se.l4.lect.handlers
MultiStageHandler that takes a collection of Handlers to run after each other.
SimpleMultiStageHandler(Collection<Handler>) - Constructor for class se.l4.lect.handlers.SimpleMultiStageHandler
 
SimpleMultiStageHandler(Handler...) - Constructor for class se.l4.lect.handlers.SimpleMultiStageHandler
 
special(Token) - Method in class se.l4.lect.handlers.DefaultHandler
Special token has been found.
start() - Method in interface se.l4.lect.Handler
Processing is starting.
start() - Method in class se.l4.lect.handlers.DefaultHandler
 
start() - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
START - Static variable in class se.l4.lect.internal.tokens.TokenMatcherImpl
 
startAttribute(Location, TokenProperty<?>, Object) - Method in interface se.l4.lect.Handler
An attribute has been set by the source.
startAttribute(Location, TokenProperty<?>, Object) - Method in class se.l4.lect.handlers.DefaultHandler
 
startAttribute(Location, TokenProperty<?>, Object) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
startParagraph(Location) - Method in interface se.l4.lect.Handler
A new paragraph has been started.
startParagraph(Location) - Method in class se.l4.lect.handlers.DefaultHandler
 
startParagraph(Location) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
startParagraph() - Method in interface se.l4.lect.TextSourceEncounter
Start new paragraph-level content.
startSentence(int) - Method in class se.l4.lect.ChunkedLanguageParser
Start a sentence at the given offset.
startSentence(Location) - Method in interface se.l4.lect.Handler
The start of a sentence has been found.
startSentence(Location) - Method in class se.l4.lect.handlers.DefaultHandler
 
startSentence(Location) - Method in class se.l4.lect.handlers.DelegatingMultiStageHandler
 
startSentence(Location) - Method in interface se.l4.lect.LanguageEncounter
Start a new sentence.
stream() - Method in interface se.l4.lect.tokens.Tokenizer
Stream these tokens.
StringTextSource - Class in se.l4.lect.text
Source that treats a String as a single paragraph.
symbol(Token) - Method in class se.l4.lect.handlers.DefaultHandler
A sequence of one or more symbols has been found in a sentence.

T

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
Quickly create a new MutableTextOffsetLocation.
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
Factory for instances of Tokenizer working on CharSequences.
TokenizingLanguage - Class in se.l4.lect
Implementation of LanguageParser that uses Tokenizers to split text into sentences and tokens.
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
Implementation of TokenMatcher that runs on top of MatcherNodes.
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
Implementation of TokenPattern.
TokenPatternImpl(int, MatcherNode) - Constructor for class se.l4.lect.internal.tokens.TokenPatternImpl
 
TokenPatternParser - Class in se.l4.lect.internal.tokens
Parser for TokenPattern.
TokenPatternParser(String) - Constructor for class se.l4.lect.internal.tokens.TokenPatternParser
 
TokenProperty<T> - Class in se.l4.lect.tokens
Extended language data for a Token that a LanguageParser or Handler may enhance a token with.
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
 

U

unknown(Token) - Method in class se.l4.lect.handlers.DefaultHandler
Unknown token has been found, uncommon case as most language implementations will not emit unknown tokens.
update(TokenType, Location, Location, CharSequence) - Method in class se.l4.lect.tokens.MutableToken
Update the data within the token.
update(TokenType, Location, Location, CharSequence, Map<String, Object>) - Method in class se.l4.lect.tokens.MutableToken
Update the data within the token including properties.

V

valueOf(String) - Static method in enum se.l4.lect.tokens.TokenType
Returns the enum constant of this type with the specified name.
values() - Static method in enum se.l4.lect.tokens.TokenType
Returns an array containing the constants of this enum type, in the order they are declared.

W

whitespace(Token) - Method in class se.l4.lect.handlers.DefaultHandler
Whitespace either within our outside a sentence.
with(Handler) - Method in class se.l4.lect.internal.PipelineBuilderImpl
 
with(HandlerFactory<Collector>) - Method in class se.l4.lect.internal.PipelineBuilderImpl
 
with(Handler) - Method in interface se.l4.lect.PipelineAssembly
Add a handler to the pipeline.
with(HandlerFactory<Collector>) - Method in interface se.l4.lect.PipelineAssembly
Add a handler to the pipeline, to be constructed when processing begins.
with(Handler) - Method in class se.l4.lect.PipelineRunner
 
with(HandlerFactory<Collector>) - Method in class se.l4.lect.PipelineRunner
 
WITH_WHITESPACE - Static variable in interface se.l4.lect.tokens.TokenPattern
 
withStages(Handler...) - Static method in interface se.l4.lect.handlers.MultiStageHandler
Create a handler that runs the given stages in order.
withStages(Collection<Handler>) - Static method in interface se.l4.lect.handlers.MultiStageHandler
Create a handler that runs the given stages in order.
word(Token) - Method in class se.l4.lect.handlers.DefaultHandler
A word has been found in a sentence.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2018. All rights reserved.