de.upb.hni.vmagic.object
Class AttributeExpression<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.AttributeExpression<T>
Type Parameters:
T - the object type
All Implemented Interfaces:
Choice, NamedEntity, VhdlObjectProvider<T>

public class AttributeExpression<T extends VhdlObject>
extends ForwardingVhdlObject<T>

Attribute expression.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.upb.hni.vmagic.expression.VhdlObject
VhdlObject.Mode, VhdlObject.ObjectClass
 
Constructor Summary
AttributeExpression(T base, Attribute attribute)
          Creates an attribute expression.
AttributeExpression(T base, Attribute attribute, Expression parameter)
          Creates an attribute expression with a parameter.
 
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.
 Attribute getAttribute()
          Returns the attribute.
 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.
 Expression getParameter()
          Returns the parameter.
 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

AttributeExpression

public AttributeExpression(T base,
                           Attribute attribute)
Creates an attribute expression.

Parameters:
base - the base object
attribute - the attribute

AttributeExpression

public AttributeExpression(T base,
                           Attribute attribute,
                           Expression parameter)
Creates an attribute expression with a parameter.

Parameters:
base - the base object
attribute - the attribute
parameter - the parameter
Method Detail

getAttribute

public Attribute getAttribute()
Returns the attribute.

Returns:
the attribute

getParameter

public Expression getParameter()
Returns the parameter.

Returns:
the parameter

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