Class RChoice


public class RChoice extends RegularExpression
Describes regular expressions which are choices from from among included regular expressions.
  • Field Details

    • choices

      private List<RegularExpression> choices
      The list of choices of this regular expression. Each list component will narrow to RegularExpression.
  • Constructor Details

    • RChoice

      public RChoice()
  • Method Details

    • setChoices

      public void setChoices(List<RegularExpression> choices)
      Parameters:
      choices - the choices to set
    • getChoices

      public List<RegularExpression> getChoices()
      Returns:
      the choices
    • GenerateNfa

      public Nfa GenerateNfa(boolean ignoreCase, LexerContext lexerContext)
      Specified by:
      GenerateNfa in class RegularExpression
    • CompressCharLists

      private void CompressCharLists(LexerContext lexerContext)
    • CompressChoices

      private void CompressChoices()
    • CheckUnmatchability

      void CheckUnmatchability(int[] lexStates, Context context)