package net.sourceforge.phpdt.internal.compiler.ast;
import java.util.List;
-import java.util.ArrayList;
/**
* A Function call.
* @author Matthieu Casanova
*/
-public class FunctionCall extends AbstractSuffixExpression {
+public final class FunctionCall extends AbstractSuffixExpression {
/** the function name. */
- public Expression functionName;
+ private final Expression functionName;
/** the arguments. */
- public Expression[] args;
+ private final Expression[] args;
- public FunctionCall(final Expression prefix,
+ /**
+ * a function call.
+ * it's <code>functionName(args ...)
+ * @param functionName the function name
+ * @param args the arguments
+ * @param sourceEnd the source end
+ */
+ public FunctionCall(final Expression functionName,
final Expression[] args,
final int sourceEnd) {
- super(prefix.sourceStart, sourceEnd);
- this.functionName = prefix;
+ super(functionName.sourceStart, sourceEnd);
+ this.functionName = functionName;
this.args = args;
}
/**
* Get the variables from outside (parameters, globals ...)
+ *
+ * @param list the list where we will put variables
*/
- public void getOutsideVariable(final List list) {
- }
+ public void getOutsideVariable(final List list) {}
/**
* get the modified variables.
+ *
+ * @param list the list where we will put variables
*/
public void getModifiedVariable(final List list) {
if (args != null) {
/**
* Get the variables used.
+ *
+ * @param list the list where we will put variables
*/
public void getUsedVariable(final List list) {
functionName.getUsedVariable(list);