de.upb.hni.vmagic.declaration
Interface Function

All Known Implementing Classes:
FunctionBody, FunctionDeclaration

public interface Function

Function.


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.
 

Method Detail

isImpure

boolean isImpure()
Returns if this function if impure.

Returns:
true, if this function is impure

setImpure

void setImpure(boolean impure)
Sets if this function should be impure.

Parameters:
impure - true, if this function should be impure

getReturnType

SubtypeIndication getReturnType()
Returns the return type of this function.

Returns:
the return type

setReturnType

void setReturnType(SubtypeIndication returnType)
Sets the return type of this function.

Parameters:
returnType - the return type

getIdentifier

java.lang.String getIdentifier()
Returns the subprogram's identifier.

Specified by:
getIdentifier in interface NamedEntity
Returns:
the identifier

setIdentifier

void setIdentifier(java.lang.String identifier)
Sets the subprogram's identifier.

Parameters:
identifier - the identifier

getParameters

java.util.List<VhdlObjectProvider<? extends VhdlObject>> getParameters()
Returns the parameters of this subprogram.

Returns:
a modifiable list of objects