|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.varankin.bnf.WrappedDefinitionsList com.varankin.bnf.SyntaxRule
public final class SyntaxRule
A syntax-rule consists of a meta-identifier (the name of the non-terminal symbol being defined) followed by a defining-symbol followed by a definitions-list followed by a terminator-symbol.
Field Summary | |
---|---|
MetaIdentifier |
id
Name of non-terminal symbol. |
Fields inherited from class com.varankin.bnf.WrappedDefinitionsList |
---|
list |
Constructor Summary | |
---|---|
SyntaxRule(MetaIdentifier aId,
DefinitionsList aList)
|
Method Summary | |
---|---|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final MetaIdentifier id
Constructor Detail |
---|
public SyntaxRule(MetaIdentifier aId, DefinitionsList aList)
aId
- name of non-terminal symbol identifying the rule.aList
- definitions list comprising the rule.
java.lang.NullPointerException
- if either meta identifier or definitions list is null.Method Detail |
---|
public java.lang.String toString()
toString
in class WrappedDefinitionsList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |