Skip navigation links
A B C D E F G H I M N O P R S T V 

A

actionPerformed(ActionEvent) - Method in class ExprEvaluatorTest
Used to process help and exit buttons
actionPerformed(ActionEvent) - Method in class InfixEvalDemo
Implements the evaluate operations and the help button.
ArrayPureStack<E> - Class in <Unnamed>
Class: ArrayPureStack.
ArrayPureStack() - Constructor for class ArrayPureStack
Initializes this ArrayPureStack object to be empty, with an initial capacity of 10.
ArrayPureStack(ArrayPureStack<E>) - Constructor for class ArrayPureStack
Initializes this ArrayPureStack object to contain a shallow copy of another ArrayPureStack object.

B

BinaryNode<E> - Class in <Unnamed>
Basic node for a binary tree with element, left and right fields.
buildFromInfix(String) - Method in class ExprEvaluator
## Builds an expression tree given an infix string of tokens.
buildFromPostfix(String) - Method in class ExprEvaluator
## Builds an expression tree given a postfix string of tokens.
buildFromPrefix(String) - Method in class ExprEvaluator
## Builds an expression tree given a prefix string of tokens.
buildTree(String) - Method in class ExprEvaluator
Deprecated.
Starting with beta 4.5, buildFromInfix returns the tree and should be used instead of buildTree.

C

comparePrecedence(String, String) - Static method in class ExprEvaluator
Compares precedence of two operators.
CONSTANT - Static variable in class BinaryNode
The type is a constant
convertToRect(double, double) - Method in class ExprEvaluator
## Converts polar coordinates into rectangular coordinates.

D

debugMode(boolean) - Method in class ExprEvaluator
Sets the debug mode in buildFromInfix.
DELIMITERS - Variable in class ExprEvaluator
The allowed delimiters (operators).
displayStacks(boolean) - Method in class ExprEvaluator
Sets the display stack mode in buildFromInfix.
DOUBLE - Static variable in class BinaryNode
The type is a double
DoubleScanner - Class in <Unnamed>
Class: DoubleScanner.
DoubleScanner(String, String) - Constructor for class DoubleScanner
Constructs a new Scanner that produces tokens scanned from the specified string.
DoubleScanner(InputStream, String) - Constructor for class DoubleScanner
Constructs a new Scanner that produces tokens scanned from the specified input stream.
DoubleScanner(File, String) - Constructor for class DoubleScanner
Constructs a new DoubleScanner that produces tokens scanned from the specified file.

E

EasyFormat - Class in <Unnamed>
This class provides easy to use formatting methods.
EasyFormat() - Constructor for class EasyFormat
 
evaluate() - Method in class ExprEvaluator
## Returns the value of a binary expression tree previously created by one of the build methods using the current values of the variables.
evaluate(double, double, double) - Method in class ExprEvaluator
## Returns the value of a binary expression tree previously created by one of the build methods using the supplied values of t, x, and y and the current values of the other variables.
evaluate(double[]) - Method in class ExprEvaluator
## Returns the value of a binary expression tree previously created by one of the build methods using the supplied parameters.
evaluate(ExprTree) - Method in class ExprEvaluator
## Evaluates the specified tree using the current values for the variables 'a', 'b', ..., 'z'.
evaluate() - Method in class InfixEvalDemo
Evaluates the expression using one of the private methods txyEvaluate or allEvaluate.
ExprEvaluator - Class in <Unnamed>
Beta 6.0
ExprEvaluator() - Constructor for class ExprEvaluator
## Initializes an ExprEvaluator object with an empty expression tree.
ExprEvaluatorTest - Class in <Unnamed>
Test application program for ExprEvaluator.java.
ExprEvaluatorTest() - Constructor for class ExprEvaluatorTest
 
ExprTree - Class in <Unnamed>
Class: ExprTree.
ExprTree(BinaryNode<String>) - Constructor for class ExprTree
Constructor for ExprTree

F

focusGained(FocusEvent) - Method in class ExprEvaluatorTest
Used to select all the text whenever the JTextField gets the focus
focusGained(FocusEvent) - Method in class InfixEvalDemo
Used to select all the text whenever a JTextField gets the focus and let buttons respond to the "Enter" key.
focusLost(FocusEvent) - Method in class ExprEvaluatorTest
Required to implement FocusListener but does not do anything.
focusLost(FocusEvent) - Method in class InfixEvalDemo
Removes the keyboard focus (actually only needed for helpBtn).
format(double, int) - Static method in class EasyFormat
Returns a string with the double rounded to numOfDecimals decimal places.
format(double, int, int) - Static method in class EasyFormat
Returns a string of the specified length with the double rounded to numOfDecimals decimal places.
format(String, int) - Static method in class EasyFormat
Returns the String str right justified in a string of the specified length.
format(int, int) - Static method in class EasyFormat
Returns the int number right justified in a string of the specified length.
format(boolean, int) - Static method in class EasyFormat
Returns the boolean value right justified in a string of the specified length.
format(double, String) - Static method in class EasyFormat
Formats a double according to the supplied pattern.
FUNCTION - Static variable in class BinaryNode
The type is a function

