Package EDU.purdue.jtb.parser
Class ZeroOrOne
java.lang.Object
EDU.purdue.jtb.parser.Expansion_
EDU.purdue.jtb.parser.ZeroOrOne
Describes zero-or-one expansions (e.g., [foo], foo?).
-
Nested Class Summary
Nested classes/interfaces inherited from class EDU.purdue.jtb.parser.Expansion_
Expansion_.EXP_TYPE
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe expansion which is repeated zero or one times.Fields inherited from class EDU.purdue.jtb.parser.Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
Constructor Summary
ConstructorsConstructorDescriptionStandard constructorZeroOrOne
(Token t, Expansion_ e) Constructor with parameters -
Method Summary
Methods inherited from class EDU.purdue.jtb.parser.Expansion_
dumpPrefix, toString
-
Field Details
-
expansion
The expansion which is repeated zero or one times.
-
-
Constructor Details
-
ZeroOrOne
public ZeroOrOne()Standard constructor -
ZeroOrOne
Constructor with parameters- Parameters:
t
- - the tokene
- - the node
-
-
Method Details
-
dump
- Overrides:
dump
in classExpansion_
- Parameters:
indent
- - the number of spaces for indentingalreadyDumped
- - a Set of objects already dumped (unused)- Returns:
- the formatted string dumping the class
-