de.upb.hni.vmagic.type
Class ArrayType

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
All Implemented Interfaces:
BlockDeclarativeItem, DeclarativeItemMarker, EntityDeclarativeItem, PackageBodyDeclarativeItem, PackageDeclarativeItem, ProcessDeclarativeItem, SubprogramDeclarativeItem, NamedEntity, SubtypeIndication
Direct Known Subclasses:
ConstrainedArray, UnconstrainedArray

public abstract class ArrayType
extends Type

Abstract base class for array types.


Constructor Summary
ArrayType(java.lang.String identifier, SubtypeIndication elementType)
          Creates array type.
 
Method Summary
 SubtypeIndication getElementType()
          Returns the type of the array elements.
 void setElementType(SubtypeIndication elementType)
          Sets the type of the array elements.
 
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

ArrayType

public ArrayType(java.lang.String identifier,
                 SubtypeIndication elementType)
Creates array type.

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

getElementType

public SubtypeIndication getElementType()
Returns the type of the array elements.

Returns:
the type

setElementType

public void setElementType(SubtypeIndication elementType)
Sets the type of the array elements.

Parameters:
elementType - the type