blob: 8c9c8eac7ca4486e86b15dc200ef9ab3130abb5a (
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
|
package org.eclipse.cdt.internal.core.dom;
import java.util.LinkedList;
import java.util.List;
/**
* @author jcamelon
*
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
*/
public class ParameterDeclaration extends Declaration implements DeclarationSpecifier.Container {
DeclarationSpecifier declSpec = null;
/**
* @see org.eclipse.cdt.internal.core.dom.DeclarationSpecifier.Container#getDeclSpecifier()
*/
public DeclarationSpecifier getDeclSpecifier() {
if( declSpec == null )
declSpec = new DeclarationSpecifier();
return declSpec;
}
/**
* @see org.eclipse.cdt.internal.core.dom.DeclarationSpecifier.Container#setDeclSpecifier(org.eclipse.cdt.internal.core.dom.DeclarationSpecifier)
*/
public void setDeclSpecifier(DeclarationSpecifier in) {
declSpec = in;
}
private List declarators = new LinkedList();
public void addDeclarator(Declarator declarator) {
declarators.add(declarator);
}
public List getDeclarators() {
return declarators;
}
}
|