blob: fe958db5f0eaa74eb23ace88420af3f54673c1e7 (
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
53
54
55
56
57
58
59
|
/*******************************************************************************
* 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;
/**
* This interface represents a linkage specification. e.g. extern "C" { ... }
*
* @author jcamelon
*/
public interface ICPPASTLinkageSpecification extends IASTDeclaration {
/**
* Get the "literal" that represents the linkage.
*
* @return String
*/
public String getLiteral();
/**
* Set the "literal" that represents the linkage.
*
* @param value
* String
*/
public void setLiteral(String value);
/**
* <code>OWNED_DECLARATION</code> is the owned declaration role for
* linkages.
*/
public static final ASTNodeProperty OWNED_DECLARATION = new ASTNodeProperty(
"ICPPASTLinkageSpecification.OWNED_DECLARATION - Owned Declaration role for linkages"); //$NON-NLS-1$
/**
* Get all of the declarations.
*
* @return <code>IASTDeclaration[] </code>
*/
public IASTDeclaration[] getDeclarations();
/**
* Add another declaration to the linkage.
*
* @param declaration
* <code>IASTDeclaration</code>
*/
public void addDeclaration(IASTDeclaration declaration);
}
|