Package org.staccato
Class Instruction.Choice
- java.lang.Object
-
- org.staccato.Instruction.Choice
-
- All Implemented Interfaces:
Instruction
- Enclosing interface:
- Instruction
public static class Instruction.Choice extends java.lang.Object implements Instruction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.staccato.Instruction
Instruction.Choice, Instruction.LastIsValue, Instruction.LastIsValueToSplit, Instruction.Splitter, Instruction.Switch
-
-
Constructor Summary
Constructors Constructor Description Choice(int... choices)
Choice(java.lang.String... choices)
Choice(PatternProducer... choices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getChoices()
java.lang.String
onInstructionReceived(java.lang.String[] instructions)
-
-
-
Constructor Detail
-
Choice
public Choice(java.lang.String... choices)
-
Choice
public Choice(int... choices)
-
Choice
public Choice(PatternProducer... choices)
-
-
Method Detail
-
getChoices
public java.util.List<java.lang.String> getChoices()
-
onInstructionReceived
public java.lang.String onInstructionReceived(java.lang.String[] instructions)
- Specified by:
onInstructionReceived
in interfaceInstruction
-
-