Class RegularExpression_
java.lang.Object
EDU.purdue.jtb.parser.Expansion_
EDU.purdue.jtb.parser.RegularExpression_
- Direct Known Subclasses:
RCharacterList, RChoice, REndOfFile, RJustName, ROneOrMore, RRepetitionRange, RSequence, RStringLiteral, RZeroOrMore, RZeroOrOne
Describes regular expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class Expansion_
Expansion_.EXP_TYPE -
Field Summary
FieldsModifier and TypeFieldDescriptionThe label of the regular expression (if any).The LHS to which the token value of the regular expression is assigned.booleanThis flag is set if the regular expression has a label prefixed with the # symbol - this indicates that the purpose of the regular expression is solely for defining other regular expressions.We now allow qualified access to token members.If this is a top-level regular expression (nested directly within a TokenProduction), then this field point to that TokenProduction object.Fields inherited from class Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethods inherited from class Expansion_
dumpPrefix, toString
-
Field Details
-
label
The label of the regular expression (if any). If no label is present, this is set to "". -
lhsTokens
-
rhsToken
We now allow qualified access to token members. Store it here. -
private_rexp
public boolean private_rexpThis flag is set if the regular expression has a label prefixed with the # symbol - this indicates that the purpose of the regular expression is solely for defining other regular expressions. -
tpContext
If this is a top-level regular expression (nested directly within a TokenProduction), then this field point to that TokenProduction object.
-
-
Constructor Details
-
RegularExpression_
public RegularExpression_()
-
-
Method Details
-
CanMatchAnyChar
public boolean CanMatchAnyChar()- Returns:
- always false
-
dump
- Overrides:
dumpin classExpansion_- Parameters:
indent- - the number of spaces for indentingalreadyDumped- - a Set of objects already dumped (unused)- Returns:
- the formatted string dumping the class
-