Class ReplyValidator<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

  • Type Parameters:
    G - the game object type of the object
    A - the map arch object type of the object
    R - the archetype type of the object

    public class ReplyValidator<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Checks that @match, text, @reply, and @question lines occur in the correct order.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplyValidator()
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void match()
      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 line of text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplyValidator

        public ReplyValidator()
        Creates a new instance.
    • Method Detail

      • reset

        public void reset()
        Resets the checker state. Afterwards the state is the same as if a new instance was created.
      • text

        public void text​(@NotNull
                         @NotNull ErrorGenerator<G,​A,​R> generator)
        Processes a line of text.
        Parameters:
        generator - the generator for error messages
      • match

        public void match()
        Processes a @match line.
      • reply

        public void reply​(@NotNull
                          @NotNull ErrorGenerator<G,​A,​R> generator)
        Processes a qreply or @question line.
        Parameters:
        generator - the generator for error messages