|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.util.VhdlCollections
public class VhdlCollections
Vhdl collection utility class.
Method Summary | ||
---|---|---|
static
|
createDeclarationList()
Creates a declaration list. |
|
static
|
createDeclarationList(java.util.List<E> list)
Creates a declaration list. |
|
static
|
createLabeledElementList(DeclarativeRegion parent)
Creates a list of labeled elements. |
|
static
|
createLabeledElementList(DeclarativeRegion parent,
java.util.List<E> list)
Creates a list of labeled elements. |
|
static
|
createNamedEntityList(DeclarativeRegion parent)
Creates a list of named entities. |
|
static
|
createNamedEntityList(DeclarativeRegion parent,
java.util.List<E> list)
Creates a list of named entities. |
|
static
|
createVhdlObjectList()
Creates a list of VHDL objects. |
|
static
|
createVhdlObjectList(java.util.List<E> list)
Creates a list of VHDL objects. |
|
static
|
getAll(java.util.List<E> list,
java.lang.Class<T> clazz)
Returns a list that contains all elements in another list which are instances of the given class. |
|
static
|
getByIdentifier(java.util.List<E> list,
java.lang.Class<T> clazz,
java.lang.String identifier)
Returns an element by it's identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T,E> java.util.List<T> getAll(java.util.List<E> list, java.lang.Class<T> clazz)
T
- the type of the elements that should be returnedE
- the type of the elements in the original listlist
- the original listclazz
- the type of the elements that should be returned
public static <T extends NamedEntity,E> T getByIdentifier(java.util.List<E> list, java.lang.Class<T> clazz, java.lang.String identifier)
T
- the searched typeE
- the list element typelist
- the listclazz
- the searched typeidentifier
- the identifier
null
if no matching element existspublic static <E extends DeclarativeItemMarker> ResolvableList<E> createDeclarationList()
E
- the element type
public static <E extends DeclarativeItemMarker> ResolvableList<E> createDeclarationList(java.util.List<E> list)
E
- the element typelist
- a list that is used to initialize the list
public static <E extends VhdlObjectProvider<? extends VhdlObject>> ResolvableList<E> createVhdlObjectList()
E
- the element type
public static <E extends VhdlObjectProvider<? extends VhdlObject>> ResolvableList<E> createVhdlObjectList(java.util.List<E> list)
E
- the element typelist
- a list that is used to initialize the list
public static <E extends LabeledElement> ResolvableList<E> createLabeledElementList(DeclarativeRegion parent)
E
- the element typeparent
- the parent
public static <E extends LabeledElement> ResolvableList<E> createLabeledElementList(DeclarativeRegion parent, java.util.List<E> list)
E
- the element typeparent
- the parentlist
- a list that is used to initialize the list
public static <E extends VhdlElement> ResolvableList<E> createNamedEntityList(DeclarativeRegion parent)
E
- the element typeparent
- the parent
public static <E extends VhdlElement> ResolvableList<E> createNamedEntityList(DeclarativeRegion parent, java.util.List<E> list)
E
- the element typeparent
- the parentlist
- a list that is used to initialize the list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |