de.upb.hni.vmagic
Class RangeAttributeName

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.RangeAttributeName
All Implemented Interfaces:
Choice, DiscreteRange, RangeProvider

public class RangeAttributeName
extends VhdlElement
implements RangeProvider

Range attribute name.


Nested Class Summary
static class RangeAttributeName.Type
          Type of a range attribute name.
 
Constructor Summary
RangeAttributeName(java.lang.String prefix, RangeAttributeName.Type type)
          Creates a range attribute name.
RangeAttributeName(java.lang.String prefix, RangeAttributeName.Type type, Expression index)
          Creates a range attribute name.
 
Method Summary
 Expression getIndex()
          Returns the index.
 java.lang.String getPrefix()
          Returns the prefix.
 RangeAttributeName.Type getType()
          Returns the type.
 void setIndex(Expression index)
          Sets the index.
 void setPrefix(java.lang.String prefix)
          Sets the prefix.
 void setType(RangeAttributeName.Type type)
          Sets the type.
 
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

RangeAttributeName

public RangeAttributeName(java.lang.String prefix,
                          RangeAttributeName.Type type)
Creates a range attribute name.

Parameters:
prefix - the prefix
type - the type

RangeAttributeName

public RangeAttributeName(java.lang.String prefix,
                          RangeAttributeName.Type type,
                          Expression index)
Creates a range attribute name.

Parameters:
prefix - the prefix
type - the type
index - the index
Method Detail

getIndex

public Expression getIndex()
Returns the index.

Returns:
the index

setIndex

public void setIndex(Expression index)
Sets the index.

Parameters:
index - the index

getPrefix

public java.lang.String getPrefix()
Returns the prefix.

Returns:
the prefix

setPrefix

public void setPrefix(java.lang.String prefix)
Sets the prefix.

Parameters:
prefix - the prefix

getType

public RangeAttributeName.Type getType()
Returns the type.

Returns:
the type

setType

public void setType(RangeAttributeName.Type type)
Sets the type.

Parameters:
type - the type