de.upb.hni.vmagic.object
Class RecordElement<T extends VhdlObject>

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.expression.Expression
          extended by de.upb.hni.vmagic.expression.Primary
              extended by de.upb.hni.vmagic.expression.VhdlObject<T>
                  extended by de.upb.hni.vmagic.object.ForwardingVhdlObject<T>
                      extended by de.upb.hni.vmagic.object.RecordElement<T>
Type Parameters:
T - the object type
All Implemented Interfaces:
Choice, NamedEntity, Target<T>, VhdlObjectProvider<T>

public class RecordElement<T extends VhdlObject>
extends ForwardingVhdlObject<T>
implements Target<T>

Record element.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.upb.hni.vmagic.expression.VhdlObject
VhdlObject.Mode, VhdlObject.ObjectClass
 
Constructor Summary
RecordElement(T base, java.lang.String element)
          Creates a record element.
 
Method Summary
 ArrayElement<T> getArrayElement(Expression... indices)
          Returns an array element of this object.
 ArrayElement<T> getArrayElement(Expression index)
          Returns an array element of this object.
 ArrayElement<T> getArrayElement(int index)
          Returns an array element of this object.
 ArrayElement<T> getArrayElement(java.util.List<Expression> indices)
          Returns an array element of this object.
 AttributeExpression<T> getAttributeExpression(Attribute attribute)
          Returns a attribute expression of this object.
 AttributeExpression<T> getAttributeExpression(Attribute attribute, Expression parameter)
          Returns a attribute expression of this object.
 java.lang.String getElement()
          Returns the identifier of the record element.
 RecordElement<T> getRecordElement(java.lang.String element)
          Returns a record element of this object.
 Slice<T> getSlice(DiscreteRange range)
          Returns a slice of this vhdl object.
 
Methods inherited from class de.upb.hni.vmagic.object.ForwardingVhdlObject
getBase, getIdentifier, getMode, getObjectClass, getType, getVhdlObjects, setIdentifier, setMode, setType
 
Methods inherited from class de.upb.hni.vmagic.expression.Primary
getPrecedence
 
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

RecordElement

public RecordElement(T base,
                     java.lang.String element)
Creates a record element.

Parameters:
base - the base object
element - the identifier of the element
Method Detail

getElement

public java.lang.String getElement()
Returns the identifier of the record element.

Returns:
the identifier

getSlice

public Slice<T> getSlice(DiscreteRange range)
Returns a slice of this vhdl object.

Specified by:
getSlice in class VhdlObject<T extends VhdlObject>
Parameters:
range - the slice range.
Returns:
the slice

getArrayElement

public ArrayElement<T> getArrayElement(Expression index)
Returns an array element of this object.

Specified by:
getArrayElement in class VhdlObject<T extends VhdlObject>
Parameters:
index - the index of the array element
Returns:
the array element

getArrayElement

public ArrayElement<T> getArrayElement(int index)
Returns an array element of this object.

Specified by:
getArrayElement in class VhdlObject<T extends VhdlObject>
Parameters:
index - the index of the array element
Returns:
the array element

getArrayElement

public ArrayElement<T> getArrayElement(java.util.List<Expression> indices)
Returns an array element of this object.

Specified by:
getArrayElement in class VhdlObject<T extends VhdlObject>
Parameters:
indices - the indices of the array element
Returns:
the array element

getArrayElement

public ArrayElement<T> getArrayElement(Expression... indices)
Returns an array element of this object.

Specified by:
getArrayElement in class VhdlObject<T extends VhdlObject>
Parameters:
indices - the indices of the array element
Returns:
the array element

getRecordElement

public RecordElement<T> getRecordElement(java.lang.String element)
Returns a record element of this object.

Specified by:
getRecordElement in class VhdlObject<T extends VhdlObject>
Parameters:
element - the identifier of the record element
Returns:
the record element

getAttributeExpression

public AttributeExpression<T> getAttributeExpression(Attribute attribute)
Returns a attribute expression of this object.

Specified by:
getAttributeExpression in class VhdlObject<T extends VhdlObject>
Parameters:
attribute - the attribute
Returns:
the record element

getAttributeExpression

public AttributeExpression<T> getAttributeExpression(Attribute attribute,
                                                     Expression parameter)
Returns a attribute expression of this object.

Specified by:
getAttributeExpression in class VhdlObject<T extends VhdlObject>
Parameters:
attribute - the attribute
parameter - the parameter
Returns:
the record element