Class RegExParser


  • public class RegExParser
    extends java.lang.Object
    Parser for Crossfire regular expressions.
    • Constructor Summary

      Constructors 
      Constructor Description
      RegExParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.util.Collection<java.lang.String> getWords()
      Returns the words from the last call to parse(String, ErrorGenerator).
      void parse​(@NotNull java.lang.String regEx, @NotNull ErrorGenerator<?,​?,​?> generator)
      Parses a regular expression.
      • Methods inherited from class java.lang.Object

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

      • RegExParser

        public RegExParser()
    • Method Detail

      • parse

        public void parse​(@NotNull
                          @NotNull java.lang.String regEx,
                          @NotNull
                          @NotNull ErrorGenerator<?,​?,​?> generator)
        Parses a regular expression.
        Parameters:
        regEx - the regular expression
        generator - the generator for reporting errors
      • getWords

        @NotNull
        public @NotNull java.util.Collection<java.lang.String> getWords()
        Returns the words from the last call to parse(String, ErrorGenerator).
        Returns:
        the words