public class RuleExactMatch extends java.lang.Object implements Rule
| Constructor and Description |
|---|
RuleExactMatch(java.lang.String ruleName,
java.lang.String pattern)
The rule specified as operator names separated by % symbols, the left side represents the
bottom of the stack.
|
| Modifier and Type | Method and Description |
|---|---|
int |
cost(java.util.Stack<Node> stack)
This function returns the cost of the rule for the specified stack.
|
java.lang.String |
getName() |
public RuleExactMatch(java.lang.String ruleName,
java.lang.String pattern)
ruleName - name of the ruleregExp - string specification of the rulepublic int cost(java.util.Stack<Node> stack) throws SemanticException
cost in interface Rulestack - Node stack encountered so farSemanticExceptionCopyright © 2012 The Apache Software Foundation