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

Class PatternMatcherAndEvaluator

    • Constructor Detail

      • PatternMatcherAndEvaluator

        public PatternMatcherAndEvaluator(ISymbol setSymbol,
                                          IExpr leftHandSide,
                                          IExpr rightHandSide)
        Parameters:
        setSymbol - the symbol which defines this pattern-matching rule (i.e. Set, SetDelayed,...)
        leftHandSide - could contain pattern expressions for "pattern-matching"
        rightHandSide - the result which should be evaluated if the "pattern-matching" succeeds
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class PatternMatcher
        Throws:
        java.lang.CloneNotSupportedException
      • equals

        public boolean equals(java.lang.Object obj)
        Description copied from interface: Predicate
        Indicates whether another object is equal to this predicate.

        Most implementations will have no reason to override the behavior of Object.equals(java.lang.Object). However, an implementation may also choose to return true whenever object is a Predicate that it considers interchangeable with this one. "Interchangeable" typically means that this.apply(t) == that.apply(t) for all t of type T). Note that a false result from this method does not imply that the predicates are known not to be interchangeable.

        Specified by:
        equals in interface Predicate<IExpr>
        Overrides:
        equals in class PatternMatcher
      • eval

        public IExpr eval(IExpr lhsEvalExpr)
        Match the (left-hand-side) pattern with the given expression. If true evaluate the right-hand-side for the determined values of the patterns
        Overrides:
        eval in class PatternMatcher
        Parameters:
        ee -
        evalExpr -
        Returns:
      • getRHS

        public IExpr getRHS()
        Description copied from class: IPatternMatcher
        Get the "right-hand-side" of a pattern-matching rule.
        Overrides:
        getRHS in class IPatternMatcher
        Returns:
        null if no right-hand-side is defined for the pattern matcher
      • getSetSymbol

        public ISymbol getSetSymbol()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.