Uses of Class
org.mariuszgromada.math.mxparser.parsertokens.Token
Packages that use Token
-
Uses of Token in org.mariuszgromada.math.mxparser
Fields in org.mariuszgromada.math.mxparser with type parameters of type TokenModifier and TypeFieldDescriptionHeadEqBody.headTokensExpression.initialTokensList of expression tokens (words).FunctionParameter.tokensExpression.tokensListthe initialTokens list keeps unchanged information about found tokens.Methods in org.mariuszgromada.math.mxparser that return types with arguments of type TokenModifier and TypeMethodDescriptionExpression.createInitialTokens(int startPos, int endPos, List<Token> tokensList) Creates string tokens list from the subexpression.Expression.getCopyOfInitialTokens()Tokenizes expression string and returns tokens list, including: string, type, level.ExpressionUtils.getCopyOfInitialTokens(String expressionString, List<Token> initialTokens) Tokenizes expression string and returns tokens list, including: string, type, level.Expression.getInitialTokens()Gets initial tokens and returns copied listMethods in org.mariuszgromada.math.mxparser with parameters of type TokenModifier and TypeMethodDescriptionprivate 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(String recursionInfoLevel, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack, int paramsNumber, List<FunctionParameter> funParams) private booleanExpression.checkInternalSyntaxCalculusOperatorDerivativeNth(String recursionInfoLevel, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack, int paramsNumber, List<FunctionParameter> funParams) private booleanExpression.checkInternalSyntaxCalculusOperatorForwardBackwardDiff(String recursionInfoLevel, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack, int paramsNumber, List<FunctionParameter> funParams) private booleanExpression.checkInternalSyntaxCalculusOperatorIntegralSolve(String recursionInfoLevel, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack, int paramsNumber, List<FunctionParameter> funParams) private booleanExpression.checkInternalSyntaxCalculusOperatorIterated(String recursionInfoLevel, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack, int paramsNumber, 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(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxBuiltinConstant(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxCalculusOperator(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack) private booleanExpression.checkPartialSyntaxInvalidToken(String recursionInfoLevel, Token token, String tokenInfoMessage, Stack<SyntaxStackElement> syntaxStack) private booleanExpression.checkPartialSyntaxTernaryFunction(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxUnaryFunction(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxUserDefinedArgument(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxUserDefinedConstant(String recursionInfoLevel, int tokenIndex, Token token, String tokenStr) private booleanExpression.checkPartialSyntaxUserDefinedFunction(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxUserDefinedRecursiveArgument(String recursionInfoLevel, int tokenIndex, Token token, String tokenInfoMessage) private booleanExpression.checkPartialSyntaxVariadicFunction(String recursionInfoLevel, int tokenIndex, Token token, 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, Stack<SyntaxStackElement> syntaxStack) (package private) static 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 TokenModifier and TypeMethodDescriptionprivate voidFunction.addHeadTokensArguments(List<Token> headTokens) static voidmXparser.consolePrint(List<Token> tokens) Prints tokens to the console.static voidmXparser.consolePrintln(List<Token> tokens) Prints tokens to the console.static voidmXparser.consolePrintTokens(List<Token> tokens) Prints tokens to the console.Expression.createInitialTokens(int startPos, int endPos, List<Token> tokensList) Creates string tokens list from the subexpression.(package private) static voidExpressionUtils.evaluateTokensLevels(List<Token> initialTokens) Evaluates tokens levelsExpressionUtils.getCopyOfInitialTokens(String expressionString, List<Token> initialTokens) Tokenizes expression string and returns tokens list, including: string, type, level.(package private) static List<FunctionParameter> ExpressionUtils.getFunctionParameters(int pos, List<Token> tokensList) Returns list of the functions parameters.(package private) static String[]ExpressionUtils.getMissingUserDefinedArguments(List<Token> tokens) Returns missing user defined arguments names, i.e.(package private) static String[]ExpressionUtils.getMissingUserDefinedFunctions(List<Token> tokens) Returns missing user defined functions names, i.e.(package private) static String[]ExpressionUtils.getMissingUserDefinedUnits(List<Token> tokens) Returns missing user defined units names, i.e.(package private) static voidExpressionUtils.showParsing(int lPos, int rPos, List<Token> tokensList) Shows parsing (verbose mode purposes).(package private) static voidExpression.showTokens(List<Token> tokensList) (package private) static voidExpressionUtils.showTokens(List<Token> tokensList) (package private) static StringExpressionUtils.tokensListToString(List<Token> tokensList) private static voidExpression.updateMissingTokens(List<Token> tokens, String keyWord, int tokenId, int tokenTypeId) Updating missing tokens (i.e.Constructor parameters in org.mariuszgromada.math.mxparser with type arguments of type TokenModifierConstructorDescription(package private)Expression(String expressionString, List<Token> initialTokens, List<Argument> argumentsList, List<Function> functionsList, List<Constant> constantsList, boolean disableUlpRounding, boolean UDFExpression, List<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...).(package private)FunctionParameter(List<Token> tokens, String paramStr, int fromIndex, int toIndex) -
Uses of Token in org.mariuszgromada.math.mxparser.parsertokens
Methods in org.mariuszgromada.math.mxparser.parsertokens that return TokenModifier and TypeMethodDescriptionToken.clone()static TokenToken cloning.static TokenToken.makeMultiplyToken()Creates token representing multiplication operator.Methods in org.mariuszgromada.math.mxparser.parsertokens with parameters of type TokenModifier and TypeMethodDescriptionstatic TokenToken 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 booleanVerification 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