|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectDefinition
public class Definition
| Constructor Summary | |
|---|---|
Definition()
Create a new definition for a non-terminal |
|
| Method Summary | |
|---|---|
void |
add(Vector<String> prod)
pre: prod is a non-null vector of Strings |
Vector<String> |
get(int index)
pre: 0 <= index < size() post: return the production at given index |
int |
size()
post: return the number of productions |
String |
toString()
Print out the productions for this definition. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Definition()
| Method Detail |
|---|
public void add(Vector<String> prod)
post: prod is added as a production for the definition.
public int size()
public Vector<String> get(int index)
public String toString()
toString in class Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||