sdr 0.7

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

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

public static class Grm.Alt
extends Grm

Alternation: a|b.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.cscott.sdr.calls.grm.Grm
Grm.Alt, Grm.Concat, Grm.Mult, Grm.Nonterminal, Grm.Terminal
 
Field Summary
 List<Grm> alternates
           
 
Constructor Summary
Grm.Alt(List<Grm> alternates)
           
 
Method Summary
<T> T
accept(GrmVisitor<T> v)
           
protected  Grm.Alt 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

alternates

public final List<Grm> alternates
Constructor Detail

Grm.Alt

public Grm.Alt(List<Grm> alternates)
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.Alt 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