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

Class PatternMatcherAndInvoker

    • Constructor Detail

      • PatternMatcherAndInvoker

        public PatternMatcherAndInvoker(IExpr leftHandSide,
                                        IFunctionEvaluator instance,
                                        java.lang.String methodName)
        Create a pattern-matching rule which invokes the method name in the given instance, if leftHandSide is matching.
        Parameters:
        leftHandSide - could contain pattern expressions for "pattern-matching"
        instance - instance of an IFunctionEvaluator interface
        method - method to call
      • PatternMatcherAndInvoker

        public PatternMatcherAndInvoker(java.lang.String leftHandSide,
                                        IFunctionEvaluator instance,
                                        java.lang.String methodName)
        Create a pattern-matching rule which invokes the method name in the given instance, if leftHandSide is matching.
        Parameters:
        leftHandSide -
        instance -
        methodName -
    • Method Detail

      • clone

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

        public IExpr eval(IExpr leftHandSide)
        Description copied from class: IPatternMatcher
        Match the given left-hand-side and return an evaluated expression
        Overrides:
        eval in class PatternMatcher
        Returns:
        null if the match wasn't successful, the evaluated expression otherwise.
      • 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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.