| 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.
|
<T> Pair<T> |
Visitor.map(Pair<? extends Node> list)
Map this visitor over the specified list.
|
<T extends Node> |
Visitor.mapInPlace(Pair<T> list)
Map this visitor over the specified list while also updating the
list.
|
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.
|
void |
Visitor.iterate(Pair<? extends Node> list)
Iterate this visitor over the specified list.
|
<T> Pair<T> |
Visitor.map(Pair<? extends Node> list)
Map this visitor over the specified list.
|
<T extends Node> |
Visitor.mapInPlace(Pair<T> list)
Map this visitor over the specified list while also updating the
list.
|
| 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.
|
static <T,U> Pair<U> |
Function.map(Function.F1<U,? super T> function,
Pair<T> list)
Map the specified function over the specified list.
|
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.
|
static <T,U> U |
Function.foldl(Function.F2<U,? super T,U> function,
U seed,
Pair<T> list)
Fold the specified list with the specified function.
|
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.
|
static <T,U> void |
Function.iterate(Function.F1<U,? super T> function,
Pair<T> list)
Iterate the specified function over the specified list.
|
static <T,U> Pair<U> |
Function.map(Function.F1<U,? super T> function,
Pair<T> list)
Map the specified function over the specified list.
|
static <T> boolean |
Function.matchesAll(Function.F1<java.lang.Boolean,? super T> pred,
Pair<T> list)
Determine whether the specified list contains only elements
matching the specified predicate.
|
static <T> boolean |
Function.matchesOne(Function.F1<java.lang.Boolean,? super T> pred,
Pair<T> list)
Determine whether the specified list contains an element matching
the specified predicate.
|
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 © 2014. All Rights Reserved.