Class RCharacterList
java.lang.Object
org.javacc.parser.Expansion
org.javacc.parser.RegularExpression
org.javacc.parser.RCharacterList
Describes character lists.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis is the list of descriptors of the character list.private static final char[]private static final char[]booleanThis is true if a tilde (~) appears before the character list.private booleanFields inherited from class RegularExpression
label, lhsTokens, ordinal, private_rexp, rhsToken, tpContext, walkStatusFields inherited from class Expansion
eol, inMinimumSize, myGeneration, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGenerateNfa(boolean ignoreCase, LexerContext lexerContext) private static booleanInRange(char c, CharacterRange range) private static booleanOverlaps(CharacterRange r1, CharacterRange r2) (package private) voidRemoveNegation(LexerContext lexerContext) private voidprivate static booleanSubRange(CharacterRange r1, CharacterRange r2) private voidToCaseNeutral(Context context) Methods inherited from class RegularExpression
dumpMethods inherited from class Expansion
dumpPrefix, getColumn, getLine, getProductionName, hashCode, setColumn, setLine, toString
-
Field Details
-
negated_list
public boolean negated_listThis is true if a tilde (~) appears before the character list. Otherwise, this is false. -
descriptors
-
diffLowerCaseRanges
private static final char[] diffLowerCaseRanges -
diffUpperCaseRanges
private static final char[] diffUpperCaseRanges -
transformed
private boolean transformed
-
-
Constructor Details
-
RCharacterList
RCharacterList() -
RCharacterList
RCharacterList(char c)
-
-
Method Details
-
ToCaseNeutral
-
GenerateNfa
- Specified by:
GenerateNfain classRegularExpression
-
Overlaps
-
SubRange
-
InRange
-
SortDescriptors
private void SortDescriptors() -
RemoveNegation
-
CanMatchAnyChar
public boolean CanMatchAnyChar()- Overrides:
CanMatchAnyCharin classRegularExpression
-