Class RuleImpl.WithMatcherCbState

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected WithMatcherCbState()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matchFor​(StackFrame frame, java.lang.Object[] values)
      Matches this rule against values, and records a match in ExecEnv.getMatches() in case of a match.
      boolean matchFor​(StackFrame frame, java.util.Map<java.lang.String,​java.lang.Object> valuesMap, java.lang.Object[] values)
      Matches this rule against values, and records a match in ExecEnv.getMatches() in case of a match.
      • Methods inherited from class java.lang.Object

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

      • WithMatcherCbState

        protected WithMatcherCbState()
    • Method Detail

      • matchFor

        public boolean matchFor​(StackFrame frame,
                                java.lang.Object[] values)
        Matches this rule against values, and records a match in ExecEnv.getMatches() in case of a match.
        Overrides:
        matchFor in class RuleImpl.MatcherCbState
        Parameters:
        frame - the stack frame in which to run the matcher
        values - the source values to match
        Returns:
        true iff the rule matches
      • matchFor

        public boolean matchFor​(StackFrame frame,
                                java.util.Map<java.lang.String,​java.lang.Object> valuesMap,
                                java.lang.Object[] values)
        Matches this rule against values, and records a match in ExecEnv.getMatches() in case of a match.
        Overrides:
        matchFor in class RuleImpl.MatcherCbState
        Parameters:
        frame - the stack frame context
        valuesMap - the map of all values, including super-rule elements
        values - the source values to match against
        Returns:
        true iff this rule matches against values