blob: 17a66bc467ac66b8f830084f3647cbe449a321fd (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/*******************************************************************************
* Copyright (c) 2004, 2009 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:
* John Camelon (IBM) - Initial API and implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp;
import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNameOwner;
import org.eclipse.cdt.core.dom.ast.IASTTypeId;
/**
* This interface represents a simple type template parameter.
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICPPASTSimpleTypeTemplateParameter extends ICPPASTTemplateParameter, IASTNameOwner {
/**
* Relation between template parameter and its name.
*/
public static final ASTNodeProperty PARAMETER_NAME = new ASTNodeProperty(
"ICPPASTSimpleTypeTemplateParameter.PARAMETER_NAME - The Parameter's Name"); //$NON-NLS-1$
/**
* Relation between template parameter and its default type.
*/
public static final ASTNodeProperty DEFAULT_TYPE = new ASTNodeProperty(
"ICPPASTSimpleTypeTemplateParameter.DEFAULT_TYPE - Optional default TypeId value"); //$NON-NLS-1$
/**
* <code>st_class</code> represents a class.
*/
public static final int st_class = 1;
/**
* <code>st_typename</code> represents a typename.
*/
public static final int st_typename = 2;
/**
* Get the parameter type.
*/
public int getParameterType();
/**
* Returns the template parameter name.
*/
public IASTName getName();
/**
* Returns the default value (a type id) for this template parameter, or <code>null</code>.
*/
public IASTTypeId getDefaultType();
/**
* Set the parameter type.
*/
public void setParameterType(int value);
/**
* Set whether this is a parameter pack.
* @since 5.2
*/
public void setIsParameterPack(boolean val);
/**
* Sets the template parameter name.
*/
public void setName(IASTName name);
/**
* Sets the default value (a type id) for this template parameter.
*/
public void setDefaultType(IASTTypeId typeId);
/**
* @since 5.1
*/
public ICPPASTSimpleTypeTemplateParameter copy();
}
|