Class RuleImpl.WithMatcherCbState

java.lang.Object
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.MatcherCbState
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.WithMatcherCbState
Enclosing class:
RuleImpl

protected class RuleImpl.WithMatcherCbState extends RuleImpl.MatcherCbState
RuleImpl.MatcherCbState class for rules that have a Rule.getMatcher() code block.
  • Constructor Details

    • WithMatcherCbState

      protected WithMatcherCbState()
  • Method Details

    • matchFor

      public boolean matchFor(StackFrame frame, 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, Map<String,Object> valuesMap, 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