|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
A Rule describes a grammar syntactic rule.
Grammar
,
Backus�Naur FormMethod Summary | |
---|---|
Rule |
and(Object... matchers)
|
Rule |
is(Object... matchers)
This method allows the define the current rule as the sequence of the matchers passed as parameters, respecting the order of the given matchers. |
Rule |
isOr(Object... matchers)
|
void |
mock()
|
void |
mockUpperCase()
|
Rule |
or(Object... matchers)
|
Rule |
orBefore(Object... matchers)
|
Rule |
override(Object... matchers)
This method has the same effect as RuleImpl#is(Object...) , except that it can be called more than once to redefine a rule from
scratch. |
Rule |
setListener(AstListener listener)
|
Rule |
skip()
|
Rule |
skipIf(AstNodeType policy)
|
Rule |
skipIfOneChild()
|
Method Detail |
---|
Rule is(Object... matchers)
override(Object...)
method must be used.
matchers
- the matchers that define the rule
override(Object...)
Rule override(Object... matchers)
RuleImpl#is(Object...)
, except that it can be called more than once to redefine a rule from
scratch. It can be used if the rule has to be redefined later (for instance in grammar extensions).
matchers
- the matchers that define the rule
RuleImpl#override(Object...)
Rule or(Object... matchers)
Rule and(Object... matchers)
Rule orBefore(Object... matchers)
Rule isOr(Object... matchers)
Rule setListener(AstListener listener)
Rule skip()
Rule skipIf(AstNodeType policy)
Rule skipIfOneChild()
void mockUpperCase()
void mock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |