G - the game object type of the objectA - the map arch object type of the objectR - the archetype type of the objectpublic class ErrorGenerator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
SuspiciousMsgChecker related error messages.| Constructor and Description |
|---|
ErrorGenerator(@NotNull ErrorCollector<G,A,R> errorCollector,
G gameObject)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
errorKeywordError(@NotNull java.lang.String reason)
Reports a keyword related error.
|
void |
errorMatchAllText()
Adds a new error message for an '@match *' line with text following the
'*'.
|
void |
errorRegEx(@NotNull java.lang.String message)
Adds a new error message for an incorrect or suspicious regular
expression.
|
void |
errorSyntaxError(@NotNull java.lang.String reason)
Reports a general syntax error.
|
void |
setCurrentLine(@NotNull java.lang.String line)
Sets the line currently being analyzed.
|
public ErrorGenerator(@NotNull
@NotNull ErrorCollector<G,A,R> errorCollector,
@NotNull
G gameObject)
errorCollector - the error collector to which the error messages are
addedgameObject - the game object to which the error messages applypublic void setCurrentLine(@NotNull
@NotNull java.lang.String line)
line - the line that is currently being analyzedpublic void errorRegEx(@NotNull
@NotNull java.lang.String message)
message - the error reasonpublic void errorMatchAllText()
public void errorSyntaxError(@NotNull
@NotNull java.lang.String reason)
reason - the syntax errorpublic void errorKeywordError(@NotNull
@NotNull java.lang.String reason)
reason - the reason