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
* This is a simple declaration which contains a sequence of declSpecifiers
15
* followed by a list of declarators.
17
* @noextend This interface is not intended to be extended by clients.
18
* @noimplement This interface is not intended to be implemented by clients.
20
public interface IASTSimpleDeclaration extends IASTDeclaration {
23
* <code>DECL_SPECIFIER</code> represents the relationship between an
24
* <code>IASTSimpleDeclaration</code> and it's nested
25
* <code>IASTDeclSpecifier</code>.
27
public static final ASTNodeProperty DECL_SPECIFIER = new ASTNodeProperty(
28
"IASTSimpleDeclaration.DECL_SPECIFIER - IASTDeclSpecifier for IASTSimpleDeclaration"); //$NON-NLS-1$
31
* <code>DECLARATOR</code> represents the relationship between an
32
* <code>IASTSimpleDeclaration</code> and it's nested
33
* <code>IASTDeclarator</code>s.
35
public static final ASTNodeProperty DECLARATOR = new ASTNodeProperty(
36
"IASTSimpleDeclaration.DECLARATOR - IASTDeclarator for IASTSimpleDeclaration"); //$NON-NLS-1$
39
* This returns the object representing the declSpecifiers for this
42
* @return the declSpecifier object
44
public IASTDeclSpecifier getDeclSpecifier();
47
* Set the decl specifier.
50
* <code>IASTDeclSpecifier</code>
52
public void setDeclSpecifier(IASTDeclSpecifier declSpec);
55
* This returns the list of declarators in this declaration.
57
* @return <code>IASTDeclarator []</code>
59
public IASTDeclarator[] getDeclarators();
65
* <code>IASTDeclarator</code>
67
public void addDeclarator(IASTDeclarator declarator);
72
public IASTSimpleDeclaration copy();