Documentation of 'org.matheclipse.core.patternmatching.HashedOrderlessMatcher' Java class
HashedOrderlessMatcher
org.matheclipse.core.patternmatching

Class HashedOrderlessMatcher



  • public class HashedOrderlessMatcher
    extends java.lang.Object
    Match two arguments of an Orderless AST into a new resulting expression.
    See Also:
    HashedPatternRules
    • Constructor Summary

      Constructors 
      Constructor and Description
      HashedOrderlessMatcher(boolean defaultHashCode) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IAST evaluate(IAST orderlessAST)
      Evaluate an Orderless AST with the defined HashedPatternRules.
      void setUpHashRule(IExpr lhs1, IExpr lhs2, IExpr rhs)
      Define the rule for the Orderless operator OP.
      void setUpHashRule(IExpr lhs1, IExpr lhs2, IExpr rhs, IExpr condition)
      Define the rule for the Orderless operator OP.
      void setUpHashRule(java.lang.String lhs1Str, java.lang.String lhs2Str, java.lang.String rhsStr)
      Define the rule for the Orderless operator OP.
      void setUpHashRule(java.lang.String lhs1Str, java.lang.String lhs2Str, java.lang.String rhsStr, java.lang.String conditionStr) 
      • Methods inherited from class java.lang.Object

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

      • HashedOrderlessMatcher

        public HashedOrderlessMatcher(boolean defaultHashCode)
    • Method Detail

      • setUpHashRule

        public void setUpHashRule(java.lang.String lhs1Str,
                                  java.lang.String lhs2Str,
                                  java.lang.String rhsStr)
                           throws SyntaxError
        Define the rule for the Orderless operator OP. OP[lhs1Str, rhsStr, ....] := OP[rhsStr, ...]
        Parameters:
        lhs1Str -
        lhs2Str -
        rhsStr -
        Throws:
        SyntaxError
      • setUpHashRule

        public void setUpHashRule(java.lang.String lhs1Str,
                                  java.lang.String lhs2Str,
                                  java.lang.String rhsStr,
                                  java.lang.String conditionStr)
                           throws SyntaxError
        Throws:
        SyntaxError
      • setUpHashRule

        public void setUpHashRule(IExpr lhs1,
                                  IExpr lhs2,
                                  IExpr rhs)
        Define the rule for the Orderless operator OP. OP[lhs1Str, rhsStr, ....] := OP[rhsStr, ...] /; condition
        Parameters:
        lhs1 -
        lhs2 -
        rhs -
      • setUpHashRule

        public void setUpHashRule(IExpr lhs1,
                                  IExpr lhs2,
                                  IExpr rhs,
                                  IExpr condition)
        Define the rule for the Orderless operator OP. OP[lhs1Str, rhsStr, ....] := OP[rhsStr, ...] /; condition
        Parameters:
        lhs1 -
        lhs2 -
        rhs -
        condition -
      • evaluate

        public IAST evaluate(IAST orderlessAST)
        Evaluate an Orderless AST with the defined HashedPatternRules.
        Parameters:
        orderlessAST -
        Returns:
        See Also:
        HashedPatternRules

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.