Package EDU.purdue.jtb.parser
Class Choice
- java.lang.Object
-
- EDU.purdue.jtb.parser.Expansion_
-
- EDU.purdue.jtb.parser.Choice
-
public class Choice extends Expansion_
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 Constructor Description Choice()Standard constructorChoice(Expansion_ expansion)Choice(Token token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderdump(int indent, java.util.Set<java.lang.Object> alreadyDumped)java.util.List<Expansion_>getChoices()voidsetChoices(java.util.List<Expansion_> ch)-
Methods inherited from class EDU.purdue.jtb.parser.Expansion_
dumpPrefix, toString
-
-
-
-
Constructor Detail
-
Choice
public Choice()
Standard constructor
-
Choice
public Choice(Expansion_ expansion)
- Parameters:
expansion- - theExpansion_
-
-
Method Detail
-
setChoices
public final void setChoices(java.util.List<Expansion_> ch)
- Parameters:
ch- - the choices to set
-
getChoices
public final java.util.List<Expansion_> getChoices()
- Returns:
- the choices
-
dump
public java.lang.StringBuilder dump(int indent, java.util.Set<java.lang.Object> alreadyDumped)- 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
-
-