java.lang.Object
org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
Direct Known Subclasses:
IntegerVariableAssignmentParser, ListParser, TagNameParser, VariableAssignmentParser, WordParser

public abstract class MetaPatternParser extends Object
Base class for various MetaPattern based parsers.
Author:
Jonathan Locke
  • Constructor Details

  • Method Details

    • setPattern

      public void setPattern(MetaPattern pattern)
      Parameters:
      pattern - Pattern
    • advance

      protected final boolean advance(MetaPattern pattern)
      Advance parsing to the next element. The internal cursor will be moved to end of the string matched.
      Parameters:
      pattern - Meta pattern
      Returns:
      True if found, false otherwise
    • matches

      public boolean matches()
      Whether the matcher matches the pattern.
      Returns:
      whether the matcher matches
    • matcher

      public final Matcher matcher()
      Gets the matcher.
      Returns:
      the matcher
    • atEnd

      public final boolean atEnd()
      Whether the internal cursor has advanced to the end of the input.
      Returns:
      whether the input is parsed