| Package | Description |
|---|---|
| se.l4.lect | |
| se.l4.lect.handlers | |
| se.l4.lect.tokens |
| Modifier and Type | Method and Description |
|---|---|
void |
TextSourceEncounter.clearAttribute(TokenProperty<?> attribute)
Clear an attribute.
|
void |
Handler.endAttribute(Location location,
TokenProperty<?> property)
An attribute has been cleared.
|
<T> void |
TextSourceEncounter.setAttribute(TokenProperty<T> attribute,
T value)
Set an attribute at the current location.
|
void |
Handler.startAttribute(Location location,
TokenProperty<?> property,
Object value)
An attribute has been set by the source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultHandler.endAttribute(Location location,
TokenProperty<?> property) |
void |
DelegatingMultiStageHandler.endAttribute(Location location,
TokenProperty<?> property) |
void |
DefaultHandler.startAttribute(Location location,
TokenProperty<?> property,
Object value) |
void |
DelegatingMultiStageHandler.startAttribute(Location location,
TokenProperty<?> property,
Object value) |
| Modifier and Type | Field and Description |
|---|---|
static TokenProperty<String> |
TokenProperty.EXTENDED_TYPE
Extended type for use with
TokenType.SPECIAL. |
static TokenProperty<String> |
TokenProperty.LEMMA
Lemma of the token.
|
static TokenProperty<String> |
TokenProperty.NORMALIZED
Normalized form of the token.
|
static TokenProperty<String> |
TokenProperty.POS
The part of speech the token is.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> TokenProperty<T> |
TokenProperty.define(String id,
Class<T> dataType)
Define some data that can be attacted to a
Token. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
OffsetTokenizer.enhanceNextToken(TokenProperty<T> property,
T value)
Enhance the next token.
|
<T> T |
Token.get(TokenProperty<T> property)
Get some optional data for this token.
|
<T> T |
MutableToken.get(TokenProperty<T> property) |
<T> T |
ImmutableToken.get(TokenProperty<T> property) |
boolean |
Token.has(TokenProperty<?> property)
Get if this token has the given data.
|
boolean |
MutableToken.has(TokenProperty<?> property) |
boolean |
ImmutableToken.has(TokenProperty<?> property) |
<T> MutableToken |
MutableToken.set(TokenProperty<T> property,
T value)
Set a property for this token.
|
Copyright © 2018. All rights reserved.