sdr 0.7

net.cscott.sdr.calls.grm
Class Grm.Mult

java.lang.Object
  extended by net.cscott.sdr.calls.grm.Grm
      extended by net.cscott.sdr.calls.grm.Grm.Mult
Enclosing class:
Grm

public static class Grm.Mult
extends Grm

Multiplicity marker: a*, a+, or a?.


Nested Class Summary
static class Grm.Mult.Type
          Type of multiplicity marker: Grm.Mult.Type.STAR, Grm.Mult.Type.PLUS, or Grm.Mult.Type.QUESTION.
 
Nested classes/interfaces inherited from class net.cscott.sdr.calls.grm.Grm
Grm.Alt, Grm.Concat, Grm.Mult, Grm.Nonterminal, Grm.Terminal
 
Field Summary
 Grm operand
           
 Grm.Mult.Type type
           
 
Constructor Summary
Grm.Mult(Grm operand, Grm.Mult.Type type)
           
 
Method Summary
<T> T
accept(GrmVisitor<T> v)
           
protected  Grm.Mult buildIntern()
           
protected  String getName()
           
protected  List<Grm> getOperands()
           
 int precedence()
           
 void repr(StringBuilder sb)
           
 
Methods inherited from class net.cscott.sdr.calls.grm.Grm
equals, grammar, hashCode, intern, mkGrm, parse, repr, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

operand

public final Grm operand

type

public final Grm.Mult.Type type
Constructor Detail

Grm.Mult

public Grm.Mult(Grm operand,
                Grm.Mult.Type type)
Method Detail

precedence

public int precedence()
Specified by:
precedence in class Grm

accept

public <T> T accept(GrmVisitor<T> v)
Specified by:
accept in class Grm

repr

public void repr(StringBuilder sb)
Specified by:
repr in class Grm

buildIntern

protected Grm.Mult buildIntern()
Specified by:
buildIntern in class Grm

getName

protected String getName()
Specified by:
getName in class Grm

getOperands

protected List<Grm> getOperands()
Specified by:
getOperands in class Grm

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian