A B C D E F G H I M O P Q R S T U V W

A

addExpression(BaseExpression) - Method in class com.abr.calculator.MasterExpression
Add an expression to the master list of parsed expressions.
AdditionExpression - Class in com.abr.calculator
AdditionExpression - Adds two values
AdditionExpression(MasterExpression, String) - Constructor for class com.abr.calculator.AdditionExpression
The expression should be in form: lvalue @ rvalue
analyzeChar(int, char) - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the character analysis portion of the parsing.
ArithmeticExpression - Class in com.abr.calculator
ArithmeticExpression - Base class for any type of arithmetic operation
ArithmeticExpression(MasterExpression, String, String) - Constructor for class com.abr.calculator.ArithmeticExpression
The expression should be in form: lvalue @ rvalue
AvgExpression - Class in com.abr.calculator
AvgExpression - AVG an expression
AvgExpression(MasterExpression, String) - Constructor for class com.abr.calculator.AvgExpression
 

B

BaseExpression - Class in com.abr.calculator
BaseExpression - Common base class for all expression objects.
BaseExpression(MasterExpression, String) - Constructor for class com.abr.calculator.BaseExpression
Pass the string expression used to create this object.

C

CalcUtil - Class in com.abr.calculator
CalcUtil - utility functions for the calc engine
CalcUtil() - Constructor for class com.abr.calculator.CalcUtil
 
clearWhiteSpace() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: This method simply trims opening/closing whitespace.
ColonExpression - Class in com.abr.calculator
A colon expression is the second in a set of two required expressions.
ColonExpression(MasterExpression, String) - Constructor for class com.abr.calculator.ColonExpression
The expression should be in form: lvalue @ rvalue
com.abr.calculator - package com.abr.calculator
 
CommaExpression - Class in com.abr.calculator
A comma expression is any two expressions separated by a comma.
CommaExpression(MasterExpression, String) - Constructor for class com.abr.calculator.CommaExpression
The expression should be in form: lvalue @ rvalue
ConstantExpression - Class in com.abr.calculator
ConstantExpression - Simply a constant value
ConstantExpression(MasterExpression, String) - Constructor for class com.abr.calculator.ConstantExpression
 
CountExpression - Class in com.abr.calculator
CountExpression - simply return count of all rows for a variable.
CountExpression(MasterExpression, String) - Constructor for class com.abr.calculator.CountExpression
 
