|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.chartparser.CPNextTokenOptions
public class CPNextTokenOptions
This class represents a set of options that describe how a partial text can be continued according to a given grammar, and contains specific code for its use in the chart parser.
| Method Summary | |
|---|---|
boolean |
containsCategory(Preterminal c)
Returns true if the given pre-terminal category represents a possible next token. |
boolean |
containsCategory(java.lang.String categoryName)
Returns true if the specifed category represents a possible next token. |
boolean |
containsToken(java.lang.String token)
Returns true if the specified token is a possible next token. |
java.util.Set<CPAbstractOption> |
getAbstractOptions()
Returns the abstract options. |
java.util.Set<CPAbstractOption> |
getAbstractOptions(java.lang.String categoryName)
Returns the abstract options that have a pre-terminal category with the specified name. |
java.util.Set<CPConcreteOption> |
getConcreteOptions()
Returns the concrete options. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.util.Set<CPAbstractOption> getAbstractOptions()
NextTokenOptions
getAbstractOptions in interface NextTokenOptionspublic java.util.Set<CPAbstractOption> getAbstractOptions(java.lang.String categoryName)
categoryName - The name of the category.
public java.util.Set<CPConcreteOption> getConcreteOptions()
NextTokenOptions
getConcreteOptions in interface NextTokenOptionspublic boolean containsToken(java.lang.String token)
NextTokenOptions
containsToken in interface NextTokenOptionstoken - The token text.
public boolean containsCategory(java.lang.String categoryName)
NextTokenOptions
containsCategory in interface NextTokenOptionscategoryName - The name of the category.
public boolean containsCategory(Preterminal c)
c - The pre-terminal category.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||