org.norecess.citkit.tir.declarations
Interface IFunctionDTIR

All Superinterfaces:
DeclarationTIR, HobbesTIR
All Known Implementing Classes:
FunctionDTIR

public interface IFunctionDTIR
extends DeclarationTIR


Method Summary
 ExpressionTIR getBody()
          Returns the body of the function.
 java.lang.String getName()
          Returns the name of the function.
 java.util.List<IFieldTIR> getParameters()
          Returns the parameters of the function.
 INameTTIR getResult()
          Returns the type of the returned value.
 boolean isFunction()
          Indicates if this TIR represents a function (i.e., there is a return type).
 boolean isProcedure()
          Indicates if this TIR represents a procedure (i.e., there's no return type).
 
Methods inherited from interface org.norecess.citkit.tir.DeclarationTIR
accept, getPosition
 

Method Detail

getBody

ExpressionTIR getBody()
Returns the body of the function.

Returns:
the body of the function.

getName

java.lang.String getName()
Returns the name of the function.

Returns:
the name of the function.

getParameters

java.util.List<IFieldTIR> getParameters()
Returns the parameters of the function.

Returns:
the parameters of the function.

getResult

INameTTIR getResult()
Returns the type of the returned value.

Returns:
the type of the returned value.

isProcedure

boolean isProcedure()
Indicates if this TIR represents a procedure (i.e., there's no return type).


isFunction

boolean isFunction()
Indicates if this TIR represents a function (i.e., there is a return type).