Package org.javacc.parser
Class RChoice
- java.lang.Object
-
- org.javacc.parser.Expansion
-
- org.javacc.parser.RegularExpression
-
- org.javacc.parser.RChoice
-
public class RChoice extends RegularExpression
Describes regular expressions which are choices from from among included regular expressions.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<RegularExpression>choicesThe list of choices of this regular expression.-
Fields inherited from class org.javacc.parser.RegularExpression
label, lhsTokens, ordinal, private_rexp, rhsToken, tpContext, walkStatus
-
Fields inherited from class org.javacc.parser.Expansion
eol, inMinimumSize, myGeneration, parent
-
-
Constructor Summary
Constructors Constructor Description RChoice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidCheckUnmatchability(int[] lexStates, Context context)private voidCompressCharLists(LexerContext lexerContext)private voidCompressChoices()NfaGenerateNfa(boolean ignoreCase, LexerContext lexerContext)java.util.List<RegularExpression>getChoices()voidsetChoices(java.util.List<RegularExpression> choices)-
Methods inherited from class org.javacc.parser.RegularExpression
CanMatchAnyChar, dump
-
Methods inherited from class org.javacc.parser.Expansion
dumpPrefix, getColumn, getLine, getProductionName, hashCode, setColumn, setLine, toString
-
-
-
-
Field Detail
-
choices
private java.util.List<RegularExpression> choices
The list of choices of this regular expression. Each list component will narrow to RegularExpression.
-
-
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
-
GenerateNfa
public Nfa GenerateNfa(boolean ignoreCase, LexerContext lexerContext)
- Specified by:
GenerateNfain classRegularExpression
-
CompressCharLists
private void CompressCharLists(LexerContext lexerContext)
-
CompressChoices
private void CompressChoices()
-
CheckUnmatchability
void CheckUnmatchability(int[] lexStates, Context context)
-
-