A B C E G H I K M N P R S T

A

add(String, Token) - Method in class SymbolTable
Adds a string-value association to the table.

B

BooleanKind - Static variable in class Token
Token is a boolean.

C

contains(String) - Method in class SymbolTable
Checks for an entry associated with a particular string.

E

equals(Object) - Method in class Token
Returns true if this token has the same value as the other.

G

get() - Method in class Reader
Not yet implemented.
get(String) - Method in class SymbolTable
Gets a value associated with a string, from the symbol table.
getBoolean() - Method in class Token
Fetch boolean value of token, provided it's a boolean.
getNumber() - Method in class Token
Fetch numeric value of token, provided it's a number.
getProcedure() - Method in class Token
Fetch the list of tokens associated with a procedure token.
getSymbol() - Method in class Token
Fetch string value of token, provided it's a symbol.

H

hasNext() - Method in class Reader
Check for more tokens on input stream.

I

isBoolean() - Method in class Token
Returns true if and only if this token is a boolean.
isNumber() - Method in class Token
Returns true if and only if this token is a number.
isProcedure() - Method in class Token
Returns true if and only if this token is a procedure.
isSymbol() - Method in class Token
Returns true if and only if this token is a symbol.

K

kind() - Method in class Token
Return the kind of token.

M

main(String[]) - Static method in class Reader
A sample method that reads tokens from a Reader and prints their value to the console.
main(String[]) - Static method in class SymbolTable
An example method that makes use of a symbol table.

N

NumberKind - Static variable in class Token
Token is a number.
next() - Method in class Reader
If Reader.hasNext() returns the next token from the input stream.

P

ProcedureKind - Static variable in class Token
Token is a procedure.

R

Reader - class Reader.
A simple input stream that parses postscript files and generates a stream of Tokens.
Reader() - Constructor for class Reader
Constructs a Reader that reads from the default input stream.
Reader(List) - Constructor for class Reader
Constructs a Reader that reads tokens from a List.
Reader(Token) - Constructor for class Reader
Constructs a Reader that reads from a single Token.
reset() - Method in class Reader
If this is a list, resets the reader back to the beginning.

S

SymbolKind - Static variable in class Token
Token is a symbol.
SymbolTable - class SymbolTable.
A simple table of symbols for a postscript interpreter.
SymbolTable() - Constructor for class SymbolTable
Constructs an empty symbol table.

T

Token - class Token.
A class that implements Tokens that might be read from a stream of postscript commands.
Token(double) - Constructor for class Token
Construct a numeric token.
Token(boolean) - Constructor for class Token
Construct a boolean token
Token(String) - Constructor for class Token
Construct a symbol token
Token(List) - Constructor for class Token
Construct a procedure.
toString() - Method in class SymbolTable
Removes a value associated with the a string.
toString() - Method in class Token
Generates string representation of a token.

A B C E G H I K M N P R S T