|
||||||||||
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.SubprogramDeclaration
de.upb.hni.vmagic.declaration.FunctionDeclaration
public class FunctionDeclaration
Function declaration.
Constructor Summary | |
---|---|
FunctionDeclaration(java.lang.String identifier,
SubtypeIndication returnType,
java.util.List<VhdlObjectProvider> parameters)
Creates a function declaration. |
|
FunctionDeclaration(java.lang.String identifier,
SubtypeIndication returnType,
VhdlObjectProvider... parameters)
Creates a function declaration. |
Method Summary | |
---|---|
java.lang.String |
getIdentifier()
Returns the subprogram's identifier. |
java.util.List<VhdlObjectProvider<? extends VhdlObject>> |
getParameters()
Returns the parameters of this subprogram. |
SubtypeIndication |
getReturnType()
Returns the return type of this function. |
boolean |
isImpure()
Returns if this function if impure. |
void |
setIdentifier(java.lang.String identifier)
Sets the subprogram's identifier. |
void |
setImpure(boolean impure)
Sets if this function should be impure. |
void |
setReturnType(SubtypeIndication returnType)
Sets the return type of this function. |
Methods inherited from class de.upb.hni.vmagic.declaration.SubprogramDeclaration |
---|
getIdentifier, getParameters, setIdentifier |
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 FunctionDeclaration(java.lang.String identifier, SubtypeIndication returnType, VhdlObjectProvider... parameters)
identifier
- the identifierreturnType
- the return typeparameters
- the parameterspublic FunctionDeclaration(java.lang.String identifier, SubtypeIndication returnType, java.util.List<VhdlObjectProvider> parameters)
identifier
- the identifierreturnType
- the return typeparameters
- the parametersMethod Detail |
---|
public boolean isImpure()
Function
isImpure
in interface Function
true
, if this function is impurepublic void setImpure(boolean impure)
Function
setImpure
in interface Function
impure
- true
, if this function should be impurepublic SubtypeIndication getReturnType()
Function
getReturnType
in interface Function
public void setReturnType(SubtypeIndication returnType)
Function
setReturnType
in interface Function
returnType
- the return typepublic java.lang.String getIdentifier()
getIdentifier
in interface NamedEntity
public void setIdentifier(java.lang.String identifier)
identifier
- the identifierpublic java.util.List<VhdlObjectProvider<? extends VhdlObject>> getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |