~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/composite/cpp/CompositeCPPMethodTemplateSpecialization.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
9
 *    Andrew Ferguson (Symbian) - Initial implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.internal.core.index.composite.cpp;
 
12
 
 
13
import org.eclipse.cdt.core.dom.ast.cpp.ICPPClassType;
 
14
import org.eclipse.cdt.core.dom.ast.cpp.ICPPFunction;
 
15
import org.eclipse.cdt.core.dom.ast.cpp.ICPPMethod;
 
16
import org.eclipse.cdt.internal.core.index.IIndexFragmentBinding;
 
17
import org.eclipse.cdt.internal.core.index.composite.ICompositesFactory;
 
18
 
 
19
public class CompositeCPPMethodTemplateSpecialization
 
20
        extends CompositeCPPFunctionTemplateSpecialization
 
21
        implements ICPPMethod {
 
22
 
 
23
        public CompositeCPPMethodTemplateSpecialization(ICompositesFactory cf,
 
24
                        ICPPFunction ft) {
 
25
                super(cf, ft);
 
26
        }
 
27
        
 
28
        public boolean isDestructor() {
 
29
                return ((ICPPMethod)rbinding).isDestructor();
 
30
        }
 
31
 
 
32
        public boolean isImplicit() {
 
33
                return ((ICPPMethod)rbinding).isImplicit();
 
34
        }
 
35
 
 
36
        public boolean isExplicit() {
 
37
                return ((ICPPMethod)rbinding).isExplicit();
 
38
        }
 
39
 
 
40
        public boolean isVirtual() {
 
41
                return ((ICPPMethod)rbinding).isVirtual();
 
42
        }
 
43
 
 
44
        public ICPPClassType getClassOwner() {
 
45
                IIndexFragmentBinding rowner = (IIndexFragmentBinding) ((ICPPMethod)rbinding).getClassOwner();
 
46
                return (ICPPClassType) cf.getCompositeBinding(rowner);
 
47
        }
 
48
 
 
49
        public int getVisibility() {
 
50
                return ((ICPPMethod)rbinding).getVisibility();
 
51
        }
 
52
 
 
53
        public boolean isPureVirtual() {
 
54
                return ((ICPPMethod)rbinding).isPureVirtual();
 
55
        }
 
56
}