|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.grammar.Entity dk.brics.grammar.NonterminalEntity
public class NonterminalEntity
A nonterminal in a production.
Constructor Summary | |
---|---|
NonterminalEntity(String nonterminal,
String label,
String example)
Constructs a new nonterminal entity. |
Method Summary | ||
---|---|---|
String |
getNonterminal()
Returns the name of this nonterminal entity. |
|
String |
toString()
Returns string representation of this entity. |
|
|
visitBy(EntityVisitor<T> v)
Visits this entity with the given visitor. |
Methods inherited from class dk.brics.grammar.Entity |
---|
getExample, getLabel, isExplicitlyLabeled, isLabeled, setLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NonterminalEntity(String nonterminal, String label, String example) throws GrammarException
nonterminal
- nonterminallabel
- entity label, null if ignorableexample
- example string, null if absent
GrammarException
Method Detail |
---|
public String getNonterminal()
public String toString()
toString
in class Object
public <T> T visitBy(EntityVisitor<T> v)
Entity
visitBy
in class Entity
v
- entity visitor
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |