chrriis.grammar.model
Class Repetition

java.lang.Object
  extended by chrriis.grammar.model.Expression
      extended by chrriis.grammar.model.Repetition

public class Repetition
extends Expression

Author:
Christopher Deckers

Constructor Summary
Repetition(Expression expression, int minRepetitionCount, Integer maxRepetitionCount)
           
 
Method Summary
 Expression getExpression()
           
 Integer getMaxRepetitionCount()
           
 int getMinRepetitionCount()
           
protected  void toBNF(GrammarToBNF grammarToBNF, StringBuilder sb, boolean isNested)
           
protected  RRElement toRRElement(GrammarToRRDiagram grammarToRRDiagram)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repetition

public Repetition(Expression expression,
                  int minRepetitionCount,
                  Integer maxRepetitionCount)
Method Detail

getExpression

public Expression getExpression()

getMinRepetitionCount

public int getMinRepetitionCount()

getMaxRepetitionCount

public Integer getMaxRepetitionCount()

toRRElement

protected RRElement toRRElement(GrammarToRRDiagram grammarToRRDiagram)
Specified by:
toRRElement in class Expression

toBNF

protected void toBNF(GrammarToBNF grammarToBNF,
                     StringBuilder sb,
                     boolean isNested)
Specified by:
toBNF in class Expression