Class TPatternWriter

java.lang.Object
org.teavm.classlib.java.util.regex.TPatternWriter

public final class TPatternWriter extends Object
Used in build time only. Describes a compiled pattern as a sequence of calls to TPatternFactory methods. Each node of the pattern describes itself, and nodes that don't know how to describe themselves make the whole pattern unsupported.
  • Method Details

    • write

      public static boolean write(TPattern pattern, PatternConstructionListener listener)
      Describes pattern to given listener.
      Returns:
      false if pattern can't be described, in which case listener receives incomplete sequence of calls which should be discarded.