Modifier and Type | Field and Description |
---|---|
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.
|
static java.lang.String |
ID
The ID value of this class
|
Constructor and Description |
---|
NESeqList(IPhrase first,
ISeqList rest)
Cons an IPhrase to a Sequence List.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(IPhraseVisitor algo,
java.lang.Object... params)
Calls the NESeqList.ID case of the visitor.
|
IPhrase |
getFirst()
Accessor method for the first element
|
ISeqList |
getRest()
Accessor method for the rest of the lsit
|
(package private) static IPhraseVisitor |
getToStringAlgo()
Getter for the _toStringAlgo helper.
|
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.
|
public static final java.lang.String ID
private IPhrase _first
private ISeqList _rest
private static IPhraseVisitor _toStringAlgo
public IPhrase getFirst()
public ISeqList getRest()
public java.lang.Object execute(IPhraseVisitor algo, java.lang.Object... params)
public static void setToStringAlgo(IPhraseVisitor stringAlgo)
stringAlgo
- The helper algo to use.static IPhraseVisitor getToStringAlgo()
public java.lang.String toString()
toString
in class java.lang.Object