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

Class PatternMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class PatternMap
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    A map from a pattern to a possibly found value during pattern-matching.
    See Also:
    Serialized Form
    • Constructor Detail

      • PatternMap

        public PatternMap()
    • Method Detail

      • copyPatternValuesFromPatternMatcher

        public void copyPatternValuesFromPatternMatcher(PatternMap patternMap)
        Copy the found pattern matches from the given patternMap back to this maps pattern values.
        Parameters:
        patternMap -
      • getValuesAsList

        public java.util.List<IExpr> getValuesAsList()
      • isAllPatternsAssigned

        public boolean isAllPatternsAssigned()
        Check if all symbols in the symbols array have corresponding values assigned.
        Returns:
      • isRuleWithoutPatterns

        public boolean isRuleWithoutPatterns()
        Returns true if the given expression contains no patterns
        Returns:
      • resetPattern

        public void resetPattern(IExpr[] patternValuesArray)
        Reset the values to the values in the given array
        Parameters:
        patternValuesArray -
        See Also:
        copyPattern()
      • size

        public int size()
      • substitutePatternSymbols

        public IExpr substitutePatternSymbols(IExpr expression)
        Substitute all symbols in the given expression with the current value of the given arrays
        Parameters:
        expression -
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.