Index of all Fields and Methods
All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

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
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(). Constructor for class polya.EOF
eofException(). Constructor for class polya.eofException
equal(Object, Object). Static method in class polya.Arith
equals(Polylist). Method in class polya.Polylist
equals(M) tells whether this Polylist is equal to some other
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() returns the first element of a non-empty Polylist.
first(). Method in class polya.polycell
first() returns the first element of a NonEmptyList.
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.

G

getList(). Method in class polya.Incremental
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(). 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(Growable). Constructor for class polya.Incremental
isEmpty(). Method in class polya.Incremental
isEmpty() tells whether the Polylist is empty.
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

nextAtom(). Method in class polya.Tokenizer
get next token and try to interpret as an atom
nextDouble(). Method in class polya.Tokenizer
get next token and try to interpret as double
nextElement(). Method in class polya.PolylistEnum
nextElement returns the next element in the enumeration.
nextFullToken(). Method in class polya.Tokenizer
nextFullToken is like nextToken but ignores ends of line
nextLong(). Method in class polya.Tokenizer
get next token and try to interpret as long
nextRexp(). Method in class polya.Tokenizer
get next R expression from input stream
nextSexp(). Method in class polya.Tokenizer
get next S expression from input stream returns an object of class EOF on end-of-file
nextString(). Method in class polya.Tokenizer
get next token and interpret as string
nextToken(). Method in class polya.Tokenizer
get token, indicating TT_LONG, TT_NUMBER, TT_WORD, TT_EOL, or TT_EOF
nil. Static variable in class polya.Polylist
nil is the empty-list constant
nonEmpty(). Method in class polya.Incremental
nonEmpty() tells whether the Polylist is non-empty.
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

polycell(Object, Object). Constructor for class polya.polycell
polycell is the constructor for the cell of a Polyist, given a First and a Rest.
Polylist(). Constructor for class polya.Polylist
construct empty 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 ....
rest(). Method in class polya.Incremental
rest() returns the rest of a non-empty Polylist.
rest(). Method in class polya.polycell
rest() returns the rest of a NonEmptyList.
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.polycell
setFirst() sets the first element of a NonEmptyList.
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(InputStream). Constructor for class polya.Tokenizer
construct tokenizer from input stream
toString(). Method in class polya.Incremental
toString() converts Polylist to string, e.g.
toString(). Method in class polya.Polylist
toString() converts Polylist to string, e.g.
TT_LONG. Static variable in class polya.Tokenizer