|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.VhdlElement
de.upb.hni.vmagic.expression.Expression
de.upb.hni.vmagic.expression.Primary
de.upb.hni.vmagic.expression.VhdlObject<T>
de.upb.hni.vmagic.object.Signal
public class Signal
Signal.
Nested Class Summary | |
---|---|
static class |
Signal.Kind
Signal kind. |
Nested classes/interfaces inherited from class de.upb.hni.vmagic.expression.VhdlObject |
---|
VhdlObject.Mode, VhdlObject.ObjectClass |
Constructor Summary | |
---|---|
Signal(java.lang.String identifier,
SubtypeIndication type)
Creates a signal. |
|
Signal(java.lang.String identifier,
SubtypeIndication type,
Expression defaultValue)
Creates a signal with a default value. |
|
Signal(java.lang.String identifier,
VhdlObject.Mode mode,
SubtypeIndication type)
Creates a signal with a mode. |
|
Signal(java.lang.String identifier,
VhdlObject.Mode mode,
SubtypeIndication type,
Expression defaultValue)
Creates a signal with a mode and a default value. |
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. |
Expression |
getDefaultValue()
Returns the default value of this signal. |
java.lang.String |
getIdentifier()
Returns the identifier of this object. |
Signal.Kind |
getKind()
Returns the kind of this signal. |
VhdlObject.Mode |
getMode()
Returns the mode of this vhdl object. |
VhdlObject.ObjectClass |
getObjectClass()
Returns the type of this VhdlObject. |
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<Signal> |
getVhdlObjects()
Returns a list of VhdlObject that are contained in this VhdlObjectProvider. |
void |
setDefaultValue(Expression defaultValue)
Sets the default value of this signal. |
void |
setIdentifier(java.lang.String identifier)
Sets the identifier of this object. |
void |
setKind(Signal.Kind kind)
Sets the kind of this signal. |
void |
setMode(VhdlObject.Mode mode)
Sets the mode of this vhdl object. |
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 |
---|
public Signal(java.lang.String identifier, SubtypeIndication type)
identifier
- the identifier of the signaltype
- the type of the signalpublic Signal(java.lang.String identifier, VhdlObject.Mode mode, SubtypeIndication type)
identifier
- the identifier of the signalmode
- the mode of the signaltype
- the type of the signalpublic Signal(java.lang.String identifier, SubtypeIndication type, Expression defaultValue)
identifier
- the identifier of the signaltype
- the type of the signaldefaultValue
- the default value of the signalpublic Signal(java.lang.String identifier, VhdlObject.Mode mode, SubtypeIndication type, Expression defaultValue)
identifier
- the identifier of the signalmode
- the mode of the signaltype
- the type of the signaldefaultValue
- the default value of the signalMethod Detail |
---|
public Signal.Kind getKind()
public void setKind(Signal.Kind kind)
kind
- the signal kindpublic Expression getDefaultValue()
public void setDefaultValue(Expression defaultValue)
defaultValue
- the default valuepublic java.util.List<Signal> getVhdlObjects()
VhdlObjectProvider
getVhdlObjects
in interface VhdlObjectProvider<Signal>
public VhdlObject.ObjectClass getObjectClass()
VhdlObject
getObjectClass
in class VhdlObject<Signal>
public java.lang.String getIdentifier()
getIdentifier
in interface NamedEntity
getIdentifier
in class VhdlObject<T extends VhdlObject>
public void setIdentifier(java.lang.String identifier)
setIdentifier
in class VhdlObject<T extends VhdlObject>
identifier
- the identifierpublic SubtypeIndication getType()
getType
in class VhdlObject<T extends VhdlObject>
public void setType(SubtypeIndication type)
setType
in class VhdlObject<T extends VhdlObject>
type
- the typepublic VhdlObject.Mode getMode()
getMode
in class VhdlObject<T extends VhdlObject>
public void setMode(VhdlObject.Mode mode)
setMode
in class VhdlObject<T extends VhdlObject>
mode
- the modepublic Slice<T> getSlice(DiscreteRange range)
getSlice
in class VhdlObject<T extends VhdlObject>
range
- the slice range.
public ArrayElement<T> getArrayElement(Expression index)
getArrayElement
in class VhdlObject<T extends VhdlObject>
index
- the index of the array element
public ArrayElement<T> getArrayElement(int index)
getArrayElement
in class VhdlObject<T extends VhdlObject>
index
- the index of the array element
public ArrayElement<T> getArrayElement(java.util.List<Expression> indices)
getArrayElement
in class VhdlObject<T extends VhdlObject>
indices
- the indices of the array element
public ArrayElement<T> getArrayElement(Expression... indices)
getArrayElement
in class VhdlObject<T extends VhdlObject>
indices
- the indices of the array element
public RecordElement<T> getRecordElement(java.lang.String element)
getRecordElement
in class VhdlObject<T extends VhdlObject>
element
- the identifier of the record element
public AttributeExpression<T> getAttributeExpression(Attribute attribute)
getAttributeExpression
in class VhdlObject<T extends VhdlObject>
attribute
- the attribute
public AttributeExpression<T> getAttributeExpression(Attribute attribute, Expression parameter)
getAttributeExpression
in class VhdlObject<T extends VhdlObject>
attribute
- the attributeparameter
- the parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |