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 a particular decoree.
|
void |
setDecorees(ISeqList... decorees)
Settor for the decorees
|
void |
setTargetToDecoree(int targetIdx)
Used to explicitly set the target (active) decoree if needed.
|
java.lang.String |
toString()
Borrows the _toStringAlgo from NESeqList to perform a toString conversion.
|
private ISeqList[] decorees
private int targetIdx
public ToggleDecoratorSeqList(ISeqList... decorees)
decorees - vararg list of ISeqList decoreespublic ToggleDecoratorSeqList()
public void setDecorees(ISeqList... decorees)
decorees - vararg list of ISeqLists to decoratepublic void setDecoree(int idx,
ISeqList decoree)
idx - The index of the decoree to replacedecoree - 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)
public java.lang.String toString()
toString in class java.lang.Object