+++ /dev/null
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-/**
- * @author Matthieu Casanova
- */
-public class FunctionCall extends AbstractSuffixExpression {
-
- public Expression prefix;
- public Expression[] args;
-
- public FunctionCall(Expression prefix,
- Expression[] args,
- int sourceEnd) {
- super(prefix.sourceStart, sourceEnd);
- this.prefix = prefix;
- this.args = args;
- }
-
- /**
- * Return the expression as String.
- * @return the expression
- */
- public String toStringExpression() {
- final StringBuffer buff = new StringBuffer(prefix.toStringExpression());
- buff.append('(');
- if (args != null) {
- for (int i = 0; i < args.length; i++) {
- Expression arg = args[i];
- if (i != 0) {
- buff.append(',');
- }
- buff.append(arg.toStringExpression());
- }
- }
- buff.append(')');
- return buff.toString();
- }
-}