/*******************************************************************************
* Copyright (c) 2005, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* John Camelon (IBM Rational Software) - Initial API and implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast;
/**
* This interface represents a function call expression. f( x ) : f is the
* function name expression, x is the parameter expression.
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IASTFunctionCallExpression extends IASTExpression {
public static final ASTNodeProperty FUNCTION_NAME = new ASTNodeProperty(
"IASTFunctionCallExpression.FUNCTION_NAME [IASTExpression]"); //$NON-NLS-1$
/**
* @since 5.2
*/
public static final ASTNodeProperty ARGUMENT = new ASTNodeProperty(
"IASTFunctionCallExpression.ARGUMENT [IASTInitializerClause]"); //$NON-NLS-1$
/**
* Get the function name expression.
*/
public IASTExpression getFunctionNameExpression();
/**
* Returns the arguments for this function call, never <code>null</code>.
* @since 5.2
*/
public IASTInitializerClause[] getArguments();
/**
* @since 5.1
*/
public IASTFunctionCallExpression copy();
/**
* @since 5.3
*/
public IASTFunctionCallExpression copy(CopyStyle style);
/**
* Not allowed on frozen ast.
*/
public void setFunctionNameExpression(IASTExpression expression);
/**
* Not allowed on frozen ast.
* @since 5.2
*/
public void setArguments(IASTInitializerClause[] args);
@Deprecated
public static final ASTNodeProperty PARAMETERS = ARGUMENT;
/**
* @deprecated Replaced by {@link #setArguments(IASTInitializerClause[])}.
*/
@Deprecated
public void setParameterExpression(IASTExpression expression);
/**
* @deprecated Replaced by {@link #getArguments()}.
*/
@Deprecated
public IASTExpression getParameterExpression();
}