public class ToggleDecoratorSeqList extends java.lang.Object implements ISeqList
| Modifier and Type | Field and Description |
|---|---|
private ISeqList[] |
decorees
The decoree/target ISeqList list.
|
private int |
targetIdx
The index of the current target decoree
|
| Constructor and Description |
|---|
ToggleDecoratorSeqList()
Constructor that is used when the decoree is not known at construction time.
|
ToggleDecoratorSeqList(ISeqList... decorees)
Constructor used to set the decorees to a known values at construction time.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Simply delegates the call to the decoree.
|
ISeqList |
getTargetDecoree()
Accessor for the current target (active) decoree
|
void |
setDecoree(int idx,
ISeqList decoree)
Setter methods used to set the decoree.
|
void |
setDecorees(ISeqList... decorees) |
void |
setTargetToDecoree(int targetIdx)
Used to explicitly set the target (active) decoree if needed.
|
private ISeqList[] decorees
private int targetIdx
public ToggleDecoratorSeqList(ISeqList... decorees)
decorees - vararg list of ISeqList decoreespublic ToggleDecoratorSeqList()
public void setDecorees(ISeqList... decorees)
public void setDecoree(int idx,
ISeqList decoree)
decoree - The new decoree ISeqList.public void setTargetToDecoree(int targetIdx)
targetIdx - the index of the target decoreepublic ISeqList getTargetDecoree()
public java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)