| Package | Description |
|---|---|
| xtc.parser | |
| xtc.tree | |
| xtc.util |
| Modifier and Type | Method and Description |
|---|---|
protected static <T> Pair<T> |
ParserBase.cast(Pair<?> p)
Cast the list starting at the specified pair.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
ParserBase.apply(Pair<Action<T>> actions,
T seed)
Apply the specified actions on the specified seed.
|
protected <T extends Locatable> |
ParserBase.apply(Pair<Action<T>> actions,
T seed,
int index)
Apply the specified actions on the specified seed while also
setting the results' locations.
|
protected static <T> Pair<T> |
ParserBase.cast(Pair<?> p)
Cast the list starting at the specified pair.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Pair<T> |
Node.getList(int index)
Get the list child at the specified index.
|
static Pair<Node> |
Node.toList(java.lang.Object o)
Convert the specified object to a list of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.addAll(int index,
Pair<?> p)
Add all values in the list starting with the specified pair as
children at the specified index.
|
Node |
Node.addAll(Pair<?> p)
Add all values in the list starting with the specified pair as
children.
|
static GNode |
GNode.createFromPair(java.lang.String name,
java.lang.Object base,
Pair rest)
Create a new generic node with the specified children.
|
static GNode |
GNode.createFromPair(java.lang.String name,
Pair p)
Create a new generic node with the list's nodes as its children.
|
| Modifier and Type | Field and Description |
|---|---|
static Pair |
Pair.EMPTY
The pair representing the empty list.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<T> |
Pair.add(T element)
Add the specified element to the list starting at this pair.
|
Pair<T> |
Pair.append(Pair<T> tail)
Set the tail of a copy of this list's last pair to the specified
value.
|
Pair<T> |
Pair.combine(Pair<T> list)
Combine the elements on the list starting at this pair with the
elements on the list starting at the specified pair.
|
static <T> Pair<T> |
Pair.empty()
Get the canoncial empty pair.
|
Pair<T> |
Pair.intersect(Pair<T> list)
Intersect the elements on the list starting at this pair with the
elements on the list starting at the specified pair.
|
Pair<T> |
Pair.reverse()
Reverse the list starting at this pair in place.
|
Pair<T> |
Pair.setTail(Pair<T> tail)
Set the tail.
|
Pair<T> |
Pair.subtract(Pair<T> list)
Subtract the elements on the list starting at the specified list
from the elements on the list starting at this pair.
|
Pair<T> |
Pair.tail()
Get the tail.
|
| Modifier and Type | Method and Description |
|---|---|
Pair<T> |
Pair.append(Pair<T> tail)
Set the tail of a copy of this list's last pair to the specified
value.
|
Pair<T> |
Pair.combine(Pair<T> list)
Combine the elements on the list starting at this pair with the
elements on the list starting at the specified pair.
|
Pair<T> |
Pair.intersect(Pair<T> list)
Intersect the elements on the list starting at this pair with the
elements on the list starting at the specified pair.
|
void |
Pair.setLastTail(Pair<T> tail)
Set the tail of this list's last pair to the specified value.
|
Pair<T> |
Pair.setTail(Pair<T> tail)
Set the tail.
|
Pair<T> |
Pair.subtract(Pair<T> list)
Subtract the elements on the list starting at the specified list
from the elements on the list starting at this pair.
|
| Constructor and Description |
|---|
Pair(T head,
Pair<T> tail)
Create a new pair.
|
Copyright © 2012. All Rights Reserved.