Package EDU.purdue.jtb.parser
Class Choice
java.lang.Object
EDU.purdue.jtb.parser.Expansion_
EDU.purdue.jtb.parser.Choice
Describes expansions where one of many choices is taken (c1 | c2 | ...).
-
Nested Class Summary
Nested classes/interfaces inherited from class EDU.purdue.jtb.parser.Expansion_
Expansion_.EXP_TYPE
-
Field Summary
Fields inherited from class EDU.purdue.jtb.parser.Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List
<Expansion_> final void
setChoices
(List<Expansion_> ch) Methods inherited from class EDU.purdue.jtb.parser.Expansion_
dumpPrefix, toString
-
Constructor Details
-
Choice
public Choice()Standard constructor -
Choice
- Parameters:
token
- - theToken
-
Choice
- Parameters:
expansion
- - theExpansion_
-
-
Method Details
-
setChoices
- Parameters:
ch
- - the choices to set
-
getChoices
- Returns:
- the choices
-
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
-