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

A

ABS - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides access to BigDecimal.abs(MathContext)
AbstractExpression - Class in com.mpobjects.bdparsii.eval
Expression which holds a MathContext field.
AbstractExpression(MathContext) - Constructor for class com.mpobjects.bdparsii.eval.AbstractExpression
Create a new abstract expression
ACOS - Static variable in class com.mpobjects.bdparsii.eval.Functions
ACOSH - Static variable in class com.mpobjects.bdparsii.eval.Functions
ACOT - Static variable in class com.mpobjects.bdparsii.eval.Functions
ACOTH - Static variable in class com.mpobjects.bdparsii.eval.Functions
addError(Position, String, Object...) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Adds a parse error to the internal problem collector.
addKeyword(String) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Adds a keyword which is now being recognized by the tokenizer
addParameter(Expression) - Method in class com.mpobjects.bdparsii.eval.FunctionCall
Adds an expression as parameter.
addSpecialIdStarter(char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Adds character as a special id starter.
addSpecialIdTerminator(char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Adds character as a special id terminator.
addStringDelimiter(char, char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Adds a new string delimiter character along with the character used to escape string within it.
addToContent(Char) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Adds the given Char to the content (and the source) but not to the trigger
addToContent(char) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Adds the given character to the content (and the source) but not to the trigger
addToSource(Char) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Adds the given Char to the source of this token, but neither to the trigger nor to the content.
addToTrigger(Char) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Adds the given Char to the trigger (and the source) but not to the content
addUnescapedStringDelimiter(char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Boilerplate method for adding a string delimiter which does not support escape sequences.
addWarning(Position, String, Object...) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Adds a warning to the internal problem collector.
ASIN - Static variable in class com.mpobjects.bdparsii.eval.Functions
ASINH - Static variable in class com.mpobjects.bdparsii.eval.Functions
ATAN - Static variable in class com.mpobjects.bdparsii.eval.Functions
ATAN2 - Static variable in class com.mpobjects.bdparsii.eval.Functions
ATANH - Static variable in class com.mpobjects.bdparsii.eval.Functions
atEnd() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Boilerplate method for current().isEnd()
atom() - Method in class com.mpobjects.bdparsii.eval.Parser
Parser rule for parsing an atom.

B

BinaryFunction - Class in com.mpobjects.bdparsii.eval
Represents a binary function.
BinaryFunction() - Constructor for class com.mpobjects.bdparsii.eval.BinaryFunction
 
BinaryOperation - Class in com.mpobjects.bdparsii.eval
Represents a binary operation.
BinaryOperation(MathContext, BinaryOperation.Op, Expression, Expression) - Constructor for class com.mpobjects.bdparsii.eval.BinaryOperation
Creates a new binary operator for the given operator and operands.
BinaryOperation.Op - Enum in com.mpobjects.bdparsii.eval
Enumerates the operations supported by this expression.

C

canConsumeThisString(String, boolean) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Checks if the next characters, starting from the current, match the given string.
CEIL - Static variable in class com.mpobjects.bdparsii.eval.Functions
Get the ceiling value
Char - Class in com.mpobjects.bdparsii.tokenizer
Represents a single character read from a LookaheadReader.
clearStringDelimiters() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Removes all previously registered string delimiters.
com.mpobjects.bdparsii.eval - package com.mpobjects.bdparsii.eval
 
com.mpobjects.bdparsii.tokenizer - package com.mpobjects.bdparsii.tokenizer
 
Constant - Class in com.mpobjects.bdparsii.eval
Represents a constant numeric expression.
Constant(BigDecimal) - Constructor for class com.mpobjects.bdparsii.eval.Constant
 
consume() - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Removes and returns the current item from the stream.
consume(int) - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Consumes (removes) numberOfItems at once.
consumeExpectedKeyword(String) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Consumes the current token, expecting it to be as KEYWORD with the given content
consumeExpectedSymbol(String) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Consumes the current token, expecting it to be as SYMBOL with the given content
COS - Static variable in class com.mpobjects.bdparsii.eval.Functions
COSH - Static variable in class com.mpobjects.bdparsii.eval.Functions
COT - Static variable in class com.mpobjects.bdparsii.eval.Functions
COTH - Static variable in class com.mpobjects.bdparsii.eval.Functions
create(String) - Method in class com.mpobjects.bdparsii.eval.Scope
Searches or creates a variable in this scope.
create(List<ParseError>) - Static method in exception com.mpobjects.bdparsii.tokenizer.ParseException
Creates a new exception based on the list of errors.
create(Token.TokenType, Position) - Static method in class com.mpobjects.bdparsii.tokenizer.Token
Creates a new token with the given type, using the given position as location info.
createAndFill(Token.TokenType, Char) - Static method in class com.mpobjects.bdparsii.tokenizer.Token
Creates a new token with the given type, using the Char a initial trigger and content.
createConstants() - Method in class com.mpobjects.bdparsii.eval.Scope
 
current() - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Returns the item the stream is currently pointing at.

D

DEG - Static variable in class com.mpobjects.bdparsii.eval.Functions
Converts radients to degrees.

E

endOfInput() - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Creates the end of input indicator item.
endOfInput() - Method in class com.mpobjects.bdparsii.tokenizer.LookaheadReader
 
endOfInput() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
 
endOfInputIndicator - Variable in class com.mpobjects.bdparsii.tokenizer.Lookahead
Once the end of the underlying input was reached, an end of input indicator is created and constantly returned for all calls of current and next.
endReached - Variable in class com.mpobjects.bdparsii.tokenizer.Lookahead
Determines if the end of the underlying data source has been reached.
error(Position, String) - Static method in class com.mpobjects.bdparsii.tokenizer.ParseError
Creates a new error for the given position with the given message.
eval(List<Expression>, MathContext) - Method in class com.mpobjects.bdparsii.eval.BinaryFunction
 
eval(BigDecimal, BigDecimal, MathContext) - Method in class com.mpobjects.bdparsii.eval.BinaryFunction
Performs the computation of the binary function
eval(List<Expression>, MathContext) - Method in interface com.mpobjects.bdparsii.eval.Function
Executes the function with the given arguments.
eval(List<Expression>, MathContext) - Method in class com.mpobjects.bdparsii.eval.UnaryFunction
 
eval(BigDecimal, MathContext) - Method in class com.mpobjects.bdparsii.eval.UnaryFunction
Performs the computation of the unary function
evaluate(MathContext) - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
 
evaluate(MathContext) - Method in class com.mpobjects.bdparsii.eval.Constant
 
evaluate() - Method in interface com.mpobjects.bdparsii.eval.Expression
Evaluates the expression to a BigDecimal number.
evaluate(MathContext) - Method in interface com.mpobjects.bdparsii.eval.Expression
Evaluates the expression to a BigDecimal number.
evaluate(MathContext) - Method in class com.mpobjects.bdparsii.eval.FunctionCall
 
evaluate(MathContext) - Method in class com.mpobjects.bdparsii.eval.VariableReference
 
EXP - Static variable in class com.mpobjects.bdparsii.eval.Functions
expect(Token.TokenType, String) - Method in class com.mpobjects.bdparsii.eval.Parser
Signals that the given token is expected.
EXPONENT - Static variable in class com.mpobjects.bdparsii.eval.Functions
Expression - Interface in com.mpobjects.bdparsii.eval
Represents the result of a parsed expression.
expression() - Method in class com.mpobjects.bdparsii.eval.Parser
Parser rule for parsing an expression.

F

fetch() - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Fetches the next item from the stream.
fetch() - Method in class com.mpobjects.bdparsii.tokenizer.LookaheadReader
 
fetch() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
 
fetchId() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Reads and returns an identifier
fetchNumber() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Reads and returns a number.
fetchSpecialId() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Reads and returns a special id.
fetchString() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Reads and returns a string constant.
fetchSymbol() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Reads and returns a symbol.
find(String) - Method in class com.mpobjects.bdparsii.eval.Scope
Searches for a Variable with the given name.
FLOOR - Static variable in class com.mpobjects.bdparsii.eval.Functions
Floors the value
Function - Interface in com.mpobjects.bdparsii.eval
Defines a function which can be referenced and evaluated from within expressions.
FunctionCall - Class in com.mpobjects.bdparsii.eval
Represents the invocation of a function.
FunctionCall(MathContext) - Constructor for class com.mpobjects.bdparsii.eval.FunctionCall
Create a function call expression.
functionCall() - Method in class com.mpobjects.bdparsii.eval.Parser
Parses a function call.
Functions - Class in com.mpobjects.bdparsii.eval
Contains a set of predefined standard functions.

G

getBlockCommentEnd() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Returns the string which ends a block comment.
getBlockCommentStart() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Returns the string which starts a block comment.
getContents() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Returns the effective content of this token
getDecimalSeparator() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Returns the decimal separator used in decimal numbers
getEffectiveDecimalSeparator() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Returns the decimal separator used in the content of DECIMAL tokens.
getErrors() - Method in exception com.mpobjects.bdparsii.tokenizer.ParseException
Provides a list of all errors and warnings which occurred
getGroupingSeparator() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Returns the grouping separator which can be used in numbers for group digits (e.g.
getLeft() - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
Returns the left operand
getLine() - Method in class com.mpobjects.bdparsii.tokenizer.Char
 
getLine() - Method in interface com.mpobjects.bdparsii.tokenizer.Position
Returns the line number of this position.
getLine() - Method in class com.mpobjects.bdparsii.tokenizer.Token
 
getLineComment() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Returns the string which starts a line comment.
getLocalNames() - Method in class com.mpobjects.bdparsii.eval.Scope
Returns all names of variables known to this scope (ignoring those of the parent scope).
getLocalVariables() - Method in class com.mpobjects.bdparsii.eval.Scope
Returns all variables known to this scope (ignoring those of the parent scope).
getMathContext() - Method in class com.mpobjects.bdparsii.eval.AbstractExpression
 
getMathContext() - Method in interface com.mpobjects.bdparsii.eval.Expression
Can return the default math context to use during evaluation.
getMathContext() - Method in class com.mpobjects.bdparsii.eval.Scope
 
getMessage() - Method in class com.mpobjects.bdparsii.tokenizer.ParseError
Provides the message explaining the error or warning.
getName() - Method in class com.mpobjects.bdparsii.eval.Variable
Returns the name of the variable.
getNames() - Method in class com.mpobjects.bdparsii.eval.Scope
Returns all names of variables known to this scope or one of its parent scopes.
getNumberOfArguments() - Method in class com.mpobjects.bdparsii.eval.BinaryFunction
 
getNumberOfArguments() - Method in interface com.mpobjects.bdparsii.eval.Function
Returns the number of expected arguments.
getNumberOfArguments() - Method in class com.mpobjects.bdparsii.eval.UnaryFunction
 
getOp() - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
Returns the operation performed by this binary operation.
getParameters() - Method in class com.mpobjects.bdparsii.eval.FunctionCall
Returns all parameters added so far.
getPos() - Method in class com.mpobjects.bdparsii.tokenizer.Char
 
getPos() - Method in interface com.mpobjects.bdparsii.tokenizer.Position
Returns the character position within the line of this position
getPos() - Method in class com.mpobjects.bdparsii.tokenizer.Token
 
getPosition() - Method in class com.mpobjects.bdparsii.tokenizer.ParseError
Provides the position where the error or warning occurred.
getPriority() - Method in enum com.mpobjects.bdparsii.eval.BinaryOperation.Op
 
getProblemCollector() - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Provides access to the problem collector used by this instance.
getRight() - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
Returns the right operand
getSafeContext(MathContext) - Static method in class com.mpobjects.bdparsii.eval.MathContextGuard
Get a safe to use MathContext for certain big-math operations which do not support unlimited precision.
getSeverity() - Method in class com.mpobjects.bdparsii.tokenizer.ParseError
Returns the severity, which indicates if this is an error or a warning.
getSource() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Returns the complete source string consumed while parsing this token
getStringValue() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Returns the internal value as string.
getTrigger() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Returns the string or character which further specifies this token.
getType() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Returns the basic classification of this token
getValue() - Method in class com.mpobjects.bdparsii.eval.Variable
Returns the value previously set.
getValue() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Returns the value of this char.
getVariable(String) - Method in class com.mpobjects.bdparsii.eval.Scope
Searches for or creates a variable with the given name.
getVariables() - Method in class com.mpobjects.bdparsii.eval.Scope
Returns all variables known to this scope or one of its parent scopes.

H

handleKeywords(Token) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Checks if the given identifier is a keyword and returns an appropriate Token
handleStringEscape(char, char, Token) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Evaluates an string escape like \n
hasContent(String) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if the given content matches the content of this token.

I

IF - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides an if-like function
input - Variable in class com.mpobjects.bdparsii.tokenizer.Tokenizer
 
is(char...) - Method in class com.mpobjects.bdparsii.tokenizer.Char
Checks if the internal value is one of the given characters
is(Token.TokenType) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if the token has the given type
isAtBracket(boolean) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if the underlying input is looking at a bracket.
isAtEndOfBlockComment() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Checks if the underlying input is looking at a end of block comment
isAtStartOfBlockComment(boolean) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Checks if the underlying input is looking at a start of block comment
isAtStartOfIdentifier() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if the underlying input is looking at a valid character to start an identifier
isAtStartOfLineComment(boolean) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Checks if the underlying input is looking at a start of line comment.
isAtStartOfNumber() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if the underlying input is looking at the start of a number.
isAtStartOfSpecialId() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if the underlying input is looking at the start of a special id.
isConstant() - Method in class com.mpobjects.bdparsii.eval.Constant
 
isConstant() - Method in interface com.mpobjects.bdparsii.eval.Expression
Determines the this expression is constant
isConstant() - Method in class com.mpobjects.bdparsii.eval.Variable
Determines if this variable is constant.
isConstant() - Method in class com.mpobjects.bdparsii.eval.VariableReference
 
isDecimal() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is a decimal number.
isDigit() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Determines if the value is a digit (0..9)
isEnd() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this is an end of input token
isEndOfInput() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Determines if this instance represents the end of input indicator
isIdentifier(String...) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is an identifier.
isIdentifierChar(Char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if the given Char is a valid identifier part.
isInteger() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is an integer number.
isKeyword(String...) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is a keyword.
isKeywordsCaseSensitive() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if keywords are case sensitive.
isLetter() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Determines if the value is a letter (a..z, A..Z)
isNaturalFunction() - Method in class com.mpobjects.bdparsii.eval.BinaryFunction
 
isNaturalFunction() - Method in interface com.mpobjects.bdparsii.eval.Function
A natural function returns the same output for the same input.
isNaturalFunction() - Method in class com.mpobjects.bdparsii.eval.UnaryFunction
 
isNewLine() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Determines if the value is a line break
isNotEnd() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Opposite of Token.isEnd().
isNumber() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is an integer or decimal number.
isSealed() - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
Determines if the operation is sealed and operands must not be re-ordered.
isSpecialIdentifier(String...) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is a special identifier.
isSpecialIdentifierWithContent(String, String...) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is a special identifier with the given trigger.
isString() - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is a string constant
isSymbol(String...) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token is a symbol.
isSymbolCharacter(Char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Determines if the given Char is a symbol character.
isWhitepace() - Method in class com.mpobjects.bdparsii.tokenizer.Char
Determines if the value is a whitespace character like a blank, tab or line break
itemBuffer - Variable in class com.mpobjects.bdparsii.tokenizer.Lookahead
Internal buffer containing items which where already created due to lookaheads.

L

LN - Static variable in class com.mpobjects.bdparsii.eval.Functions
LOG - Static variable in class com.mpobjects.bdparsii.eval.Functions
LOG2 - Static variable in class com.mpobjects.bdparsii.eval.Functions
Lookahead<T> - Class in com.mpobjects.bdparsii.tokenizer
Abstract data structure for providing streams of items with a lookahead.
Lookahead() - Constructor for class com.mpobjects.bdparsii.tokenizer.Lookahead
 
LookaheadReader - Class in com.mpobjects.bdparsii.tokenizer
An efficient reader of character streams, reading character by character and supporting lookaheads.
LookaheadReader(Reader) - Constructor for class com.mpobjects.bdparsii.tokenizer.LookaheadReader
Creates a new LookaheadReader for the given Reader.

M

makeConstant(BigDecimal) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the given value and marks it as constant.
makeConstant(Supplier<BigDecimal>) - Method in class com.mpobjects.bdparsii.eval.Variable
Makes a constant who's value is supplied when this constant is first referenced.
MANTISSA - Static variable in class com.mpobjects.bdparsii.eval.Functions
matches(Token.TokenType, String) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token has the given type and trigger.
MathContextGuard - Class in com.mpobjects.bdparsii.eval
Safe-guard for big-math operations which have no support for unlimited precision calculations.
MAX - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides access to BigDecimal.max(BigDecimal)
MIN - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides access to BigDecimal.min(BigDecimal)
more() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Boilerplate method for current().isNotEnd()

N

next() - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Returns the next item after the current one in the stream.
next(int) - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Returns the next n-th item in the stream.

O

ONEHUNDREDEIGHTY - Static variable in class com.mpobjects.bdparsii.eval.Functions
BigDecimal constant for 180

P

parse(String) - Static method in class com.mpobjects.bdparsii.eval.Parser
Parses the given input into an expression.
parse(Reader) - Static method in class com.mpobjects.bdparsii.eval.Parser
Parses the given input into an expression.
parse(String, Scope) - Static method in class com.mpobjects.bdparsii.eval.Parser
Parses the given input into an expression.
parse(Reader, Scope) - Static method in class com.mpobjects.bdparsii.eval.Parser
Parses the given input into an expression.
parse() - Method in class com.mpobjects.bdparsii.eval.Parser
Parses the expression in input
ParseError - Class in com.mpobjects.bdparsii.tokenizer
Represents an error or a warning which occurred when parsing an input.
ParseError(Position, String, ParseError.Severity) - Constructor for class com.mpobjects.bdparsii.tokenizer.ParseError
 
ParseError.Severity - Enum in com.mpobjects.bdparsii.tokenizer
Specifies whether an error (unrecoverable problem) or a warning occurred.
ParseException - Exception in com.mpobjects.bdparsii.tokenizer
Used to signal that processing an input failed.
Parser - Class in com.mpobjects.bdparsii.eval
Parses a given mathematical expression into an abstract syntax tree which can be evaluated.
Parser(Reader, Scope) - Constructor for class com.mpobjects.bdparsii.eval.Parser
 
pos - Variable in class com.mpobjects.bdparsii.tokenizer.Token
 
Position - Interface in com.mpobjects.bdparsii.tokenizer
Describes a position in a file or a stream based on lines and the character position within the line.
pow(BigDecimal, BigDecimal, MathContext) - Static method in class com.mpobjects.bdparsii.eval.BinaryOperation
power function which uses the JRE's BigDecimal.pow(int, MathContext) when y is an integer within range.
POW - Static variable in class com.mpobjects.bdparsii.eval.Functions
power() - Method in class com.mpobjects.bdparsii.eval.Parser
Parser rule for parsing a power.
problemCollector - Variable in class com.mpobjects.bdparsii.tokenizer.Lookahead
Used to collect problems which occurred when processing the input.
product() - Method in class com.mpobjects.bdparsii.eval.Parser
Parser rule for parsing a product.

R

RAD - Static variable in class com.mpobjects.bdparsii.eval.Functions
Converts degrees to radients.
registerFunction(String, Function) - Static method in class com.mpobjects.bdparsii.eval.Parser
Registers a new function which can be referenced from within an expression.
relationalExpression() - Method in class com.mpobjects.bdparsii.eval.Parser
Parser rule for parsing a relational expression.
remove(String) - Method in class com.mpobjects.bdparsii.eval.Scope
Removes the variable with the given name from this scope.
reOrder(Expression, Expression, BinaryOperation.Op) - Method in class com.mpobjects.bdparsii.eval.Parser
 
replaceLeft(BinaryOperation, Expression, BinaryOperation.Op) - Method in class com.mpobjects.bdparsii.eval.Parser
 
RND - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides access to Math.random() which will be multiplied by the given argument.
ROUND - Static variable in class com.mpobjects.bdparsii.eval.Functions
Rounds half up

S

SCALE - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides access to the scale of the current value.
Scope - Class in com.mpobjects.bdparsii.eval
Contains a mapping of names to variables.
Scope() - Constructor for class com.mpobjects.bdparsii.eval.Scope
Creates a new empty scope.
seal() - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
Marks an operation as sealed, meaning that re-ordering or operations on the same level must not be re-ordered.
setBlockCommentEnd(String) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the string which ends a block comment.
setBlockCommentStart(String) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the string which stats a block comment.
setContent(String) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Externally sets the content used for this token.
setDecimalSeparator(char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the character which is recognized as decimal separator.
setEffectiveDecimalSeparator(char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the decimal separator used in the content of DECIMAL tokens.
setFunction(Function) - Method in class com.mpobjects.bdparsii.eval.FunctionCall
Sets the function to evaluate.
setGroupingSeparator(char) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the grouping separator accepting in numbers.
setKeywordsCaseSensitive(boolean) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the case sensitiveness of keywords.
setLeft(Expression) - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
Replaces the left operand of the operation with the given expression.
setLineComment(String) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Sets the string which stats a line comment.
setMathContext(MathContext) - Method in class com.mpobjects.bdparsii.eval.Scope
Set the math context to use.
setProblemCollector(List<ParseError>) - Method in class com.mpobjects.bdparsii.tokenizer.Lookahead
Installs the given problem collector.
setProblemCollector(List<ParseError>) - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
 
setSafeContext(MathContext) - Static method in class com.mpobjects.bdparsii.eval.MathContextGuard
Change the safe MathContext
setSource(String) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Externally sets the source used for this token.
setTrigger(String) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Externally sets the trigger used for this token.
setValue(BigDecimal) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the value if the variable.
setValue(double) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the value if the variable.
setValue(long) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the value if the variable.
SIGN - Static variable in class com.mpobjects.bdparsii.eval.Functions
Provides access to BigDecimal.signum()
silentAddToContent(char) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Adds a character to the content without adding it to the source.
simplify(MathContext) - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
 
simplify(MathContext) - Method in interface com.mpobjects.bdparsii.eval.Expression
Returns a simplified version of this expression.
simplify(MathContext) - Method in class com.mpobjects.bdparsii.eval.FunctionCall
 
simplify(MathContext) - Method in class com.mpobjects.bdparsii.eval.VariableReference
 
SIN - Static variable in class com.mpobjects.bdparsii.eval.Functions
SINH - Static variable in class com.mpobjects.bdparsii.eval.Functions
skipBlockComment() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Checks if we're looking at an end of block comment
skipToEndOfLine() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Read everything upon (and including) the next line break
SQRT - Static variable in class com.mpobjects.bdparsii.eval.Functions

T

TAN - Static variable in class com.mpobjects.bdparsii.eval.Functions
TANH - Static variable in class com.mpobjects.bdparsii.eval.Functions
term() - Method in class com.mpobjects.bdparsii.eval.Parser
Parser rule for parsing a term.
throwOnError() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Throws a ParseException if an error occurred while parsing the input.
throwOnErrorOrWarning() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
Throws a ParseException if an error or warning occurred while parsing the input
Token - Class in com.mpobjects.bdparsii.tokenizer
Represents a token of text read from a Tokenizer.
Token.TokenType - Enum in com.mpobjects.bdparsii.tokenizer
Contains the different token types supported by this class.
Tokenizer - Class in com.mpobjects.bdparsii.tokenizer
Turns a stream of characters (Reader into a stream of Token, supporting lookahead.
Tokenizer(Reader) - Constructor for class com.mpobjects.bdparsii.tokenizer.Tokenizer
Creates a new tokenizer for the given input
toString() - Method in class com.mpobjects.bdparsii.eval.BinaryOperation
 
toString() - Method in class com.mpobjects.bdparsii.eval.Constant
 
toString() - Method in class com.mpobjects.bdparsii.eval.Variable
 
toString() - Method in class com.mpobjects.bdparsii.eval.VariableReference
 
toString() - Method in class com.mpobjects.bdparsii.tokenizer.Char
 
toString() - Method in class com.mpobjects.bdparsii.tokenizer.LookaheadReader
 
toString() - Method in class com.mpobjects.bdparsii.tokenizer.ParseError
 
toString() - Method in exception com.mpobjects.bdparsii.tokenizer.ParseException
 
toString() - Method in class com.mpobjects.bdparsii.tokenizer.Token
 
toString() - Method in class com.mpobjects.bdparsii.tokenizer.Tokenizer
 

U

UnaryFunction - Class in com.mpobjects.bdparsii.eval
Represents an unary function.
UnaryFunction() - Constructor for class com.mpobjects.bdparsii.eval.UnaryFunction
 
UNKNOWN - Static variable in interface com.mpobjects.bdparsii.tokenizer.Position
Represents an unknown position for warnings and errors which cannot be associated with a defined position.

V

valueOf(String) - Static method in enum com.mpobjects.bdparsii.eval.BinaryOperation.Op
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mpobjects.bdparsii.tokenizer.ParseError.Severity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mpobjects.bdparsii.tokenizer.Token.TokenType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mpobjects.bdparsii.eval.BinaryOperation.Op
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mpobjects.bdparsii.tokenizer.ParseError.Severity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mpobjects.bdparsii.tokenizer.Token.TokenType
Returns an array containing the constants of this enum type, in the order they are declared.
Variable - Class in com.mpobjects.bdparsii.eval
Represents a variable which binds a value to a name.
Variable(String) - Constructor for class com.mpobjects.bdparsii.eval.Variable
Creates a new variable.
VariableReference - Class in com.mpobjects.bdparsii.eval
Represents a reference to a variable.
VariableReference(Variable) - Constructor for class com.mpobjects.bdparsii.eval.VariableReference
Creates a new reference to the given variable.

W

warning(Position, String) - Static method in class com.mpobjects.bdparsii.tokenizer.ParseError
Creates a new warning for the given position with the given message.
wasTriggeredBy(String...) - Method in class com.mpobjects.bdparsii.tokenizer.Token
Determines if this token was triggered by one of the given triggers.
withMathContext(MathContext) - Method in class com.mpobjects.bdparsii.eval.Scope
Set the math context to use.
withParent(Scope) - Method in class com.mpobjects.bdparsii.eval.Scope
Specifies the parent scope for this scope.
withStrictLookup(boolean) - Method in class com.mpobjects.bdparsii.eval.Scope
Determines if strict lookup should be used or not.
withValue(BigDecimal) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the value and returns this.
withValue(double) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the value and returns this.
withValue(long) - Method in class com.mpobjects.bdparsii.eval.Variable
Sets the value and returns this.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2019. All rights reserved.