Documentation of 'net.objecthunter.exp4j.shuntingyard.ShuntingYard' Java class
ShuntingYard
net.objecthunter.exp4j.shuntingyard

Class ShuntingYard



  • public class ShuntingYard
    extends java.lang.Object
    Shunting yard implementation to convert infix to reverse polish notation
    • Constructor Summary

      Constructors 
      Constructor and Description
      ShuntingYard() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static Token[] convertToRPN(java.lang.String expression, java.util.Map<java.lang.String,Function> userFunctions, java.util.Map<java.lang.String,Operator> userOperators, java.util.Set<java.lang.String> variableNames, boolean implicitMultiplication)
      Convert a Set of tokens from infix to reverse polish notation
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShuntingYard

        public ShuntingYard()
    • Method Detail

      • convertToRPN

        public static Token[] convertToRPN(java.lang.String expression,
                                           java.util.Map<java.lang.String,Function> userFunctions,
                                           java.util.Map<java.lang.String,Operator> userOperators,
                                           java.util.Set<java.lang.String> variableNames,
                                           boolean implicitMultiplication)
        Convert a Set of tokens from infix to reverse polish notation
        Parameters:
        expression - the expression to convert
        userFunctions - the custom functions used
        userOperators - the custom operators used
        variableNames - the variable names used in the expression
        implicitMultiplication - set to fasle to turn off implicit multiplication
        Returns:
        a Token array containing the result

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.