com.sonar.sslr.api
Interface Rule

All Superinterfaces:
AstNodeType

public interface Rule
extends AstNodeType

A Rule describes a grammar syntactic rule.

See Also:
Grammar, Backus�Naur Form

Method Summary
 Rule and(Object... matchers)
           
 Rule is(Object... matchers)
           
 Rule isOr(Object... matchers)
           
 void mock()
           
 void mockUpperCase()
           
 Rule or(Object... matchers)
           
 Rule orBefore(Object... matchers)
           
 Rule setListener(AstListener listener)
           
 Rule skip()
           
 Rule skipIf(AstNodeType policy)
           
 Rule skipIfOneChild()
           
 

Method Detail

is

Rule is(Object... matchers)

or

Rule or(Object... matchers)

and

Rule and(Object... matchers)

orBefore

Rule orBefore(Object... matchers)

isOr

Rule isOr(Object... matchers)

setListener

Rule setListener(AstListener listener)

skip

Rule skip()

skipIf

Rule skipIf(AstNodeType policy)

skipIfOneChild

Rule skipIfOneChild()

mockUpperCase

void mockUpperCase()

mock

void mock()


Copyright © 2010. All Rights Reserved.