|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.test.synth.BnfRandom
public class BnfRandom
A BNF visitor that generates a random SQL statement.
Method Summary | |
---|---|
java.lang.String |
getRandomSQL()
|
int |
getStatementCount()
|
void |
setSeed(int seed)
|
void |
visitRuleElement(boolean keyword,
java.lang.String name,
Rule link)
Visit a rule element. |
void |
visitRuleFixed(int type)
Visit a fixed rule. |
void |
visitRuleList(boolean or,
java.util.ArrayList<Rule> list)
Visit a rule list. |
void |
visitRuleOptional(Rule rule)
Visit an optional rule. |
void |
visitRuleRepeat(boolean comma,
Rule rule)
Visit a repeat rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getRandomSQL()
public void visitRuleElement(boolean keyword, java.lang.String name, Rule link)
BnfVisitor
visitRuleElement
in interface BnfVisitor
keyword
- whether this is a keywordname
- the element namelink
- the linked rule if it's not a keywordpublic void visitRuleFixed(int type)
BnfVisitor
visitRuleFixed
in interface BnfVisitor
type
- the typepublic void visitRuleList(boolean or, java.util.ArrayList<Rule> list)
BnfVisitor
visitRuleList
in interface BnfVisitor
or
- true for OR, false for ANDlist
- the rulespublic void visitRuleOptional(Rule rule)
BnfVisitor
visitRuleOptional
in interface BnfVisitor
rule
- the rulepublic void visitRuleRepeat(boolean comma, Rule rule)
BnfVisitor
visitRuleRepeat
in interface BnfVisitor
comma
- whether the comma is repeated as wellrule
- the element to repeatpublic void setSeed(int seed)
public int getStatementCount()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |