Uses of Class
org.mariuszgromada.math.mxparser.parsertokens.Token
-
Packages that use Token Package Description org.mariuszgromada.math.mxparser org.mariuszgromada.math.mxparser.parsertokens -
-
Uses of Token in org.mariuszgromada.math.mxparser
Fields in org.mariuszgromada.math.mxparser with type parameters of type Token Modifier and Type Field Description (package private) java.util.List<Token>HeadEqBody. headTokens(package private) java.util.List<Token>Expression. initialTokensList of expression tokens (words).(package private) java.util.List<Token>FunctionParameter. tokensprivate java.util.List<Token>Expression. tokensListthe initialTokens list keeps unchanged information about found tokens.Methods in org.mariuszgromada.math.mxparser that return types with arguments of type Token Modifier and Type Method Description private static java.util.List<Token>Expression. createInitialTokens(int startPos, int endPos, java.util.List<Token> tokensList)Creates string tokens list from the subexpression.java.util.List<Token>Expression. getCopyOfInitialTokens()Tokenizes expression string and returns tokens list, including: string, type, level.(package private) static java.util.List<Token>ExpressionUtils. getCopyOfInitialTokens(java.lang.String expressionString, java.util.List<Token> initialTokens)Tokenizes expression string and returns tokens list, including: string, type, level.(package private) java.util.List<Token>Expression. getInitialTokens()Gets initial tokens and returns copied listMethods in org.mariuszgromada.math.mxparser with parameters of type Token Modifier and Type Method Description private voidExpression. addFractionToken(Token token)Adds fraction token to the tokens listprivate voidExpression. assignKnownKeyword(Token token, KeyWord keyWord)Assign found known keyword to the tokenprivate booleanExpression. checkArgumentNameInCalculusOperator(Token token)Method used in case of implied multiplication, where x2x can be understood as x2*x sum( x2x, 1, 20, 2*x2x) x2x is not known and it will be prevented from split into x2*xprivate booleanExpression. checkFraction(Token token)Checks whether unknown token represents fraction provided as fraction or mixed fractionprivate booleanExpression. checkInternalSyntaxCalculusOperatorDerivative(java.lang.String recursionInfoLevel, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack, int paramsNumber, java.util.List<FunctionParameter> funParams)private booleanExpression. checkInternalSyntaxCalculusOperatorDerivativeNth(java.lang.String recursionInfoLevel, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack, int paramsNumber, java.util.List<FunctionParameter> funParams)private booleanExpression. checkInternalSyntaxCalculusOperatorForwardBackwardDiff(java.lang.String recursionInfoLevel, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack, int paramsNumber, java.util.List<FunctionParameter> funParams)private booleanExpression. checkInternalSyntaxCalculusOperatorIntegralSolve(java.lang.String recursionInfoLevel, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack, int paramsNumber, java.util.List<FunctionParameter> funParams)private booleanExpression. checkInternalSyntaxCalculusOperatorIterated(java.lang.String recursionInfoLevel, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack, int paramsNumber, java.util.List<FunctionParameter> funParams)private booleanExpression. checkNumberNameManyImpliedMultiplication(Token token, boolean parenthesisIsOnTheRight)Handles implied multiplication logic in case of a single continuous string, e.g.private booleanExpression. checkOtherNumberBases(Token token)Checks whether unknown token represents number literal provided in different numeral base system, where base is between 1 and 36.private booleanExpression. checkPartialSyntaxBinaryFunction(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxBuiltinConstant(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxCalculusOperator(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack)private booleanExpression. checkPartialSyntaxInvalidToken(java.lang.String recursionInfoLevel, Token token, java.lang.String tokenInfoMessage, java.util.Stack<SyntaxStackElement> syntaxStack)private booleanExpression. checkPartialSyntaxTernaryFunction(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxUnaryFunction(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxUserDefinedArgument(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxUserDefinedConstant(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenStr)private booleanExpression. checkPartialSyntaxUserDefinedFunction(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxUserDefinedRecursiveArgument(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkPartialSyntaxVariadicFunction(java.lang.String recursionInfoLevel, int tokenIndex, Token token, java.lang.String tokenInfoMessage)private booleanExpression. checkSpecialConstantName(Token token)Check whether we have a case of '[abc]'private voidExpression. initialTokensAdd(Token token)Handles implied multiplication while adding single token to the tokens list is checking preceding tokenprivate static voidExpression. performSyntaxStackPopIfEndOfSectionLevel(Token token, java.util.Stack<SyntaxStackElement> syntaxStack)(package private) static java.lang.StringExpressionUtils. tokenToString(Token token)private booleanExpression. tryAssignKnownKeyword(Token token)Tries to find known keyword for a given token via string matchingMethod parameters in org.mariuszgromada.math.mxparser with type arguments of type Token Modifier and Type Method Description private voidFunction. addHeadTokensArguments(java.util.List<Token> headTokens)static voidmXparser. consolePrint(java.util.List<Token> tokens)Prints tokens to the console.static voidmXparser. consolePrintln(java.util.List<Token> tokens)Prints tokens to the console.static voidmXparser. consolePrintTokens(java.util.List<Token> tokens)Prints tokens to the console.private static java.util.List<Token>Expression. createInitialTokens(int startPos, int endPos, java.util.List<Token> tokensList)Creates string tokens list from the subexpression.(package private) static voidExpressionUtils. evaluateTokensLevels(java.util.List<Token> initialTokens)Evaluates tokens levels(package private) static java.util.List<Token>ExpressionUtils. getCopyOfInitialTokens(java.lang.String expressionString, java.util.List<Token> initialTokens)Tokenizes expression string and returns tokens list, including: string, type, level.(package private) static java.util.List<FunctionParameter>ExpressionUtils. getFunctionParameters(int pos, java.util.List<Token> tokensList)Returns list of the functions parameters.(package private) static java.lang.String[]ExpressionUtils. getMissingUserDefinedArguments(java.util.List<Token> tokens)Returns missing user defined arguments names, i.e.(package private) static java.lang.String[]ExpressionUtils. getMissingUserDefinedFunctions(java.util.List<Token> tokens)Returns missing user defined functions names, i.e.(package private) static java.lang.String[]ExpressionUtils. getMissingUserDefinedUnits(java.util.List<Token> tokens)Returns missing user defined units names, i.e.(package private) static voidExpressionUtils. showParsing(int lPos, int rPos, java.util.List<Token> tokensList)Shows parsing (verbose mode purposes).(package private) static voidExpression. showTokens(java.util.List<Token> tokensList)(package private) static voidExpressionUtils. showTokens(java.util.List<Token> tokensList)(package private) static java.lang.StringExpressionUtils. tokensListToString(java.util.List<Token> tokensList)private static voidExpression. updateMissingTokens(java.util.List<Token> tokens, java.lang.String keyWord, int tokenId, int tokenTypeId)Updating missing tokens (i.e.Constructor parameters in org.mariuszgromada.math.mxparser with type arguments of type Token Constructor Description Expression(java.lang.String expressionString, java.util.List<Token> initialTokens, java.util.List<Argument> argumentsList, java.util.List<Function> functionsList, java.util.List<Constant> constantsList, boolean disableUlpRounding, boolean UDFExpression, java.util.List<java.lang.Double> UDFVariadicParamsAtRunTime)Package level constructor - creates new expression from subexpression (sublist of the tokens list), arguments list, functions list and constants list (used by the internal calculus operations, etc...).FunctionParameter(java.util.List<Token> tokens, java.lang.String paramStr, int fromIndex, int toIndex) -
Uses of Token in org.mariuszgromada.math.mxparser.parsertokens
Methods in org.mariuszgromada.math.mxparser.parsertokens that return Token Modifier and Type Method Description TokenToken. clone()static TokenToken. clone(Token token)Token cloning.static TokenToken. makeMultiplyToken()Creates token representing multiplication operator.Methods in org.mariuszgromada.math.mxparser.parsertokens with parameters of type Token Modifier and Type Method Description static TokenToken. clone(Token token)Token cloning.static booleanToken. isBinaryOperator(Token token)Verification if the token is a binary operator.static booleanToken. isIdentifier(Token token)Verification if the token is an identifier.static booleanToken. isLeftParenthesis(Token token)Verification if the token is a left parenthesis.static booleanToken. isNumber(Token token)Verification if the token is a number.static booleanToken. isParameterSeparator(Token token)Verification if the token is a parameter separator.static booleanToken. isRightParenthesis(Token token)Verification if the token is a right parenthesis.static booleanToken. isSpecialTokenName(Token token)Verification if the token is represented by a special name in the form [...].static booleanToken. isUnaryLeftOperator(Token token)Verification if the token is a left unary operator.static booleanToken. isUnaryRightOperator(Token token)Verification if the token is a right unary operator.static booleanToken. isUnicodeRootOperator(Token token)Verification if the token represents unicode root operator
-