1
/*******************************************************************************
2
* Copyright (c) 2004, 2009 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
* Doug Schaefer (IBM) - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.dom.ast;
14
* Ye ol' do statement.
16
* @noextend This interface is not intended to be extended by clients.
17
* @noimplement This interface is not intended to be implemented by clients.
19
public interface IASTDoStatement extends IASTStatement {
22
* <code>BODY</code> represents the relationship between a
23
* <code>IASTDoStatement</code> and its nested body
24
* <code>IASTStatement</code>.
26
public static final ASTNodeProperty BODY = new ASTNodeProperty("IASTDoStatement.BODY - nested body for IASTDoStatement"); //$NON-NLS-1$
29
* <code>CONDITION</code> represents the relationship between a
30
* <code>IASTDoStatement</code> and its condition
31
* <code>IASTExpression</code>.
33
public static final ASTNodeProperty CONDITION = new ASTNodeProperty(
34
"IASTDoStatement.CONDITION - IASTExpression condition for IASTDoStatement"); //$NON-NLS-1$
37
* Get the body of the loop.
39
* @return <code>IASTStatement</code> loop code body
41
public IASTStatement getBody();
44
* Set the body of the loop.
47
* an <code>IASTStatement</code>
49
public void setBody(IASTStatement body);
52
* The condition on the loop.
54
* @return the expression for the condition
56
public IASTExpression getCondition();
59
* Set the condition for the loop.
64
public void setCondition(IASTExpression condition);
69
public IASTDoStatement copy();