org.hackystat.telemetry.analyzer.language.ast
Class FunctionCall

java.lang.Object
  extended by org.hackystat.telemetry.analyzer.language.ast.FunctionCall
All Implemented Interfaces:
Expression

public class FunctionCall
extends java.lang.Object
implements Expression

Telemetry expression representing a function call. A function can be as simple as "Add" or "Subtract" funciton built into telemetry language, or it can be a custom supplied function doing anything imaginable.

Version:
$Id$
Author:
(Cedric) Qin ZHANG

Constructor Summary
FunctionCall(java.lang.String functionName, Expression[] parameters)
          Constructs this instance.
 
Method Summary
 java.lang.String getFunctionName()
          Gets the name of the function to be invoked.
 Expression[] getParameters()
          Gets function parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionCall

public FunctionCall(java.lang.String functionName,
                    Expression[] parameters)
Constructs this instance.

Parameters:
functionName - The name of the function.
parameters - The function parameters. Null is valid if the function does not require any parameter.
Method Detail

getFunctionName

public java.lang.String getFunctionName()
Gets the name of the function to be invoked.

Returns:
The function name.

getParameters

public Expression[] getParameters()
Gets function parameters.

Returns:
The function parameters. It will never return null. If there is no parameter, an empty array will be returned.