de.upb.hni.vmagic.object
Class FileObject

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.FileObject
All Implemented Interfaces:
Choice, NamedEntity, VhdlObjectProvider<FileObject>

public class FileObject
extends VhdlObject<T>

VHDL File Object.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.upb.hni.vmagic.expression.VhdlObject
VhdlObject.Mode, VhdlObject.ObjectClass
 
Constructor Summary
FileObject(java.lang.String identifier, SubtypeIndication type)
          Creates a file.
FileObject(java.lang.String identifier, SubtypeIndication type, Expression logicalName)
          Creates a file.
FileObject(java.lang.String identifier, SubtypeIndication type, Expression openKind, Expression logicalName)
          Creates a file.
 
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 getIdentifier()
          Returns the identifier of this object.
 Expression getLogicalName()
          Returns the logical name.
 VhdlObject.Mode getMode()
          Returns the mode of this vhdl object.
 VhdlObject.ObjectClass getObjectClass()
          Returns the type of this VhdlObject.
 Expression getOpenKind()
          Returns the file open kind.
 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.
 SubtypeIndication getType()
          Returns the type of this object.
 java.util.List<FileObject> getVhdlObjects()
          Returns a list of VhdlObject that are contained in this VhdlObjectProvider.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier of this object.
 void setLogicalName(Expression logicalName)
          Sets the logical name.
 void setMode(VhdlObject.Mode mode)
          Sets the mode of this vhdl object.
 void setOpenKind(Expression openKind)
          Sets the file open kind.
 void setType(SubtypeIndication type)
          Sets the type of this object.
 
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

FileObject

public FileObject(java.lang.String identifier,
                  SubtypeIndication type,
                  Expression openKind,
                  Expression logicalName)
Creates a file.

Parameters:
identifier - the identifier
type - the type
openKind - the open kind
logicalName - the logical name

FileObject

public FileObject(java.lang.String identifier,
                  SubtypeIndication type,
                  Expression logicalName)
Creates a file.

Parameters:
identifier - the identifier
type - the type
logicalName - the logical name

FileObject

public FileObject(java.lang.String identifier,
                  SubtypeIndication type)
Creates a file.

Parameters:
identifier - the identifier
type - the type
Method Detail

getLogicalName

public Expression getLogicalName()
Returns the logical name.

Returns:
the logical name

setLogicalName

public void setLogicalName(Expression logicalName)
Sets the logical name.

Parameters:
logicalName - the logical name

getOpenKind

public Expression getOpenKind()
Returns the file open kind.

Returns:
the open kind

setOpenKind

public void setOpenKind(Expression openKind)
Sets the file open kind.

Parameters:
openKind - the open kind

getVhdlObjects

public java.util.List<FileObject> getVhdlObjects()
Description copied from interface: VhdlObjectProvider
Returns a list of VhdlObject that are contained in this VhdlObjectProvider.

Returns:
list of VhdlObjects

getObjectClass

public VhdlObject.ObjectClass getObjectClass()
Description copied from class: VhdlObject
Returns the type of this VhdlObject.

Specified by:
getObjectClass in class VhdlObject<FileObject>
Returns:
the object class

setMode

public void setMode(VhdlObject.Mode mode)
Sets the mode of this vhdl object.

Parameters:
mode - the mode

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier of this object.

Specified by:
getIdentifier in interface NamedEntity
Specified by:
getIdentifier in class VhdlObject<T extends VhdlObject>
Returns:
the identifier

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the identifier of this object.

Specified by:
setIdentifier in class VhdlObject<T extends VhdlObject>
Parameters:
identifier - the identifier

getType

public SubtypeIndication getType()
Returns the type of this object.

Specified by:
getType in class VhdlObject<T extends VhdlObject>
Returns:
the type

setType

public void setType(SubtypeIndication type)
Sets the type of this object.

Specified by:
setType in class VhdlObject<T extends VhdlObject>
Parameters:
type - the type

getMode

public VhdlObject.Mode getMode()
Returns the mode of this vhdl object.

Specified by:
getMode in class VhdlObject<T extends VhdlObject>
Returns:
the mode

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