dk.brics.string.grammar
Class Nonterminal

java.lang.Object
  extended by dk.brics.string.grammar.Nonterminal
All Implemented Interfaces:
GraphNode, Comparable<Nonterminal>

public class Nonterminal
extends Object
implements GraphNode, Comparable<Nonterminal>

Grammar nonterminal.


Method Summary
 int compareTo(Nonterminal n)
           
 boolean equals(Object obj)
           
 int getKey()
          Returns the key of this nonterminal.
 List<Production> getProductions()
          Returns the productions of this nonterminal.
 int hashCode()
           
 boolean isTaint()
           
 void setProductions(List<Production> p)
          Sets the productions of this nonterminal.
 void setTaint(boolean taint)
           
 String toString()
          Returns name of this nonterminal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Nonterminal n)
Specified by:
compareTo in interface Comparable<Nonterminal>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getKey

public int getKey()
Returns the key of this nonterminal.

Specified by:
getKey in interface GraphNode

getProductions

public List<Production> getProductions()
Returns the productions of this nonterminal.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

isTaint

public boolean isTaint()

setProductions

public void setProductions(List<Production> p)
Sets the productions of this nonterminal.


setTaint

public void setTaint(boolean taint)

toString

public String toString()
Returns name of this nonterminal.

Overrides:
toString in class Object


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