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 Poly.Arith
analysis(Object). Static method in class Poly.List
analysis produces a string analyzing objects, especially Lists
append(List, List). Static method in class Poly.List
append(L, M) returns a List consisting of the elements of L followed by those of M.
arg. Variable in class Poly.argumentTypeException
argumentTypeException(Object, String). Constructor for class Poly.argumentTypeException
Arith(). Constructor for class Poly.Arith
array(). Method in class Poly.List
array() returns an array of elements in list

C

cause. Variable in class Poly.EmptyListException
classString. Variable in class Poly.argumentTypeException
cons(Object, List). Static method in class Poly.List
cons returns a new List given a First and a Rest.
cons(Object, Seed). Static method in class Poly.List
This variant of cons takes a Seed instead of a List as rest, so the list can be grown incrementally.
coprefix(long, List). Static method in class Poly.List
coprefix creates the list with all but the length-n prefix of a list

D

divide(Object, Object). Static method in class Poly.Arith

E

elements(). Method in class Poly.List
elements() returns a ListEnum object, which implements the interface java.util.Enumeration.
EmptyList(). Constructor for class Poly.EmptyList
EmptyList() constructs an empty list
EmptyListException(String). Constructor for class Poly.EmptyListException
ensureGrown(). Method in class Poly.Incremental
eof. Static variable in class Poly.Tokenizer
EOF(). Constructor for class Poly.EOF
eofException(). Constructor for class Poly.eofException
equal(Object, Object). Static method in class Poly.Arith
equals(List). Method in class Poly.List
equals(M) tells whether this List is equal to some other
equals(List, List). Static method in class Poly.List
equals(L, M) tells whether Lists L and M are equal
exceptionHandler(Exception). Method in class Poly.Tokenizer
exceptionHandler can be over-ridden to handle IO exceptions

F

fifth(). Method in class Poly.List
fifth selects the fifth element of a List.
first(). Method in class Poly.EmptyList
first() returns the first element of a non-empty List.
first(). Method in class Poly.Incremental
first() returns the first element of a non-empty List.
first(). Method in class Poly.List
first() returns the first element of a non-empty List.
first(). Method in class Poly.NonEmptyList
first() returns the first element of a NonEmptyList.
first(List). Static method in class Poly.List
first(L) returns the first element of its argument.
fourth(). Method in class Poly.List
fourth selects the fourth element of a List.

G

getList(). Method in class Poly.Incremental
getNonEmpty(). Method in class Poly.EmptyList
getNonEmpty() gets a NonEmptyList from a List
getNonEmpty(). Method in class Poly.Incremental
getNonEmpty() gets a NonEmptyList from a List
getNonEmpty(). Method in class Poly.List
getNonEmpty() gets a NonEmptyList from a List
getNonEmpty(). Method in class Poly.NonEmptyList
getNonEmpty() returns this list.
greaterThan(Object, Object). Static method in class Poly.Arith
greaterThanOrEqual(Object, Object). Static method in class Poly.Arith
grow(). Method in class Poly.Growable
Growable(). Constructor for class Poly.Growable
grown(). Method in class Poly.Incremental

H

hasMoreElements(). Method in class Poly.ListEnum
hasMoreElements() indicates whether there are more elements left in the enumeration.

I

Incremental(Growable). Constructor for class Poly.Incremental
isEmpty(). Method in class Poly.EmptyList
isEmpty() tells whether the List is empty.
isEmpty(). Method in class Poly.Incremental
isEmpty() tells whether the List is empty.
isEmpty(). Method in class Poly.List
isEmpty() tells whether the List is empty.
isEmpty(). Method in class Poly.NonEmptyList
isEmpty() tells whether the List is empty.

L

length(). Method in class Poly.List
list(). Static method in class Poly.List
list(A, B, C, ...) returns a list made of specific elements.
List(). Constructor for class Poly.List
list(Object). Static method in class Poly.List
list(Object, Object). Static method in class Poly.List
list(Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
list(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object). Static method in class Poly.List
ListEnum(List). Constructor for class Poly.ListEnum
ListEnum constructs a ListEnum from a List.
ListFromEnum(Enumeration). Static method in class Poly.List
ListFromEnum makes a List out of any Enumeration.
lval. Variable in class Poly.Tokenizer

M

main(String[]). Static method in class Poly.List
test program for lists etc.
main(String[]). Static method in class Poly.Tokenizer
Test method: loops through input, printing out each type of token.
member(Object, List). Static method in class Poly.List
member(A, L) tells whether A is a member of L
mod(Object, Object). Static method in class Poly.Arith
multiply(Object, Object). Static method in class Poly.Arith

N

nats. Static variable in class Poly.List
nextAtom(). Method in class Poly.Tokenizer
get next token and try to interpret as an atom
nextDouble(). Method in class Poly.Tokenizer
get next token and try to interpret as double
nextElement(). Method in class Poly.ListEnum
nextElement returns the next element in the enumeration.
nextFullToken(). Method in class Poly.Tokenizer
nextFullToken is like nextToken but ignores ends of line
nextLong(). Method in class Poly.Tokenizer
get next token and try to interpret as long
nextRexp(). Method in class Poly.Tokenizer
get next R expression from input stream
nextSexp(). Method in class Poly.Tokenizer
get next S expression from input stream returns an object of class EOF on end-of-file
nextString(). Method in class Poly.Tokenizer
get next token and interpret as string
nextToken(). Method in class Poly.Tokenizer
get token, indicating TT_LONG, TT_NUMBER, TT_WORD, TT_EOL, or TT_EOF
nil. Static variable in class Poly.List
nil is the empty-list constant
nonEmpty(). Method in class Poly.EmptyList
nonEmpty() tells whether the List is non-empty
nonEmpty(). Method in class Poly.Incremental
nonEmpty() tells whether the List is non-empty.
nonEmpty(). Method in class Poly.List
nonEmpty() tells whether the List is non-empty.
nonEmpty(). Method in class Poly.NonEmptyList
nonEmpty() tells whether the List is non-empty.
NonEmptyList(Object, List). Constructor for class Poly.NonEmptyList
NonEmptyList is the constructor for a List, given a First and a Rest.
NonEmptyList(Object, Seed). Constructor for class Poly.NonEmptyList
nth(long). Method in class Poly.List
nth selects List item by index (0, 1, 2, ...).

P

prefix(long, List). Static method in class Poly.List
prefix creates the length-n prefix of a List.
primes. Static variable in class Poly.List

R

range(long, long). Static method in class Poly.List
range(M, N) returns a List of the form (M M+1 ....
range(long, long, long). Static method in class Poly.List
range(M, N, S) returns a List of the form (M M+S ....
rest(). Method in class Poly.EmptyList
rest() returns the rest of a non-empty List.
rest(). Method in class Poly.Incremental
rest() returns the rest of a non-empty List.
rest(). Method in class Poly.List
rest() returns the rest of a non-empty List.
rest(). Method in class Poly.NonEmptyList
rest() returns the rest of a NonEmptyList.
rest(List). Static method in class Poly.List
rest(L) returns the rest of its argument.
reverse(List). Static method in class Poly.List
reverse(L) returns the reverse of List L.

S

second(). Method in class Poly.List
second selects the second element of a List.
setFirst(Object). Method in class Poly.NonEmptyList
setFirst() sets the first element of a NonEmptyList.
sixth(). Method in class Poly.List
sixth selects the sixth element of a List.
subtract(Object, Object). Static method in class Poly.Arith

T

third(). Method in class Poly.List
third selects the third element of a List.
Tokenizer(InputStream). Constructor for class Poly.Tokenizer
construct tokenizer from input stream
toString(). Method in class Poly.EmptyList
toString converts the list to a string using S expression formatting
toString(). Method in class Poly.Incremental
toString converts the list to a string using S expression formatting
toString(). Method in class Poly.List
toString converts the list to a string using S expression formatting
toString(). Method in class Poly.NonEmptyList
toString() converts List to string, e.g.
TT_LONG. Static variable in class Poly.Tokenizer