- ABS - Static variable in class parsii.eval.Functions
-
- ACOS - Static variable in class parsii.eval.Functions
-
- addError(Position, String, Object...) - Method in class parsii.tokenizer.Tokenizer
-
Adds a parse error to the internal problem collector.
- addKeyword(String) - Method in class parsii.tokenizer.Tokenizer
-
Adds a keyword which is now being recognized by the tokenizer
- addParameter(Expression) - Method in class parsii.eval.FunctionCall
-
Adds an expression as parameter.
- addSpecialIdStarter(char) - Method in class parsii.tokenizer.Tokenizer
-
Adds character as a special id starter.
- addSpecialIdTerminator(char) - Method in class parsii.tokenizer.Tokenizer
-
Adds character as a special id terminator.
- addStringDelimiter(char, char) - Method in class parsii.tokenizer.Tokenizer
-
Adds a new string delimiter character along with the character used to escape string within it.
- addToContent(Char) - Method in class parsii.tokenizer.Token
-
Adds the given Char to the content (and the source) but not to the trigger
- addToContent(char) - Method in class parsii.tokenizer.Token
-
Adds the given character to the content (and the source) but not to the trigger
- addToSource(Char) - Method in class parsii.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 parsii.tokenizer.Token
-
Adds the given Char to the trigger (and the source) but not to the content
- addUnescapedStringDelimiter(char) - Method in class parsii.tokenizer.Tokenizer
-
Boilerplate method for adding a string delimiter which does not support escape sequences.
- addWarning(Position, String, Object...) - Method in class parsii.tokenizer.Tokenizer
-
Adds a warning to the internal problem collector.
- ASIN - Static variable in class parsii.eval.Functions
-
- ATAN - Static variable in class parsii.eval.Functions
-
- ATAN2 - Static variable in class parsii.eval.Functions
-
- atEnd() - Method in class parsii.tokenizer.Tokenizer
-
Boilerplate method for current().isEnd()
- atom() - Method in class parsii.eval.Parser
-
Parser rule for parsing an atom.
- canConsumeThisString(String, boolean) - Method in class parsii.tokenizer.Tokenizer
-
Checks if the next characters, starting from the current, match the given string.
- CEIL - Static variable in class parsii.eval.Functions
-
- Char - Class in parsii.tokenizer
-
- clearStringDelimiters() - Method in class parsii.tokenizer.Tokenizer
-
Removes all previously registered string delimiters.
- Constant - Class in parsii.eval
-
Represents a constant numeric expression.
- Constant(double) - Constructor for class parsii.eval.Constant
-
- consume() - Method in class parsii.tokenizer.Lookahead
-
Removes and returns the current item from the stream.
- consume(int) - Method in class parsii.tokenizer.Lookahead
-
Consumes (removes) numberOfItems at once.
- consumeExpectedKeyword(String) - Method in class parsii.tokenizer.Tokenizer
-
Consumes the current token, expecting it to be as KEYWORD with the given content
- consumeExpectedSymbol(String) - Method in class parsii.tokenizer.Tokenizer
-
Consumes the current token, expecting it to be as SYMBOL with the given content
- COS - Static variable in class parsii.eval.Functions
-
- COSH - Static variable in class parsii.eval.Functions
-
- create(String) - Method in class parsii.eval.Scope
-
Searches or creates a variable in this scope.
- create(List<ParseError>) - Static method in exception parsii.tokenizer.ParseException
-
Creates a new exception based on the list of errors.
- create(Token.TokenType, Position) - Static method in class parsii.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 parsii.tokenizer.Token
-
Creates a new token with the given type, using the Char a initial trigger and content.
- current() - Method in class parsii.tokenizer.Lookahead
-
Returns the item the stream is currently pointing at.
- EMPTY - Static variable in class parsii.eval.Constant
-
Used as dummy expression by the parser if an error occurs while parsing.
- endOfInput() - Method in class parsii.tokenizer.Lookahead
-
Creates the end of input indicator item.
- endOfInput() - Method in class parsii.tokenizer.LookaheadReader
-
- endOfInput() - Method in class parsii.tokenizer.Tokenizer
-
- endOfInputIndicator - Variable in class parsii.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 parsii.tokenizer.Lookahead
-
Determines if the end of the underlying data source has been reached.
- EPSILON - Static variable in class parsii.eval.BinaryOperation
-
When comparing two double values, those are considered equal, if their difference is lower than the defined
epsilon.
- error(Position, String) - Static method in class parsii.tokenizer.ParseError
-
Creates a new error for the given position with the given message.
- eval(List<Expression>) - Method in class parsii.eval.BinaryFunction
-
- eval(double, double) - Method in class parsii.eval.BinaryFunction
-
Performs the computation of the binary function
- eval(List<Expression>) - Method in interface parsii.eval.Function
-
Executes the function with the given arguments.
- eval(List<Expression>) - Method in class parsii.eval.UnaryFunction
-
- eval(double) - Method in class parsii.eval.UnaryFunction
-
Performs the computation of the unary function
- evaluate() - Method in class parsii.eval.BinaryOperation
-
- evaluate() - Method in class parsii.eval.Constant
-
- evaluate() - Method in interface parsii.eval.Expression
-
Evaluates the expression to a double number.
- evaluate() - Method in class parsii.eval.FunctionCall
-
- evaluate() - Method in class parsii.eval.VariableReference
-
- EXP - Static variable in class parsii.eval.Functions
-
- expect(Token.TokenType, String) - Method in class parsii.eval.Parser
-
Signals that the given token is expected.
- Expression - Interface in parsii.eval
-
Represents the result of a parsed expression.
- expression() - Method in class parsii.eval.Parser
-
Parser rule for parsing an expression.
- getBlockCommentEnd() - Method in class parsii.tokenizer.Tokenizer
-
Returns the string which ends a block comment.
- getBlockCommentStart() - Method in class parsii.tokenizer.Tokenizer
-
Returns the string which starts a block comment.
- getContents() - Method in class parsii.tokenizer.Token
-
Returns the effective content of this token
- getDecimalSeparator() - Method in class parsii.tokenizer.Tokenizer
-
Returns the decimal separator used in decimal numbers
- getEffectiveDecimalSeparator() - Method in class parsii.tokenizer.Tokenizer
-
Returns the decimal separator used in the content of DECIMAL tokens.
- getErrors() - Method in exception parsii.tokenizer.ParseException
-
Provides a list of all errors and warnings which occurred
- getGroupingSeparator() - Method in class parsii.tokenizer.Tokenizer
-
Returns the grouping separator which can be used in numbers for group digits (e.g.
- getLeft() - Method in class parsii.eval.BinaryOperation
-
Returns the left operand
- getLine() - Method in class parsii.tokenizer.Char
-
- getLine() - Method in interface parsii.tokenizer.Position
-
Returns the line number of this position.
- getLine() - Method in class parsii.tokenizer.Token
-
- getLineComment() - Method in class parsii.tokenizer.Tokenizer
-
Returns the string which starts a line comment.
- getLocalNames() - Method in class parsii.eval.Scope
-
Returns all names of variables known to this scope (ignoring those of the parent scope).
- getLocalVariables() - Method in class parsii.eval.Scope
-
Returns all variables known to this scope (ignoring those of the parent scope).
- getMessage() - Method in class parsii.tokenizer.ParseError
-
Provides the message explaining the error or warning.
- getName() - Method in class parsii.eval.Variable
-
Returns the name of the variable.
- getNames() - Method in class parsii.eval.Scope
-
Returns all names of variables known to this scope or one of its parent scopes.
- getNumberOfArguments() - Method in class parsii.eval.BinaryFunction
-
- getNumberOfArguments() - Method in interface parsii.eval.Function
-
Returns the number of expected arguments.
- getNumberOfArguments() - Method in class parsii.eval.UnaryFunction
-
- getOp() - Method in class parsii.eval.BinaryOperation
-
Returns the operation performed by this binary operation.
- getParameters() - Method in class parsii.eval.FunctionCall
-
Returns all parameters added so far.
- getPos() - Method in class parsii.tokenizer.Char
-
- getPos() - Method in interface parsii.tokenizer.Position
-
Returns the character position within the line of this position
- getPos() - Method in class parsii.tokenizer.Token
-
- getPosition() - Method in class parsii.tokenizer.ParseError
-
Provides the position where the error or warning occurred.
- getPriority() - Method in enum parsii.eval.BinaryOperation.Op
-
- getProblemCollector() - Method in class parsii.tokenizer.Lookahead
-
Provides access to the problem collector used by this instance.
- getRight() - Method in class parsii.eval.BinaryOperation
-
Returns the right operand
- getScope() - Method in class parsii.eval.Parser
-
- getSeverity() - Method in class parsii.tokenizer.ParseError
-
Returns the severity, which indicates if this is an error or a warning.
- getSource() - Method in class parsii.tokenizer.Token
-
Returns the complete source string consumed while parsing this token
- getStringValue() - Method in class parsii.tokenizer.Char
-
Returns the internal value as string.
- getTrigger() - Method in class parsii.tokenizer.Token
-
Returns the string or character which further specifies this token.
- getType() - Method in class parsii.tokenizer.Token
-
Returns the basic classification of this token
- getValue() - Method in class parsii.eval.Variable
-
Returns the value previously set.
- getValue() - Method in class parsii.tokenizer.Char
-
Returns the value of this char.
- getVariable(String) - Method in class parsii.eval.Scope
-
Searches for or creates a variable with the given name.
- getVariables() - Method in class parsii.eval.Scope
-
Returns all variables known to this scope or one of its parent scopes.
- IF - Static variable in class parsii.eval.Functions
-
Provides an if-like function
- input - Variable in class parsii.tokenizer.Tokenizer
-
- is(char...) - Method in class parsii.tokenizer.Char
-
Checks if the internal value is one of the given characters
- is(Token.TokenType) - Method in class parsii.tokenizer.Token
-
Determines if the token has the given type
- isAtBracket(boolean) - Method in class parsii.tokenizer.Tokenizer
-
Determines if the underlying input is looking at a bracket.
- isAtEndOfBlockComment() - Method in class parsii.tokenizer.Tokenizer
-
Checks if the underlying input is looking at a end of block comment
- isAtStartOfBlockComment(boolean) - Method in class parsii.tokenizer.Tokenizer
-
Checks if the underlying input is looking at a start of block comment
- isAtStartOfIdentifier() - Method in class parsii.tokenizer.Tokenizer
-
Determines if the underlying input is looking at a valid character to start an identifier
- isAtStartOfLineComment(boolean) - Method in class parsii.tokenizer.Tokenizer
-
Checks if the underlying input is looking at a start of line comment.
- isAtStartOfNumber() - Method in class parsii.tokenizer.Tokenizer
-
Determines if the underlying input is looking at the start of a number.
- isAtStartOfSpecialId() - Method in class parsii.tokenizer.Tokenizer
-
Determines if the underlying input is looking at the start of a special id.
- isConstant() - Method in class parsii.eval.Constant
-
- isConstant() - Method in interface parsii.eval.Expression
-
Determines the this expression is constant
- isConstant() - Method in class parsii.eval.Variable
-
Determines if this variable is constant.
- isConstant() - Method in class parsii.eval.VariableReference
-
- isDecimal() - Method in class parsii.tokenizer.Token
-
Determines if this token is a decimal number.
- isDigit() - Method in class parsii.tokenizer.Char
-
Determines if the value is a digit (0..9)
- isEnd() - Method in class parsii.tokenizer.Token
-
Determines if this is an end of input token
- isEndOfInput() - Method in class parsii.tokenizer.Char
-
Determines if this instance represents the end of input indicator
- isIdentifier(String...) - Method in class parsii.tokenizer.Token
-
Determines if this token is an identifier.
- isIdentifierChar(Char) - Method in class parsii.tokenizer.Tokenizer
-
Determines if the given Char is a valid identifier part.
- isInteger() - Method in class parsii.tokenizer.Token
-
Determines if this token is an integer number.
- isKeyword(String...) - Method in class parsii.tokenizer.Token
-
Determines if this token is a keyword.
- isKeywordsCaseSensitive() - Method in class parsii.tokenizer.Tokenizer
-
Determines if keywords are case sensitive.
- isLetter() - Method in class parsii.tokenizer.Char
-
Determines if the value is a letter (a..z, A..Z)
- isNaturalFunction() - Method in class parsii.eval.BinaryFunction
-
- isNaturalFunction() - Method in interface parsii.eval.Function
-
A natural function returns the same output for the same input.
- isNaturalFunction() - Method in class parsii.eval.UnaryFunction
-
- isNewLine() - Method in class parsii.tokenizer.Char
-
Determines if the value is a line break
- isNotEnd() - Method in class parsii.tokenizer.Token
-
- isNumber() - Method in class parsii.tokenizer.Token
-
Determines if this token is an integer or decimal number.
- isScientificDecimal() - Method in class parsii.tokenizer.Token
-
Determines if this token is a scientific decimal number (e.g.
- isSealed() - Method in class parsii.eval.BinaryOperation
-
Determines if the operation is sealed and operands must not be re-ordered.
- isSpecialIdentifier(String...) - Method in class parsii.tokenizer.Token
-
Determines if this token is a special identifier.
- isSpecialIdentifierWithContent(String, String...) - Method in class parsii.tokenizer.Token
-
Determines if this token is a special identifier with the given trigger.
- isString() - Method in class parsii.tokenizer.Token
-
Determines if this token is a string constant
- isSymbol(String...) - Method in class parsii.tokenizer.Token
-
Determines if this token is a symbol.
- isSymbolCharacter(Char) - Method in class parsii.tokenizer.Tokenizer
-
Determines if the given Char is a symbol character.
- isWhitepace() - Method in class parsii.tokenizer.Char
-
Determines if the value is a whitespace character like a blank, tab or line break
- itemBuffer - Variable in class parsii.tokenizer.Lookahead
-
Internal buffer containing items which where already created due to lookaheads.
- Scope - Class in parsii.eval
-
Contains a mapping of names to variables.
- Scope() - Constructor for class parsii.eval.Scope
-
Creates a new empty scope.
- seal() - Method in class parsii.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 parsii.tokenizer.Tokenizer
-
Sets the string which ends a block comment.
- setBlockCommentStart(String) - Method in class parsii.tokenizer.Tokenizer
-
Sets the string which stats a block comment.
- setContent(String) - Method in class parsii.tokenizer.Token
-
Externally sets the content used for this token.
- setDecimalSeparator(char) - Method in class parsii.tokenizer.Tokenizer
-
Sets the character which is recognized as decimal separator.
- setEffectiveDecimalSeparator(char) - Method in class parsii.tokenizer.Tokenizer
-
Sets the decimal separator used in the content of DECIMAL tokens.
- setFunction(Function) - Method in class parsii.eval.FunctionCall
-
Sets the function to evaluate.
- setGroupingSeparator(char) - Method in class parsii.tokenizer.Tokenizer
-
Sets the grouping separator accepting in numbers.
- setKeywordsCaseSensitive(boolean) - Method in class parsii.tokenizer.Tokenizer
-
Sets the case sensitiveness of keywords.
- setLeft(Expression) - Method in class parsii.eval.BinaryOperation
-
Replaces the left operand of the operation with the given expression.
- setLineComment(String) - Method in class parsii.tokenizer.Tokenizer
-
Sets the string which stats a line comment.
- setProblemCollector(List<ParseError>) - Method in class parsii.tokenizer.Lookahead
-
Installs the given problem collector.
- setProblemCollector(List<ParseError>) - Method in class parsii.tokenizer.Tokenizer
-
- setSource(String) - Method in class parsii.tokenizer.Token
-
Externally sets the source used for this token.
- setTrigger(String) - Method in class parsii.tokenizer.Token
-
Externally sets the trigger used for this token.
- setValue(double) - Method in class parsii.eval.Variable
-
Sets the value if the variable.
- SIGN - Static variable in class parsii.eval.Functions
-
- silentAddToContent(char) - Method in class parsii.tokenizer.Token
-
Adds a character to the content without adding it to the source.
- simplify() - Method in class parsii.eval.BinaryOperation
-
- simplify() - Method in interface parsii.eval.Expression
-
Returns a simplified version of this expression.
- simplify() - Method in class parsii.eval.FunctionCall
-
- simplify() - Method in class parsii.eval.VariableReference
-
- SIN - Static variable in class parsii.eval.Functions
-
- SINH - Static variable in class parsii.eval.Functions
-
- skipBlockComment() - Method in class parsii.tokenizer.Tokenizer
-
Checks if we're looking at an end of block comment
- skipToEndOfLine() - Method in class parsii.tokenizer.Tokenizer
-
Read everything upon (and including) the next line break
- SQRT - Static variable in class parsii.eval.Functions
-