Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c05b79b2bf6d7931c3085ee59ea9998a71c1393f (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
/*******************************************************************************
 * Copyright (c) 2007, 2009 Symbian Software Systems 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:
 *    Andrew Ferguson (Symbian) - Initial implementation
 *******************************************************************************/
package org.eclipse.cdt.internal.core.index.composite.c;

import org.eclipse.cdt.core.dom.ast.DOMException;
import org.eclipse.cdt.core.dom.ast.IParameter;
import org.eclipse.cdt.core.dom.ast.IType;
import org.eclipse.cdt.core.dom.ast.IValue;
import org.eclipse.cdt.internal.core.index.IIndexFragmentBinding;
import org.eclipse.cdt.internal.core.index.composite.ICompositesFactory;

class CompositeCParameter extends CompositeCBinding implements IParameter {

	public CompositeCParameter(ICompositesFactory cf, IIndexFragmentBinding rbinding) {
		super(cf, rbinding);
	}

	public IType getType() throws DOMException {
		IType rtype = ((IParameter)rbinding).getType();
		return cf.getCompositeType(rtype);
	}

	public boolean isAuto() throws DOMException {
		return ((IParameter)rbinding).isAuto();
	}

	public boolean isExtern() throws DOMException {
		return ((IParameter)rbinding).isExtern();
	}

	public boolean isRegister() throws DOMException {
		return ((IParameter)rbinding).isRegister();
	}

	public boolean isStatic() throws DOMException {
		return ((IParameter)rbinding).isStatic();
	}

	public IValue getInitialValue() {
		return null;
	}
}

Back to the top