Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0bfe2ab88cae46e26728c01e35e43a12236640d4 (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
/**********************************************************************
 * Copyright (c) 2004 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors: 
 * IBM - Initial API and implementation
 **********************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp;

import java.util.List;

import org.eclipse.cdt.core.dom.ast.ICompositeType;

/**
 * Represents a C++ class.
 * 
 * @author Doug Schaefer
 */
public interface ICPPClassType extends ICompositeType {

	/**
	 * Returns a list of base class relationships. The list is empty if
	 * there are none.
	 * 
	 * @return List of ICPPBase
	 */
	public List getBases();

	/**
	 * Get fields is restated here just to point out that this method returns
	 * a list of ICPPField objects representing all fields, declared or inherited.
	 */
	public List getFields();
	
	/**
	 * Returns a list of ICPPField objects representing fields declared in this
	 * class. It does not include fields inherited from base classes.
	 * 
	 * @return List of ICPPField
	 */
	public List getDeclaredFields();
	
	/**
	 * Returns a list of ICPPMethod objects representing all methods defined for
	 * this class including those declared, inherited, or generated (e.g. default
	 * constructors and the like).
	 * 
	 * @return List of ICPPMethod
	 */
	public List getMethods();

	/**
	 * Returns a list of ICPPMethod objects representing all method explicitly
	 * declared by this class and inherited from base classes. It does not include
	 * automatically generated methods.
	 * 
	 * @return List of ICPPMethod
	 */
	public List getAllDeclaredMethods();
	
	/**
	 * Returns a list of ICPPMethod objects representing all methods explicitly
	 * declared by this class. It does not include inherited methods or automatically
	 * generated methods.
	 * 
	 * @return List of ICPPMethod
	 */
	public List getDeclaredMethods();
	
}

Back to the top