de.upb.hni.vmagic.type
Class ConstrainedArray

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.type.Type
          extended by de.upb.hni.vmagic.type.ArrayType
              extended by de.upb.hni.vmagic.type.ConstrainedArray
All Implemented Interfaces:
BlockDeclarativeItem, DeclarativeItemMarker, EntityDeclarativeItem, PackageBodyDeclarativeItem, PackageDeclarativeItem, ProcessDeclarativeItem, SubprogramDeclarativeItem, NamedEntity, SubtypeIndication

public class ConstrainedArray
extends ArrayType

Constrained array.


Constructor Summary
ConstrainedArray(java.lang.String identifier, SubtypeIndication elementType, DiscreteRange... indexRanges)
          Creates a constrained array.
ConstrainedArray(java.lang.String identifier, SubtypeIndication elementType, java.util.List<DiscreteRange> indexRanges)
          Creates a constrained array.
 
Method Summary
 java.util.List<DiscreteRange> getIndexRanges()
          Returns the index ranges.
 
Methods inherited from class de.upb.hni.vmagic.type.ArrayType
getElementType, setElementType
 
Methods inherited from class de.upb.hni.vmagic.type.Type
getIdentifier, setIdentifier
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstrainedArray

public ConstrainedArray(java.lang.String identifier,
                        SubtypeIndication elementType,
                        DiscreteRange... indexRanges)
Creates a constrained array.

Parameters:
identifier - the identifier
elementType - the type of the array elements
indexRanges - the index ranges

ConstrainedArray

public ConstrainedArray(java.lang.String identifier,
                        SubtypeIndication elementType,
                        java.util.List<DiscreteRange> indexRanges)
Creates a constrained array.

Parameters:
identifier - the identifier
elementType - the type of the array elements
indexRanges - the index ranges
Method Detail

getIndexRanges

public java.util.List<DiscreteRange> getIndexRanges()
Returns the index ranges.

Returns:
a modifiable list of index ranges