public interface Handler
| Modifier and Type | Method and Description |
|---|---|
void |
done()
Indicates that there are no more events to process.
|
void |
endAttribute(Location location,
TokenProperty<?> property)
An attribute has been cleared.
|
void |
endParagraph(Location location)
A paragraph has ended.
|
void |
endSentence(Location location)
The end of a sentence has been found.
|
void |
start()
Processing is starting.
|
void |
startAttribute(Location location,
TokenProperty<?> property,
Object value)
An attribute has been set by the source.
|
void |
startParagraph(Location location)
A new paragraph has been started.
|
void |
startSentence(Location location)
The start of a sentence has been found.
|
void |
token(Token token)
Token has been found, can either be whitespace, symbol or word.
|
void start()
void startParagraph(Location location)
location - the location of the paragraph. Locations are shared, the user should
copy the location if it needs to be used outside the current method.void endParagraph(Location location)
location - the location of the paragraph end. Locations are shared, the user
should copy the location if it needs to be used outside the current
method.void startSentence(Location location)
location - the location of the sentence. Locations are shared, the user should
copy the location if it needs to be used outside the current method.void endSentence(Location location)
location - the location of the sentence end. Locations are shared, the user
should copy the location if it needs to be used outside the current
method.void startAttribute(Location location, TokenProperty<?> property, Object value)
location - the location where the property is started. Locations are shared, the
user should copy the location if it needs to be used outside the
current method.property - the property to setvalue - the value of the propertyvoid endAttribute(Location location, TokenProperty<?> property)
location - the location where the property is ended. Locations are shared, the
user should copy the location if it needs to be used outside the
current method.property - void token(Token token)
token - the token that has been found. Tokens are shared and should be copied
via Token.copy() if they need to be used outside of the current
method.void done()
Copyright © 2018. All rights reserved.