|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.build.ItemSetCollection
This class contains a collection of item sets.
Constructor Summary | |
ItemSetCollection(Grammar grammar,
FirstSetCollection firstsets)
Create a new collection of item sets, calculated with the aid of the grammar. |
|
ItemSetCollection(Grammar grammar,
FirstSetCollection firstsets,
org.apache.commons.logging.Log log)
Create a new collection of item sets, calculated with the aid of the grammar. |
Method Summary | |
int |
addItemSet(ItemSet itemset)
Add a itemset to this collection. |
boolean |
contains(ItemSet itemset)
If this collection contains the item set. |
boolean |
containsCore(ItemSet itemset)
If this collection contains the item set. |
ItemSet |
getItemSet(int index)
Return an item set given by an index. |
int |
getItemSetCount()
Return the count of item sets in this collection |
int |
indexOf(ItemSet itemset)
Return the index of an item set. |
int |
indexOfCore(ItemSet itemset)
Return the index of an item set. |
java.lang.String |
toString()
Return a string representation of the collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ItemSetCollection(Grammar grammar, FirstSetCollection firstsets)
grammar
- Grammar.firstsets
- First sets.public ItemSetCollection(Grammar grammar, FirstSetCollection firstsets, org.apache.commons.logging.Log log)
grammar
- Grammarfirstsets
- First sets.log
- Log, which should be used.Method Detail |
public int addItemSet(ItemSet itemset)
itemset
- Itemset.
public ItemSet getItemSet(int index)
index
- Index of the itemset.
public int getItemSetCount()
public int indexOf(ItemSet itemset)
itemset
- Itemset, which should be found.
public boolean contains(ItemSet itemset)
itemset
- Itemset, which should be found.
public int indexOfCore(ItemSet itemset)
itemset
- Itemset, which should be found.
public boolean containsCore(ItemSet itemset)
itemset
- Itemset, which should be found.
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |