|
||||||||||
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.SubprogramBody
de.upb.hni.vmagic.declaration.FunctionBody
public class FunctionBody
Function body.
Constructor Summary | |
---|---|
FunctionBody(FunctionDeclaration declaration)
Creates a function body based on a function declaration. |
|
FunctionBody(java.lang.String identifier,
SubtypeIndication returnType,
java.util.List<VhdlObjectProvider> parameters)
Creates a function body. |
|
FunctionBody(java.lang.String identifier,
SubtypeIndication returnType,
VhdlObjectProvider... parameters)
Creates a function body. |
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.SubprogramBody |
---|
getDeclarations, getIdentifier, getParameters, getScope, getStatements, 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 FunctionBody(java.lang.String identifier, SubtypeIndication returnType, java.util.List<VhdlObjectProvider> parameters)
identifier
- the identifierreturnType
- the return typeparameters
- the parameterspublic FunctionBody(java.lang.String identifier, SubtypeIndication returnType, VhdlObjectProvider... parameters)
identifier
- the identifierreturnType
- the return typeparameters
- the parameterspublic FunctionBody(FunctionDeclaration declaration)
declaration
- the base function declarationMethod 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 |