|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.grammar.ProductionID
public class ProductionID
Production ID object. Used in AST nodes to describe the structure without needing the concrete productions used during parsing (so different grammars can share production IDs).
Constructor Summary | |
---|---|
ProductionID()
Constructs a new production ID object with null label. |
|
ProductionID(String label)
Constructs a new production ID object with the given label. |
Method Summary | |
---|---|
String |
getLabel()
Returns the label. |
boolean |
hasExplicitLabel()
Checks whether the label is explicit or auto-generated. |
void |
setLabel(String label)
Sets the label. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProductionID()
public ProductionID(String label)
Method Detail |
---|
public String getLabel()
public boolean hasExplicitLabel()
public void setLabel(String label)
label
- new label
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |