|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.base.SimpleNextTokenOptions
public class SimpleNextTokenOptions
This is a simple implementation of NextTokenOptions.
Constructor Summary | |
---|---|
SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions)
Creates a new object for the given concrete, without any abstract options. |
|
SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions,
java.util.Set<AbstractOption> aOptions)
Creates a new object for the given concrete and abstract options. |
Method Summary | |
---|---|
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<AbstractOption> |
getAbstractOptions()
Returns the abstract options. |
java.util.Set<ConcreteOption> |
getConcreteOptions()
Returns the concrete options. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions, java.util.Set<AbstractOption> aOptions)
cOptions
- The concrete options.aOptions
- The abstract options.public SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions)
cOptions
- The concrete options.Method Detail |
---|
public java.util.Set<AbstractOption> getAbstractOptions()
NextTokenOptions
getAbstractOptions
in interface NextTokenOptions
public java.util.Set<ConcreteOption> getConcreteOptions()
NextTokenOptions
getConcreteOptions
in interface NextTokenOptions
public boolean containsToken(java.lang.String token)
NextTokenOptions
containsToken
in interface NextTokenOptions
token
- The token text.
public boolean containsCategory(java.lang.String categoryName)
NextTokenOptions
containsCategory
in interface NextTokenOptions
categoryName
- The name of the category.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |