1
/*******************************************************************************
2
* Copyright (c) 2007, 2010 Symbian Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Andrew Ferguson (Symbian) - Initial implementation
10
* Markus Schorn (Wind River Systems)
11
*******************************************************************************/
12
package org.eclipse.cdt.internal.core.index.composite.cpp;
14
import org.eclipse.cdt.core.dom.ast.IType;
15
import org.eclipse.cdt.core.dom.ast.IValue;
16
import org.eclipse.cdt.core.dom.ast.IVariable;
17
import org.eclipse.cdt.core.dom.ast.cpp.ICPPVariable;
18
import org.eclipse.cdt.internal.core.index.composite.ICompositesFactory;
20
class CompositeCPPVariable extends CompositeCPPBinding implements ICPPVariable {
22
public CompositeCPPVariable(ICompositesFactory cf, IVariable delegate) {
26
public boolean isMutable() {
27
return ((ICPPVariable)rbinding).isMutable();
30
public boolean isExternC() {
31
return ((ICPPVariable)rbinding).isExternC();
34
public IType getType() {
35
IType rtype = ((ICPPVariable)rbinding).getType();
36
return cf.getCompositeType(rtype);
39
public boolean isAuto() {
40
return ((ICPPVariable)rbinding).isAuto();
43
public boolean isExtern() {
44
return ((ICPPVariable)rbinding).isExtern();
47
public boolean isRegister() {
48
return ((ICPPVariable)rbinding).isRegister();
51
public boolean isStatic() {
52
return ((ICPPVariable)rbinding).isStatic();
55
public IValue getInitialValue() {
56
return ((ICPPVariable)rbinding).getInitialValue();