public class DefaultGrammarSet extends java.lang.Object implements GrammarSet
EMPTY_UNMODIFIABLEBASICLIST
EMPTY_GETITEMWITHSIZEANDITERATOR
Constructor and Description |
---|
DefaultGrammarSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(Grammar grammar) |
boolean |
contains(Grammar grammar) |
Grammar |
get(int i) |
Statement |
getApplicableStatement(Statement.StatementContext context) |
boolean |
isEmpty() |
boolean |
isReservedWord(java.lang.String id) |
java.util.Iterator<Grammar> |
iterator() |
int |
size() |
java.util.List<Grammar> |
toList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEmpty, isEmpty, isEmptyQuietly
public Statement getApplicableStatement(Statement.StatementContext context)
getApplicableStatement
in interface GrammarSet
public boolean isReservedWord(java.lang.String id)
isReservedWord
in interface GrammarSet
public boolean contains(Grammar grammar)
contains
in interface GrammarSet
public void add(Grammar grammar)
add
in interface GrammarSet
public java.util.List<Grammar> toList()
toList
in interface UnmodifiableBasicList<Grammar>