1
/*******************************************************************************
2
* Copyright (c) 2004, 2011 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* John Camelon (IBM) - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.dom.ast.cpp;
13
import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
14
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
15
import org.eclipse.cdt.core.dom.ast.IASTWhileStatement;
16
import org.eclipse.cdt.core.dom.ast.IScope;
19
* This interface accommodates C++ allows for broader while loop syntax.
21
* @noextend This interface is not intended to be extended by clients.
22
* @noimplement This interface is not intended to be implemented by clients.
24
public interface ICPPASTWhileStatement extends IASTWhileStatement {
27
* In C++ conditions can be declarations w/side effects.
29
public static final ASTNodeProperty CONDITIONDECLARATION = new ASTNodeProperty(
30
"ICPPASTWhileStatement.CONDITIONDECLARATION - C++ condition/declaration"); //$NON-NLS-1$
33
* Get the condition declaration.
35
* @return <code>IASTDeclaration</code>
37
public IASTDeclaration getConditionDeclaration();
40
* Set the condition declaration.
43
* <code>IASTDeclaration</code>
45
public void setConditionDeclaration(IASTDeclaration declaration);
48
* Get the <code>IScope</code> represented by this while.
50
* @return <code>IScope</code>
52
public IScope getScope();
57
public ICPPASTWhileStatement copy();
62
public ICPPASTWhileStatement copy(CopyStyle style);