Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0c2255b0c70183627347d73c613fcaeaa8a3c94f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
 * Copyright (c) 2004, 2005 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:
 * IBM - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp;

import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTWhileStatement;
import org.eclipse.cdt.core.dom.ast.IScope;

/**
 * This inteface accommodates C++ allows for broader while loop syntax.
 * 
 * @author jcamelon
 */
public interface ICPPASTWhileStatement extends IASTWhileStatement {

	/**
	 * In C++ conditions can be declarations w/side effects.
	 */
	public static final ASTNodeProperty CONDITIONDECLARATION = new ASTNodeProperty(
			"ICPPASTWhileStatement.CONDITIONDECLARATION - C++ condition/declaration"); //$NON-NLS-1$

	/**
	 * Get the condition declaration.
	 * 
	 * @return <code>IASTDeclaration</code>
	 */
	public IASTDeclaration getConditionDeclaration();

	/**
	 * Set the condition declaration.
	 * 
	 * @param declaration
	 *            <code>IASTDeclaration</code>
	 */
	public void setConditionDeclaration(IASTDeclaration declaration);

	/**
	 * Get the <code>IScope</code> represented by this while.
	 * 
	 * @return <code>IScope</code>
	 */
	public IScope getScope();
}

Back to the top