dk.brics.string.grammar
Class BinaryProduction

java.lang.Object
  extended by dk.brics.string.grammar.Production
      extended by dk.brics.string.grammar.BinaryProduction

public class BinaryProduction
extends Production

Binary production [a -> op2(b,c)].


Method Summary
 Nonterminal getNonterminal1()
          Returns the first nonterminal.
 Nonterminal getNonterminal2()
          Returns the second nonterminal.
 BinaryOperation getOperation()
          Returns the operation.
 String toString()
           
 void visitBy(Nonterminal a, ProductionVisitor v)
          Visits this production with the given visitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getNonterminal1

public Nonterminal getNonterminal1()
Returns the first nonterminal.


getNonterminal2

public Nonterminal getNonterminal2()
Returns the second nonterminal.


getOperation

public BinaryOperation getOperation()
Returns the operation.


toString

public String toString()
Overrides:
toString in class Object

visitBy

public void visitBy(Nonterminal a,
                    ProductionVisitor v)
Description copied from class: Production
Visits this production with the given visitor.

Specified by:
visitBy in class Production


Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.