A C D E F G H I L M N P R S T

A

add(Object, Object) - Static method in class polya.Arith
 
analysis(Object) - Static method in class polya.Polylist
analysis produces a string analyzing objects, especially Polylists
append(Polylist) - Method in class polya.Polylist
append(M) returns a Polylist consisting of the elements of this followed by those of M.
apply(Object) - Method in interface polya.Function1
 
apply(Object, Object) - Method in interface polya.Function2
 
Arith - class polya.Arith.
 
Arith() - Constructor for class polya.Arith
 
array() - Method in class polya.Polylist
array() returns an array of elements in list

C

cons(Object) - Method in class polya.Polylist
cons returns a new Polylist given a First and this as a Rest
cons(Object, Polylist) - Static method in class polya.Polylist
static cons returns a new Polylist given a First and a Rest.
cons(Object, Seed) - Static method in class polya.Polylist
This variant of cons takes a Seed instead of a Polylist as rest, so the list can be grown incrementally.
coprefix(long) - Method in class polya.Polylist
coprefix creates the Polylist with all but the length-n prefix of a Polylist

D

divide(Object, Object) - Static method in class polya.Arith
 

E

elements() - Method in class polya.Polylist
elements() returns a PolylistEnum object, which implements the interface java.util.Enumeration.
ensureGrown() - Method in class polya.Incremental
 
eof - Static variable in class polya.Tokenizer
 
EOF - class polya.EOF.
EOF represents an end-of-file
EOF() - Constructor for class polya.EOF
 
eofException - exception polya.eofException.
eofException is thrown when there is an end-of-file for Tokenizer
eofException() - Constructor for class polya.eofException
 
equal(Object, Object) - Static method in class polya.Arith
 
equals(Object) - Method in class polya.Polylist
equals(M) tells whether this Polylist is equal to some other Object
equals(Polylist, Polylist) - Static method in class polya.Polylist
equals(L, M) tells whether Polylists L and M are equal
exceptionHandler(Exception) - Method in class polya.Tokenizer
exceptionHandler can be over-ridden to handle IO exceptions
explode(String) - Static method in class polya.Polylist
explode(String S) converts a string into a Polylist of Character

F

fifth() - Method in class polya.Polylist
fifth selects the fifth element of a Polylist.
first() - Method in class polya.Incremental
 
first() - Method in class polya.Polylist
first() returns the first element of a non-empty Polylist.
first(Polylist) - Static method in class polya.Polylist
first(L) returns the first element of its argument.
fourth() - Method in class polya.Polylist
fourth selects the fourth element of a Polylist.
Function1 - interface polya.Function1.
Function1 is an interface defining the function argument to map
Function2 - interface polya.Function2.
Function2 is an interface defining a 2-argument function

G

getList() - Method in class polya.Incremental
 
getSkippingWhiteSpace() - Method in class polya.Tokenizer
 
greaterThan(Object, Object) - Static method in class polya.Arith
 
greaterThanOrEqual(Object, Object) - Static method in class polya.Arith
 
grow() - Method in class polya.Growable
 
Growable - class polya.Growable.
 
Growable() - Constructor for class polya.Growable
 
grown() - Method in class polya.Incremental
 

H

hasMoreElements() - Method in class polya.PolylistEnum
hasMoreElements() indicates whether there are more elements left in the enumeration.

I

implode() - Method in class polya.Polylist
implode() creates a String from a Polylist of items
Incremental - class polya.Incremental.
 
Incremental(Growable) - Constructor for class polya.Incremental
 
isEmpty() - Method in class polya.Incremental
 
isEmpty() - Method in class polya.Polylist
isEmpty() tells whether the Polylist is empty.

L

length() - Method in class polya.Polylist
 
list() - Static method in class polya.Polylist
list(A, B, C, ...) returns a list made of specific elements.
list(Object) - Static method in class polya.Polylist
 
list(Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) - Static method in class polya.Polylist
 
lval - Variable in class polya.Tokenizer
 

M

main(String[]) - Static method in class polya.Polylist
test program for Polylists etc.
main(String[]) - Static method in class polya.Tokenizer
Test method: loops through input, printing out each type of token.
map(Function1) - Method in class polya.Polylist
map maps an object of class Function1 over a Polylist returning a Polylist
member(Object) - Method in class polya.Polylist
member(A, L) tells whether A is a member of this
mod(Object, Object) - Static method in class polya.Arith
 
multiply(Object, Object) - Static method in class polya.Arith
 

N

nextElement() - Method in class polya.PolylistEnum
nextElement returns the next element in the enumeration.
nextSexp() - Method in class polya.Tokenizer
get next S expression from input stream returns an object of class EOF on end-of-file
nextToken() - Method in class polya.Tokenizer
get token, indicating TT_LONG, TT_NUMBER, TT_WORD, or TT_EOF
nil - Static variable in class polya.Polylist
nil is the empty-list constant
nonEmpty() - Method in class polya.Incremental
 
nonEmpty() - Method in class polya.Polylist
nonEmpty() tells whether the Polylist is non-empty.
nth(long) - Method in class polya.Polylist
nth selects Polylist item by index (0, 1, 2, ...).

P

Polylist - class polya.Polylist.
Polylist is the basic unit for constructing an open linked list of Objects.
Polylist() - Constructor for class polya.Polylist
construct empty Polylist
PolylistEnum - class polya.PolylistEnum.
PolylistEnum is an enumeration class for the class Polylist.
PolylistEnum(Polylist) - Constructor for class polya.PolylistEnum
PolylistEnum constructs a PolylistEnum from a Polylist.
PolylistFromArray(Object[]) - Static method in class polya.Polylist
PolylistFromArray makes a list out of an array of objects
PolylistFromEnum(Enumeration) - Static method in class polya.Polylist
PolylistFromEnum makes a Polylist out of any Enumeration.
prefix(long) - Method in class polya.Polylist
prefix creates the length-n prefix of a Polylist.

R

range(long, long) - Static method in class polya.Polylist
range(M, N) returns a Polylist of the form (M M+1 ....
range(long, long, long) - Static method in class polya.Polylist
range(M, N, S) returns a Polylist of the form (M M+S ....
reduce(Function2, Object) - Method in class polya.Polylist
reduce reduces a Polylist by a Function2 object, with unit
rest() - Method in class polya.Incremental
 
rest() - Method in class polya.Polylist
rest() returns the rest of a non-empty Polylist.
rest(Polylist) - Static method in class polya.Polylist
rest(L) returns the rest of its argument.
reverse() - Method in class polya.Polylist
reverse(L) returns the reverse of this

S

second() - Method in class polya.Polylist
second selects the second element of a Polylist.
setFirst(Object) - Method in class polya.Polylist
setFirst() sets the first of a list to an object
sixth() - Method in class polya.Polylist
sixth selects the sixth element of a Polylist.
subtract(Object, Object) - Static method in class polya.Arith
 

T

third() - Method in class polya.Polylist
third selects the third element of a Polylist.
Tokenizer - class polya.Tokenizer.
Tokenizer provides a tokenizer of the package polya.
Tokenizer(InputStream) - Constructor for class polya.Tokenizer
construct tokenizer from input stream
Tokenizer(Reader) - Constructor for class polya.Tokenizer
 
toString() - Method in class polya.Incremental
 
toString() - Method in class polya.Polylist
toString() converts Polylist to string, e.g.
TT_LONG - Static variable in class polya.Tokenizer
 

A C D E F G H I L M N P R S T