blob: 79730be627c6a2bcb0d8d181192c558ba8e5cf99 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/*******************************************************************************
* 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.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNameOwner;
/**
* This interface represents a namespace alias in C++. e.g. namespace ABC { int
* x; } namspace DEF = ABC;
*
* @author jcamelon
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICPPASTNamespaceAlias extends IASTDeclaration, IASTNameOwner {
/**
* <code>ALIAS_NAME</code> represents the new namespace name being
* introduced.
*/
public static final ASTNodeProperty ALIAS_NAME = new ASTNodeProperty(
"ICPPASTNamespaceAlias.ALIAS_NAME - New namespace name introduced"); //$NON-NLS-1$
/**
* <code>MAPPING_NAME</code> represents the pre-existing namespace which
* the new symbol aliases.
*/
public static final ASTNodeProperty MAPPING_NAME = new ASTNodeProperty(
"ICPPASTNamespaceAlias.MAPPING_NAME - Pre-existing namespace the new symbol aliases"); //$NON-NLS-1$
/**
* Get the new alias name.
*
* @return <code>IASTName</code>
*/
public IASTName getAlias();
/**
* Set the new alias name.
*
* @param name
* <code>IASTName</code>
*/
public void setAlias(IASTName name);
/**
* Get the mapping name.
*
* @return <code>IASTName</code>
*/
public IASTName getMappingName();
/**
* Set the mapping name.
*
* @param qualifiedName
* <code>IASTName</code>
*/
public void setMappingName(IASTName qualifiedName);
/**
* @since 5.1
*/
public ICPPASTNamespaceAlias copy();
}
|