G

getInputStr() - Method in class ExprEvaluator
## Returns the last input string processed by buildFromPrefix, buildFromInfix, or buildFromPostfix methods.
getReservedWords() - Method in class DoubleScanner
Returns the array of reserved words.
getT() - Method in class ExprEvaluator
## Gets the value of t.
getTokenDelimiters() - Method in class DoubleScanner
Returns the tokenDelimiters String.
getTree() - Method in class ExprTree
 
getUserFunction() - Method in class ExprEvaluator
## Returns the current user function as a string.
getValueOf(char) - Method in class ExprEvaluator
## Gets the value of the variable var where var is 'a', 'b', ..., or 'z'.
getValues() - Method in class ExprEvaluator
## Returns the array of 26 doubles corresponding to the the variables "a", "b", ..., or "z".
getWhiteSpace() - Method in class DoubleScanner
Returns the whiteSpace regular expression as a String.
getX() - Method in class ExprEvaluator
## Gets the value of x.
getY() - Method in class ExprEvaluator
## Gets the value of y.

H

hasNext() - Method in class DoubleScanner
Returns true if this scanner has another token in its input.
hasNextBoolean() - Method in class DoubleScanner
Returns true if the next token in this scanner's input can be interpreted as a boolean value using a case insensitive pattern created from the string "true|false".
hasNextChar() - Method in class DoubleScanner
Returns true if this scanner's has another token and it is a char.
hasNextDouble() - Method in class DoubleScanner
Returns true if this scanner's has another token and it is a double.
hasNextInt() - Method in class DoubleScanner
Returns true if this scanner's has another token and it is an integer.
hasNextReserved() - Method in class DoubleScanner
Returns true if this scanner's has another token and it is a reserved word in the array of reserved words.

I

InfixEvalDemo - Class in <Unnamed>
An applet which demonstrates the abilities of the buildFromInfix and evaluate methods in the ExprEvaluator package.
InfixEvalDemo() - Constructor for class InfixEvalDemo
 
infixHelp - Static variable in class ExprEvaluator
## infixHelp can be used in a help message that explains to the user what is allowed as input to the ExprEvaluator when infix expressions are used.
init() - Method in class InfixEvalDemo
Create a inputPnl, a panel used for getting input.
introHelp - Static variable in class ExprEvaluator
## introHelp can be used as the first part of a help message in applications using ExprEvaluator.
isDouble(String) - Static method in class ExprEvaluator
Determines if the string is an double.
isEmpty() - Method in class ArrayPureStack
Determines if this ArrayPureStack object has no elements.
isEmpty() - Method in interface PureStack
Determines if this PureStack object has no elements.
isFunction(String) - Static method in class ExprEvaluator
Returns a number >= 0 if the string s is a function name.
isOperator(String) - Method in class ExprEvaluator
Determines if the string is an operator.
itemStateChanged(ItemEvent) - Method in class InfixEvalDemo
Implements the actions of the check boxes.

M

main(String[]) - Static method in class ArrayPureStack
Test program for ArrayPureStack
main(String[]) - Static method in class EasyFormat
A simple test program.
main(String[]) - Static method in class ExprEvaluatorTest
Main test program.
main(String[]) - Static method in class TableExample1
Trivial main program that starts the application.
main(String[]) - Static method in class TableExample2
Trivial main program that starts the application.
main(String[]) - Static method in class TableExample3
Trivial main program that starts the application.
main(String[]) - Static method in class TableExample4
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample1
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample2
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample3
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample4
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample5
Trivial main program that starts the application.
main(String[]) - Static method in class TrivialExample6
Trivial main program that starts the application.

N

next() - Method in class DoubleScanner
Returns the next complete token from this scanner.
nextBoolean() - Method in class DoubleScanner
Scans the next token of the input into a boolean value ("true" or "false") and returns that value.
nextChar() - Method in class DoubleScanner
Scans the next token of the input as a char.
nextDouble() - Method in class DoubleScanner
Scans the next token of the input as an double.
nextInt() - Method in class DoubleScanner
Scans the next token of the input as an int.
nextReserved() - Method in class DoubleScanner
Scans the next token of the input as a reserved word as specified by a sorted array supplied by the setReservedWords method.
numFuncParams(String) - Static method in class ExprEvaluator
Returns the number of parameters if the string is a function name.

O

OPERATOR - Static variable in class BinaryNode
The type is an operator

P

peek() - Method in class ArrayPureStack
Returns the top element on this ArrayPureStack object.
peek() - Method in interface PureStack
Returns the top element on this PureStack object.
PI - Static variable in class ExprEvaluator
## The number PI = 3.14159...
pop() - Method in class ArrayPureStack
Removes the top element from this ArrayPureStack object.
pop() - Method in interface PureStack
Removes the top element from this PureStack object.
postfixHelp - Static variable in class ExprEvaluator
## postfixHelp can be used in a help message that explains to the user what is allowed as input to the ExprEvaluator when postfix expressions are used.
precedence(String) - Static method in class ExprEvaluator
Determines the precedence of an operator.
prefixHelp - Static variable in class ExprEvaluator
## prefixHelp can be used in a help message that explains to the user what is allowed as input to the ExprEvaluator when prefix expressions are used.
PUNCTUATION - Static variable in class DoubleScanner
A string containing all the punctuation characters on a standard English keyboard.
PureStack<E> - Interface in <Unnamed>
An interface for a PureStack, that is, a stack that only allows operations on the top of the stack.
push(E) - Method in class ArrayPureStack
Inserts a specified element on the top of this ArrayPureStack object.
push(E) - Method in interface PureStack
Inserts a specified element on the top of this PureStack object.

R

roundTo(double, int) - Static method in class EasyFormat
Rounds x to num decimal places.
roundTo(double, double) - Static method in class ExprEvaluator
## roundTo(x, num) rounds x to num decimal places where num less than 0 is permitted.

S

setReservedWords(String[]) - Method in class DoubleScanner
Set the reserved list for hasNextReservedWord and nextReservedWord.
setT(double) - Method in class ExprEvaluator
## Sets the value of t.
setTokenDelimiters(String) - Method in class DoubleScanner
Sets a new string that contains the characters that are treated as both tokens and delimiters.
setValueOf(char, double) - Method in class ExprEvaluator
## Sets the value of the specified variable ('a', 'b', ..., or 'z') to the specified value.
setValues(double[]) - Method in class ExprEvaluator
## Sets the value of all 26 variables.
setWhiteSpace(String) - Method in class DoubleScanner
Sets string that acts as a regular expression for a white space .
setX(double) - Method in class ExprEvaluator
## Sets the value of x.
setY(double) - Method in class ExprEvaluator
## Sets the value of y.
size() - Method in class ArrayPureStack
Determines the number of elements in this ArrayPureStack object.
size() - Method in interface PureStack
Determines the number of elements in this PureStack object.

T

TableExample1 - Class in <Unnamed>
Class: TableExample1.
TableExample1() - Constructor for class TableExample1
Constructor for TableExample1.
TableExample2 - Class in <Unnamed>
Class: TableExample2.
TableExample2() - Constructor for class TableExample2
Constructor for TableExample2.
TableExample3 - Class in <Unnamed>
Class: TableExample3.
TableExample3() - Constructor for class TableExample3
Constructor for TableExample3.
TableExample4 - Class in <Unnamed>
Class: TableExample4.
TableExample4() - Constructor for class TableExample4
Constructor for TableExample4.
toInfix() - Method in class ExprEvaluator
## Creates a fully parenthesized infix expression String.
toPostfix() - Method in class ExprEvaluator
## Creates a postfix expression from the expression tree.
toPrefix() - Method in class ExprEvaluator
## Creates a prefix expression from the expression tree.
toString() - Method in class ArrayPureStack
Returns a string representing the stack
toString() - Method in class BinaryNode
Returns a String with the data as the value of the binary node
toString() - Method in class ExprEvaluator
Output the tree structure -- used in testing/debugging.
TrivialExample - Class in <Unnamed>
 
TrivialExample() - Constructor for class TrivialExample
Constructor for TrivialExample.
TrivialExample1 - Class in <Unnamed>
Class: TrivialExample1.
TrivialExample1() - Constructor for class TrivialExample1
Constructor for TrivialExample1.
TrivialExample2 - Class in <Unnamed>
Class: TrivialExample2.
TrivialExample2() - Constructor for class TrivialExample2
Constructor for TrivialExample2.
TrivialExample3 - Class in <Unnamed>
Class: TrivialExample3.
TrivialExample3() - Constructor for class TrivialExample3
Constructor for TrivialExample3.
TrivialExample4 - Class in <Unnamed>
Class: TrivialExample4.
TrivialExample4() - Constructor for class TrivialExample4
Constructor for TrivialExample4.
TrivialExample5 - Class in <Unnamed>
Class: TrivialExample5.
TrivialExample5() - Constructor for class TrivialExample5
Constructor for TrivialExample5.
TrivialExample6 - Class in <Unnamed>
Class: TrivialExample6.
TrivialExample6() - Constructor for class TrivialExample6
Constructor for TrivialExample6.

V

varHelp - Static variable in class ExprEvaluator
## varHelp can be used as the middle part of a help message in those situations where all 26 variables can be used.
VARIABLE - Static variable in class BinaryNode
The type is a variable
variables - Static variable in class ExprEvaluator
A String holding the 26 variables "a" to "z" allowed in Expression tree and 10 parameters allowed in the user function.
A B C D E F G H I M N O P R S T V 
Skip navigation links