sdr 0.7

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

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

public static class Grm.Nonterminal
extends Grm

A nonterminal reference to an external rule.


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
 int param
           
 String prettyName
           
 String ruleName
           
 
Constructor Summary
Grm.Nonterminal(String ruleName, int param)
           
Grm.Nonterminal(String ruleName, String prettyName, int param)
           
 
Method Summary
<T> T
accept(GrmVisitor<T> v)
           
protected  Grm.Nonterminal 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

ruleName

public final String ruleName

prettyName

public final String prettyName

param

public final int param
Constructor Detail

Grm.Nonterminal

public Grm.Nonterminal(String ruleName,
                       int param)

Grm.Nonterminal

public Grm.Nonterminal(String ruleName,
                       String prettyName,
                       int param)
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.Nonterminal 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