createArithmeticExpression(String, String) - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to create a new type of arithmetic expression.
createConstantExpression() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of a constant expression.
createFunctionExpression() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of the name/expression to pass to the createFunctionExpression() method.
createFunctionExpression(String, String) - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the creation of a custom function expression (such as Sum or Avg).
createIndicators() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to create a new type of ParserIndicators object (e.g.
createParser(MasterExpression, IExpression) - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to return a new parser of your derived class' type.
createVariableExpression() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of a variable expression.

D

DivisionExpression - Class in com.abr.calculator
DivisionExpression - Divides two values
DivisionExpression(MasterExpression, String) - Constructor for class com.abr.calculator.DivisionExpression
The expression should be in form: lvalue @ rvalue
doDefineVar() - Method in class com.abr.calculator.Main
 
doListVars() - Method in class com.abr.calculator.Main
 
doPerfTest() - Method in class com.abr.calculator.Main
 
doShowParseTree() - Method in class com.abr.calculator.Main
 
doShowParseTree(IExpression, int) - Method in class com.abr.calculator.Main
 
doSolveVar() - Method in class com.abr.calculator.Main
 
doSolveVar(int, boolean) - Method in class com.abr.calculator.Main
 

E

ERROR_CIRCULAR - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_CONSTANT - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_DER_EXPR - Static variable in class com.abr.calculator.ExpressionError
Various error codes: ERROR_DER_EXPR - expression not in form = ERROR_INTERNAL - some internal error ERROR_CONSTANT - invalid numeric constant ERROR_MISSING_LVALUE - missing lvalue in arithmetic function ERROR_MISSING_RVALUE - missing rvalue in arithmetic function ERROR_PARSING_LVALUE - invalid lvalue in arithmetic function ERROR_PARSING_RVALUE - invalid lvalue in arithmetic function ERROR_NO_EXPR - missing an expression to run (runtime) ERROR_INVALID_ARITH - invalid arithmetic function specified ERROR_NO_VARIABLE - couldn't resolve variable name (runtime) ERROR_PARSING_GROUP - couldn't parse a parenthetical group ERROR_NO_FUNC_EXPR - no expression for function ERROR_FUNC_SYNTAX - syntax error for function ERROR_VAR_NAME - invalid character in variable name ERROR_CIRCULAR - circular expression (runtime) ERROR_FUNC_ARGS - invalid arguments to function (runtime) ERROR_USER - user-supplied error message
ERROR_FUNC_ARGS - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_FUNC_SYNTAX - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_INTERNAL - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_INVALID_ARITH - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_MISSING_LVALUE - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_MISSING_RVALUE - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_NO_EXPR - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_NO_FUNC_EXPR - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_NO_VARIABLE - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_PARSING_GROUP - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_PARSING_LVALUE - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_PARSING_RVALUE - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_TERNARY - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_USER - Static variable in class com.abr.calculator.ExpressionError
 
ERROR_VAR_NAME - Static variable in class com.abr.calculator.ExpressionError
 
ExponentExpression - Class in com.abr.calculator
ExponentExpression - Returns lvalue raised to power of rvalue
ExponentExpression(MasterExpression, String) - Constructor for class com.abr.calculator.ExponentExpression
The expression should be in form: lvalue @ rvalue
ExpressionError - Class in com.abr.calculator
ExpressionError - An error object for a given expression.
ExpressionError() - Constructor for class com.abr.calculator.ExpressionError
Empty ctor.

F

findExpression(String) - Method in class com.abr.calculator.Parser
UTILITY METHOD: Find an object (by name) in the passed MasterExpression
FunctionExpression - Class in com.abr.calculator
FunctionExpression - Base class for any type of function such as SUM, AVG, etc.
FunctionExpression(MasterExpression, String, String) - Constructor for class com.abr.calculator.FunctionExpression
 
FunctionExpressionWithArgs - Class in com.abr.calculator
Useful for any class that accepts more than one argument.
FunctionExpressionWithArgs(MasterExpression, String, String) - Constructor for class com.abr.calculator.FunctionExpressionWithArgs
 

G

getArgList() - Method in class com.abr.calculator.FunctionExpressionWithArgs
DERIVED CLASSES: Use this method to get the list of arguments for returning a value from getValueInternal.
getArgList(Vector, Vector) - Method in class com.abr.calculator.FunctionExpressionWithArgs
 
getEmbeddedExpressions() - Method in class com.abr.calculator.ArithmeticExpression
 
getEmbeddedExpressions() - Method in class com.abr.calculator.BaseExpression
 
getEmbeddedExpressions() - Method in interface com.abr.calculator.IExpression
Return list of all embedded expressions.
getEmbeddedExpressions() - Method in class com.abr.calculator.MasterExpression
 
getError() - Method in class com.abr.calculator.Parser
 
getErrorCode() - Method in class com.abr.calculator.ExpressionError
Extract the error code
getErrorOffset() - Method in class com.abr.calculator.ExpressionError
Extract the error offset.
getErrorText() - Method in class com.abr.calculator.ExpressionError
Extract the error text.
getErrorText(int) - Static method in class com.abr.calculator.ExpressionError
Given an error code, get the error string.
getExpression() - Method in class com.abr.calculator.BaseExpression
Get the string expression used to create this object.
getExpression() - Method in class com.abr.calculator.MasterExpression
Get the string expression for this object.
getExpressionBegin() - Method in class com.abr.calculator.ParserIndicators
 
getExpressionEnd() - Method in class com.abr.calculator.ParserIndicators
 
getExpressionID() - Method in class com.abr.calculator.BaseExpression
Gets the unique expression ID that identifies this object
getExprs() - Method in class com.abr.calculator.MasterExpression
Get the master list of parsed expressions from this object.
getFunctionName() - Method in class com.abr.calculator.FunctionExpression
 
getInvalidChars() - Method in class com.abr.calculator.VariableExpression
DERIVED CLASSES: Override this method to customize the set of invalid characters.
getLastCalculatedValue() - Method in class com.abr.calculator.QuestionMarkExpression
What was the last evaluated expression (always the rvalue for this expression)?
getLogicalValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.ArithmeticExpression
 
getLogicalValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.ConstantExpression
 
getLogicalValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.FunctionExpression
 
getLogicalValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.GroupingExpression
 
getLogicalValueCount(IDataSource, ExpressionError) - Method in interface com.abr.calculator.IExpression
Get the number of times that a caller must call this function to get all the possible data values.
getLogicalValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.MasterExpression
 
getLogicalValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.VariableExpression
 
getMaster() - Method in class com.abr.calculator.BaseExpression
Get the master expression specified for this expression.
getMaster() - Method in class com.abr.calculator.Parser
Getters
getMaxArgCount() - Method in class com.abr.calculator.FunctionExpressionWithArgs
DERIVED CLASSES: The maximum number of arguments for a function.
getMaxArgCount() - Method in class com.abr.calculator.MaxExpression
 
getMaxArgCount() - Method in class com.abr.calculator.MinExpression
 
getMinArgCount() - Method in class com.abr.calculator.FunctionExpressionWithArgs
DERIVED CLASSES: The minimum number of arguments for a function.
getName() - Method in class com.abr.calculator.BaseExpression
 
getName() - Method in interface com.abr.calculator.IExpression
The underlying name of this expression.
getName() - Method in class com.abr.calculator.MasterExpression
Get the name of this derived expression.
getNextGroup() - Method in class com.abr.calculator.Parser
This method sets group info for the current expression, by iterating over the expression and determining what the highest parentheses and/or operator is found.
getOperator() - Method in class com.abr.calculator.ArithmeticExpression
Get/Set the operator ('+', '-', etc.)
getOperatorCount() - Method in class com.abr.calculator.ParserIndicators
 
getOperatorOfs() - Method in class com.abr.calculator.ParserIndicators
 
getOperatorPrecedence(char) - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to add additional operators to the set of operators processed by this object.
getOperatorPrecedence() - Method in class com.abr.calculator.ParserIndicators
 
getOperators() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to add additional operators to the set of operators processed by this object.
getOperatorType() - Method in class com.abr.calculator.ParserIndicators
 
getOption() - Method in class com.abr.calculator.Main
 
getOwner() - Method in class com.abr.calculator.Parser
 
getParenthesesCount() - Method in class com.abr.calculator.ParserIndicators
 
getParenthesesCurCount() - Method in class com.abr.calculator.ParserIndicators
 
getParenthesesOfs() - Method in class com.abr.calculator.ParserIndicators
 
getString(InputStream, BufferedReader, String) - Static method in class com.abr.calculator.Main
 
getValue(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.ArithmeticExpression
 
getValue(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.ConstantExpression
 
getValue(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.FunctionExpression
 
getValue(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.GroupingExpression
 
getValue(IExpression, String, int, ExpressionError) - Method in interface com.abr.calculator.IDataSource
Satisfy a request for a variable.
getValue(int, IDataSource, ExpressionError) - Method in interface com.abr.calculator.IExpression
Get the value associated with this expression.
getValue(InputStream, BufferedReader, String) - Static method in class com.abr.calculator.Main
 
getValue(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.MasterExpression
 
getValue(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.VariableExpression
 
getValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.ArithmeticExpression
 
getValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.ConstantExpression
 
getValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.FunctionExpression
 
getValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.GroupingExpression
 
getValueCount(IExpression, String, ExpressionError) - Method in interface com.abr.calculator.IDataSource
Get number of elements for a named value.
getValueCount(IDataSource, ExpressionError) - Method in interface com.abr.calculator.IExpression
Get the number of values associated with an expression.
getValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.MasterExpression
 
getValueCount(IDataSource, ExpressionError) - Method in class com.abr.calculator.VariableExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.AdditionExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.ArithmeticExpression
DERIVED CLASSES: *Must* override this method to perform actual arithmetic operations.
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.AvgExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.ColonExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.CommaExpression
 
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.CountExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.DivisionExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.ExponentExpression
 
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.FunctionExpression
DERIVED CLASSES: *Must* override this method to return an actual value.
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.FunctionExpressionWithArgs
 
getValueInternal(int, Vector, IDataSource, ExpressionError) - Method in class com.abr.calculator.FunctionExpressionWithArgs
DERIVED CLASSES: You must override this method to process the actual arguments to your function, and provide a result.
getValueInternal(int, Vector, IDataSource, ExpressionError) - Method in class com.abr.calculator.MaxExpression
 
getValueInternal(int, Vector, IDataSource, ExpressionError) - Method in class com.abr.calculator.MinExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.ModulusExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.MultiplicationExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.QuestionMarkExpression
 
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.StddevExpression
 
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.StringExpression
 
getValueInternal(int, IDataSource, ExpressionError, double, double) - Method in class com.abr.calculator.SubtractionExpression
 
getValueInternal(int, IDataSource, ExpressionError) - Method in class com.abr.calculator.SumExpression
 
getVariableResolutionData() - Method in class com.abr.calculator.BaseExpression
 
getVariableResolutionData() - Method in interface com.abr.calculator.IExpression
All expressions must provide an object that allows callers to to help resolve a variable name at run-time.
getVariableResolutionData() - Method in class com.abr.calculator.MasterExpression
 
getVariables() - Method in class com.abr.calculator.ArithmeticExpression
 
getVariables() - Method in class com.abr.calculator.BaseExpression
 
getVariables(Vector) - Method in class com.abr.calculator.BaseExpression
 
getVariables() - Method in interface com.abr.calculator.IExpression
Return a list of IExpression objects that correspond to the variable expressions for this expression.
getVariables() - Method in class com.abr.calculator.MasterExpression
 
getVariables() - Method in class com.abr.calculator.VariableExpression
 
getVars() - Method in class com.abr.calculator.Main
 
GroupingExpression - Class in com.abr.calculator
GroupingExpression - Parentheses support
GroupingExpression(MasterExpression, String) - Constructor for class com.abr.calculator.GroupingExpression
The expression should *not* contain any parens!

H

hasValidGroup() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the "group" analysis.

I

IDataSource - Interface in com.abr.calculator
IDataSource - defines how a variable expression can get the value for a variable (at run time)
IExpression - Interface in com.abr.calculator
IExpression - base type of any expression to evaluate.
isValidFunctionName(String) - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to add new functions to the parsing of a function expression.
IVariableResolver - Interface in com.abr.calculator
Defines an object that knows how to resolve a variable name for the calculator.

M

m_bArgsError - Variable in class com.abr.calculator.FunctionExpressionWithArgs
 
m_bSettingLvalue - Variable in class com.abr.calculator.ArithmeticExpression
 
m_bWasTrue - Variable in class com.abr.calculator.QuestionMarkExpression
 
m_dLastCalculatedValue - Variable in class com.abr.calculator.QuestionMarkExpression
 
m_embeddedExpr - Variable in class com.abr.calculator.BaseExpression
 
m_Indicators - Variable in class com.abr.calculator.Parser
 
m_is - Variable in class com.abr.calculator.Main
 
m_lvalue - Variable in class com.abr.calculator.ArithmeticExpression
 
m_master - Variable in class com.abr.calculator.BaseExpression
 
m_nExpressionNumber - Variable in class com.abr.calculator.BaseExpression
 
m_nGlobalExpressionNumber - Static variable in class com.abr.calculator.BaseExpression
 
m_objVariableResolutionData - Variable in class com.abr.calculator.BaseExpression
 
m_r - Variable in class com.abr.calculator.Main
 
m_rvalue - Variable in class com.abr.calculator.ArithmeticExpression
 
m_strExpression - Variable in class com.abr.calculator.BaseExpression
 
m_strLastReplacement - Variable in class com.abr.calculator.Parser
 
m_strOperator - Variable in class com.abr.calculator.ArithmeticExpression
 
m_vArgs - Variable in class com.abr.calculator.FunctionExpressionWithArgs
 
Main - Class in com.abr.calculator
 
Main(InputStream, BufferedReader) - Constructor for class com.abr.calculator.Main
 
main(String[]) - Static method in class com.abr.calculator.Main
 
MasterExpression - Class in com.abr.calculator
MasterExpression - Top-level expression.
MasterExpression(String) - Constructor for class com.abr.calculator.MasterExpression
Create the named expression
MaxExpression - Class in com.abr.calculator
MaxExpression - MAX of an expression
MaxExpression(MasterExpression, String) - Constructor for class com.abr.calculator.MaxExpression
 
MinExpression - Class in com.abr.calculator
MinExpression - MIN of an expression
MinExpression(MasterExpression, String) - Constructor for class com.abr.calculator.MinExpression
 
ModulusExpression - Class in com.abr.calculator
ModulusExpression - Modulus (division remainder) of two values
ModulusExpression(MasterExpression, String) - Constructor for class com.abr.calculator.ModulusExpression
The expression should be in form: lvalue @ rvalue
MultiplicationExpression - Class in com.abr.calculator
MultiplicationExpression - Multiplies two values
MultiplicationExpression(MasterExpression, String) - Constructor for class com.abr.calculator.MultiplicationExpression
The expression should be in form:

O

OPERATOR_ADD - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_COLON - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_COMMA - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_DIV - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_EXP - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_MOD - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_MULT - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_NONE - Static variable in interface com.abr.calculator.IExpression
Types of operators (in reverse precedence order): OPERATOR_NONE - invalid (zero) OPERATOR_SUB - subtraction OPERATOR_ADD - addition OPERATOR_MOD - modulus division OPERATOR_DIV - division OPERATOR_MULT - multiplication OPERATOR_EXP - exponent OPERATOR_QUESTION - question-mark (first part of ternary op) OPERATOR_COLON - colon (second part of ternary op) Because the question mark and the colon operator are so tightly-coupled, notice that they're relatively close to each other in the precedence list.
OPERATOR_QUESTION - Static variable in interface com.abr.calculator.IExpression
 
OPERATOR_SUB - Static variable in interface com.abr.calculator.IExpression
 

P

parse(Parser, ExpressionError) - Method in class com.abr.calculator.ArithmeticExpression
 
parse(Parser, ExpressionError) - Method in class com.abr.calculator.ConstantExpression
 
parse(Parser, ExpressionError) - Method in class com.abr.calculator.FunctionExpression
 
parse(Parser, ExpressionError) - Method in class com.abr.calculator.GroupingExpression
 
parse(Parser, ExpressionError) - Method in interface com.abr.calculator.IExpression
Parse this expression.
parse(Parser, ExpressionError) - Method in class com.abr.calculator.MasterExpression
Parse the expression passed to the ctor.
parse(String, ExpressionError) - Method in class com.abr.calculator.Parser
Perform the parsing.
parse(Parser, ExpressionError) - Method in class com.abr.calculator.VariableExpression
 
parseArithmetic() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of an arithmetic expression.
parseEntity() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of a "single entity" in the string.
parseExpr(String) - Method in class com.abr.calculator.Main
 
parseGroup() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of a "group" in the string.
parseInternal(Parser, ExpressionError) - Method in class com.abr.calculator.FunctionExpression
DERIVED CLASSES: Override this method to perform actual function parsing, if anything different needs to occur.
Parser - Class in com.abr.calculator
Parser - Actually parses an expression.
Parser(MasterExpression, IExpression) - Constructor for class com.abr.calculator.Parser
Create a Parser object.
ParserIndicators - Class in com.abr.calculator
ParserIndicators - Stores information for a parser.
ParserIndicators() - Constructor for class com.abr.calculator.ParserIndicators
 
parseSimpleEntity() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: Override this method to customize the parsing of a "simple" entity.
popOffset() - Method in class com.abr.calculator.ExpressionError
"Pop" the last pushed error offset.
pushOffset() - Method in class com.abr.calculator.ExpressionError
"Push" the current offset.

Q

QuestionMarkExpression - Class in com.abr.calculator
A question-mark expression is the first in a set of two required expressions.
QuestionMarkExpression(MasterExpression, String) - Constructor for class com.abr.calculator.QuestionMarkExpression
The expression should be in form: lvalue @ rvalue

R

replaceLastParsedElement() - Method in class com.abr.calculator.Parser
DERIVED CLASSES: This method actually replaces an area of the parsed string with the last replacement string.
reset() - Method in class com.abr.calculator.ExpressionError
Reset the error object.
reset() - Method in class com.abr.calculator.ParserIndicators
 
resolveVariable(String, CallByRefObject) - Method in interface com.abr.calculator.IVariableResolver
 
resolveVariables(IVariableResolver) - Method in class com.abr.calculator.ArithmeticExpression
 
resolveVariables(IVariableResolver) - Method in class com.abr.calculator.BaseExpression
 
resolveVariables(IVariableResolver) - Method in interface com.abr.calculator.IExpression
Resolve any variable names within this expression.
resolveVariables(IVariableResolver) - Method in class com.abr.calculator.MasterExpression
 
resolveVariables(IVariableResolver) - Method in class com.abr.calculator.VariableExpression
 
run() - Method in class com.abr.calculator.Main
 

S

setEmbeddedExpression(IExpression) - Method in class com.abr.calculator.ArithmeticExpression
 
setEmbeddedExpression(IExpression) - Method in class com.abr.calculator.BaseExpression
 
setEmbeddedExpression(IExpression) - Method in interface com.abr.calculator.IExpression
By the power invested in coolness, a given IExpression usually has *only one* embedded subexpression ever to solve.
setEmbeddedExpression(IExpression) - Method in class com.abr.calculator.MasterExpression
 
setErrorCode(int) - Method in class com.abr.calculator.ExpressionError
Set the error code.
setErrorOffset(int) - Method in class com.abr.calculator.ExpressionError
Set the error offset.
setErrorText(String) - Method in class com.abr.calculator.ExpressionError
Set the error text.
setExpression(String) - Method in class com.abr.calculator.BaseExpression
Set the string expression used to create this object.
setExpressionBegin(int) - Method in class com.abr.calculator.ParserIndicators
 
setExpressionEnd(int) - Method in class com.abr.calculator.ParserIndicators
 
setFunctionName(String) - Method in class com.abr.calculator.FunctionExpression
 
setOperator(String) - Method in class com.abr.calculator.ArithmeticExpression
 
setOperatorCount(int) - Method in class com.abr.calculator.ParserIndicators
 
setOperatorOfs(int) - Method in class com.abr.calculator.ParserIndicators
 
setOperatorPrecedence(long) - Method in class com.abr.calculator.ParserIndicators
 
setOperatorType(String) - Method in class com.abr.calculator.ParserIndicators
 
setParenthesesCount(int) - Method in class com.abr.calculator.ParserIndicators
 
setParenthesesCurCount(int) - Method in class com.abr.calculator.ParserIndicators
 
setParenthesesOfs(int) - Method in class com.abr.calculator.ParserIndicators
 
showInputPrompt(InputStream, BufferedReader, String) - Static method in class com.abr.calculator.Main
 
showInputPromptln(InputStream, BufferedReader, String) - Static method in class com.abr.calculator.Main
 
StddevExpression - Class in com.abr.calculator
StddevExpression - SIGMA of an expression
StddevExpression(MasterExpression, String) - Constructor for class com.abr.calculator.StddevExpression
 
StringExpression - Class in com.abr.calculator
StringExpression - a simple string
StringExpression(MasterExpression, String) - Constructor for class com.abr.calculator.StringExpression
 
SubtractionExpression - Class in com.abr.calculator
SubtractionExpression - Subtracts two values
SubtractionExpression(MasterExpression, String) - Constructor for class com.abr.calculator.SubtractionExpression
The expression should be in form: lvalue @ rvalue
SumExpression - Class in com.abr.calculator
SumExpression - SUM an expression
SumExpression(MasterExpression, String) - Constructor for class com.abr.calculator.SumExpression
 

T

toString() - Method in class com.abr.calculator.ArithmeticExpression
 
toString() - Method in class com.abr.calculator.ConstantExpression
 
toString() - Method in class com.abr.calculator.FunctionExpression
 
toString() - Method in class com.abr.calculator.GroupingExpression
 
toString() - Method in class com.abr.calculator.MasterExpression
 
toString() - Method in class com.abr.calculator.StringExpression
 
toString() - Method in class com.abr.calculator.VariableExpression
 

U

updateMaster(MasterExpression) - Method in class com.abr.calculator.BaseExpression
 
usage() - Static method in class com.abr.calculator.Main
 

V

VariableExpression - Class in com.abr.calculator
VariableExpression - A value that must be extracted from a data source at run time.
VariableExpression(MasterExpression, String) - Constructor for class com.abr.calculator.VariableExpression
 

W

wasTrue() - Method in class com.abr.calculator.QuestionMarkExpression
Was the last evaluated expression TRUE (non-zero)?
WHITESPACE - Static variable in class com.abr.calculator.Parser
 

A B C D E F G H I M O P Q R S T U V W