|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.grammar.Production
public class Production
A grammar production.
| Constructor Summary | |
|---|---|
Production(String nonterminal,
List<Entity> entities,
boolean unordered,
ProductionID id,
int priority)
Constructs a new grammar production. |
|
| Method Summary | |
|---|---|
List<Entity> |
getEntities()
Returns the entities. |
ProductionID |
getID()
Returns the production ID. |
String |
getNonterminal()
Returns the left-hand-side nonterminal. |
int |
getPriority()
Returns the priority of this production. |
boolean |
isUnfolded()
Checks whether this production results from grammar unfolding. |
boolean |
isUnordered()
Returns true if this is a unordered production. |
String |
print(Collection<Entity> remaining)
Prints this production. |
void |
setEntities(List<Entity> entities)
Sets the entities. |
void |
setUnfolded()
Marks this production as one that results from grammr unfolding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Production(String nonterminal,
List<Entity> entities,
boolean unordered,
ProductionID id,
int priority)
nonterminal - nonterminalentities - entity listunordered - true if 'unordered' production, false if 'ordered' productionid - production IDpriority - priority| Method Detail |
|---|
public List<Entity> getEntities()
public ProductionID getID()
public String getNonterminal()
public int getPriority()
public boolean isUnfolded()
public boolean isUnordered()
public String print(Collection<Entity> remaining)
remaining - remaining entities
public void setEntities(List<Entity> entities)
entities - new entitiespublic void setUnfolded()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||