|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.chartparser.CPAbstractOption
public class CPAbstractOption
This class represents an abstract option for the chart parser. Such an abstract option consists of a category that represents possible next tokens and of a set of zero or more exceptions, also in the form of categories. The categories can be terminal or pre-terminal, but not non-terminal.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Category |
getCategory()
Returns the terminal or pre-terminal category that represents possible next tokens. |
java.lang.String |
getCategoryName()
Returns the name of the category that represents possible next tokens. |
Category[] |
getExceptions()
This method returns the exceptions. |
int |
hashCode()
|
boolean |
isFulfilledBy(Category c)
Returns true if the given category is fulfilled by this option. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Category getCategory()
public java.lang.String getCategoryName()
AbstractOption
getCategoryName
in interface AbstractOption
public Category[] getExceptions()
public boolean isFulfilledBy(Category c)
c
- The category.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |