G
- the game object type of the objectA
- the map arch object type of the objectR
- the archetype type of the objectpublic class TextValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
TextValidator()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
empty(@NotNull ErrorGenerator<G,A,R> generator)
Processes an empty line of text.
|
void |
eof(@NotNull ErrorGenerator<G,A,R> generator)
Will be called at the end of processing.
|
void |
match(@NotNull ErrorGenerator<G,A,R> generator)
Processes a @match line.
|
void |
reply(@NotNull ErrorGenerator<G,A,R> generator)
Processes a qreply or @question line.
|
void |
reset()
Resets the checker state.
|
void |
text(@NotNull ErrorGenerator<G,A,R> generator)
Processes a non-empty line of text.
|
public void reset()
public void text(@NotNull @NotNull ErrorGenerator<G,A,R> generator)
generator
- the generator for error messagespublic void empty(@NotNull @NotNull ErrorGenerator<G,A,R> generator)
generator
- the generator for error messagespublic void match(@NotNull @NotNull ErrorGenerator<G,A,R> generator)
generator
- the generator for error messagespublic void reply(@NotNull @NotNull ErrorGenerator<G,A,R> generator)
generator
- the generator for error messagespublic void eof(@NotNull @NotNull ErrorGenerator<G,A,R> generator)
generator
- the generator for error messages