|
||||||||||
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.declaration.DeclarativeItem
de.upb.hni.vmagic.declaration.AttributeSpecification
public class AttributeSpecification
Attribute specification. An attribute specification is used to set an attribute of a named entity.
Attribute attrib = new Attribute("ATTRIB", Standard.STRING); AttributeSpecification s = new AttributeSpecification(attrib, EntityNameList.ALL, EntityClass.SIGNAL, new StringLiteral("value"));
attribute ATTRIB of all : signal is "value";
Nested Class Summary | |
---|---|
static class |
AttributeSpecification.EntityNameList
Entity name list. |
Constructor Summary | |
---|---|
AttributeSpecification(Attribute attribute,
AttributeSpecification.EntityNameList entities,
EntityClass entityClass,
Expression value)
Creates an attribute specification. |
Method Summary | |
---|---|
Attribute |
getAttribute()
Returns the specified attribute. |
AttributeSpecification.EntityNameList |
getEntities()
Returns the list of entities. |
EntityClass |
getEntityClass()
Returns the entity class. |
Expression |
getValue()
Returns the value. |
void |
setAttribute(Attribute attribute)
Sets the specified attribute. |
void |
setEntities(AttributeSpecification.EntityNameList entities)
Sets the list of entitites. |
void |
setEntityClass(EntityClass entityClass)
Sets the entity class. |
void |
setValue(Expression value)
Sets the value. |
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 AttributeSpecification(Attribute attribute, AttributeSpecification.EntityNameList entities, EntityClass entityClass, Expression value)
attribute
- the attributeentities
- the list of entity namesentityClass
- the class of the entitiesvalue
- the valueMethod Detail |
---|
public Attribute getAttribute()
public void setAttribute(Attribute attribute)
attribute
- the attributepublic AttributeSpecification.EntityNameList getEntities()
public void setEntities(AttributeSpecification.EntityNameList entities)
entities
- a list of entitiespublic EntityClass getEntityClass()
public void setEntityClass(EntityClass entityClass)
entityClass
- the entity classpublic Expression getValue()
public void setValue(Expression value)
value
- the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |