|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.Entity
public abstract class Entity
Grammar production entity.
| Constructor Summary | |
|---|---|
protected |
Entity(String label,
String example)
Constructs a new entity. |
| Method Summary | ||
|---|---|---|
String |
getExample()
Returns the example string |
|
String |
getLabel()
Returns the label of this entity. |
|
boolean |
isExplicitlyLabeled()
Checks whether the label is explicit or auto-generated. |
|
boolean |
isLabeled()
Returns true if this entity is labeled. |
|
void |
setLabel(String label)
Sets the label. |
|
abstract
|
visitBy(EntityVisitor<T> v)
Visits this entity with the given visitor. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Entity(String label,
String example)
throws GrammarException
label - entity label, null if ignorableexample - example string, null if absent
GrammarException - if example string does not match the entity| Method Detail |
|---|
public String getExample()
public String getLabel()
public boolean isExplicitlyLabeled()
isLabeled()public boolean isLabeled()
isExplicitlyLabeled()public void setLabel(String label)
label - new labelpublic abstract <T> T visitBy(EntityVisitor<T> v)
v - entity visitor
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||