public class RuleExactMatch extends Object implements Rule
Constructor and Description |
---|
RuleExactMatch(String ruleName,
String pattern)
The rule specified as operator names separated by % symbols, the left side represents the
bottom of the stack.
|
public RuleExactMatch(String ruleName, String pattern)
ruleName
- name of the ruleregExp
- string specification of the rulepublic int cost(Stack<Node> stack) throws SemanticException
cost
in interface Rule
stack
- Node stack encountered so farSemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.