Package org.javacc.parser
Class RChoice
java.lang.Object
org.javacc.parser.Expansion
org.javacc.parser.RegularExpression
org.javacc.parser.RChoice
Describes regular expressions which are choices from from among included
regular expressions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<RegularExpression> The list of choices of this regular expression.Fields inherited from class org.javacc.parser.RegularExpression
label, lhsTokens, ordinal, private_rexp, rhsToken, tpContext, walkStatusFields inherited from class org.javacc.parser.Expansion
eol, inMinimumSize, myGeneration, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidCheckUnmatchability(int[] lexStates, Context context) private voidCompressCharLists(LexerContext lexerContext) private voidGenerateNfa(boolean ignoreCase, LexerContext lexerContext) voidsetChoices(List<RegularExpression> choices) Methods inherited from class org.javacc.parser.RegularExpression
CanMatchAnyChar, dumpMethods inherited from class org.javacc.parser.Expansion
dumpPrefix, getColumn, getLine, getProductionName, hashCode, setColumn, setLine, toString
-
Field Details
-
choices
The list of choices of this regular expression. Each list component will narrow to RegularExpression.
-
-
Constructor Details
-
RChoice
public RChoice()
-
-
Method Details
-
setChoices
- Parameters:
choices- the choices to set
-
getChoices
- Returns:
- the choices
-
GenerateNfa
- Specified by:
GenerateNfain classRegularExpression
-
CompressCharLists
-
CompressChoices
private void CompressChoices() -
CheckUnmatchability
-