|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprovided.music.NESeqList
public class NESeqList
A non-empty ("cons") sequence list.
Field Summary | |
---|---|
private IPhrase |
_first
The "first" of the list |
private ISeqList |
_rest
The "rest" of the list |
private static IPhraseVisitor |
_toStringAlgo
toString algo for rest, the recursive helper function of the ToString algo. |
Constructor Summary | |
---|---|
NESeqList(IPhrase first,
ISeqList rest)
Cons an IPhrase to a Sequence List. |
Method Summary | |
---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Calls the "NESeqList" case of the visitor. |
IPhrase |
getFirst()
Accessor method for the first element |
ISeqList |
getRest()
Accessor method for the rest of the lsit |
static void |
setToStringAlgo(IPhraseVisitor stringAlgo)
Setter for the _toStringAlgo helper. |
java.lang.String |
toString()
Run a visitor over the list to convert it to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private IPhrase _first
private ISeqList _rest
private static IPhraseVisitor _toStringAlgo
Constructor Detail |
---|
public NESeqList(IPhrase first, ISeqList rest)
Method Detail |
---|
public IPhrase getFirst()
public ISeqList getRest()
public java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
execute
in interface IPhrase
algo
- The visitor that is being usedparams
- vararg input parameters for the visitor.
public static void setToStringAlgo(IPhraseVisitor stringAlgo)
stringAlgo
- The helper algo to use.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |