Class RChoice


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

      • choices

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

      • RChoice

        public RChoice()
    • Method Detail

      • setChoices

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

        public java.util.List<RegularExpression> getChoices()
        Returns:
        the choices
      • CompressCharLists

        private void CompressCharLists​(LexerContext lexerContext)
      • CompressChoices

        private void CompressChoices()
      • CheckUnmatchability

        void CheckUnmatchability​(int[] lexStates,
                                 Context context)