Class Translet._REGEX

java.lang.Object
eu.bandm.tscore.base.Translet.Parser<String>
eu.bandm.tscore.base.Translet._REGEX
Enclosing class:
Translet

public static class Translet._REGEX extends Translet.Parser<String>
Parser for text input following a regular expression. The Java Pattern mechanism is used directly, ie. Matcher.lookingAt(), see there for greedyness, etc. The result is the String consumed.
  • Field Details

    • source

      protected final String source
      The source text, standing for a Java regex pattern.
    • pattern

      protected final Pattern pattern
      The Java regex pattern compiled from the source text.
    • name

      protected final Format name
      The pretty-print name of this parser.
  • Constructor Details

    • _REGEX

      public _REGEX(String s)
      Only constructor with a string used directly as a Java RegEx pattern.
  • Method Details