|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.common.spec.grammar.Rule
public class Rule
Project: Caymman(DSC/UFCG) Description: This class represents a rule of a grammar.
Constructor Summary | |
---|---|
Rule(int id,
Symbol head,
Symbol[] body)
Constructor |
Method Summary | |
---|---|
Symbol[] |
getBody()
Gets the body of the rule. |
Symbol |
getHead()
Gets the head of the rule. |
int |
getID()
Gets the identification of the rule. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rule(int id, Symbol head, Symbol[] body) throws InvalidRuleException
id
- The identification of the rule.head
- The head of the rule. A head is the leftmost side of a rule
in a grammar.body
- The body of the rule. A body is the leftmost side of a rule
in a grammar.
InvalidRuleException
Method Detail |
---|
public Symbol[] getBody()
public Symbol getHead()
public int getID()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |