public interface ICPPClassType extends ICompositeType, ICPPBinding
Modifier and Type | Field and Description |
---|---|
static ICPPClassType[] |
EMPTY_CLASS_ARRAY |
static int |
k_class |
static int |
v_private |
static int |
v_protected |
static int |
v_public |
k_struct, k_union
EMPTY_TYPE_ARRAY, TYPE_MATCHER
EMPTY_BINDING_ARRAY
Modifier and Type | Method and Description |
---|---|
IField |
findField(java.lang.String name)
The method is restated here to point out that this method looks through the inheritance tree
of this class while looking for a field with the given name.
|
ICPPMethod[] |
getAllDeclaredMethods()
Returns a list of ICPPMethod objects representing all method explicitly declared by this
class and inherited from base classes.
|
ICPPBase[] |
getBases()
Returns an array of base class relationships.
|
ICPPConstructor[] |
getConstructors()
Returns an array of ICPPConstructor objects representing the constructors
for this class.
|
ICPPField[] |
getDeclaredFields()
Returns a list of ICPPField objects representing fields declared in this class.
|
ICPPMethod[] |
getDeclaredMethods()
Returns a list of ICPPMethod objects representing all methods explicitly declared by this
class.
|
IField[] |
getFields()
The method is restated here just to point out that this method returns a list of ICPPField
objects representing all fields, declared or inherited.
|
IBinding[] |
getFriends()
Returns an array of bindings for those classes/functions declared as friends of this class.
|
ICPPMethod[] |
getMethods()
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).
|
ICPPClassType[] |
getNestedClasses()
Returns an array of nested classes/structures
|
int |
getVisibility(IBinding member)
Returns the access specifier of the
member . |
boolean |
isFinal()
Returns whether this type is declared final.
|
getCompositeScope, getKey, isAnonymous
clone, isSameType
getQualifiedName, getQualifiedNameCharArray, isGloballyQualified
getLinkage, getName, getNameCharArray, getOwner, getScope
static final ICPPClassType[] EMPTY_CLASS_ARRAY
static final int k_class
static final int v_public
static final int v_protected
static final int v_private
ICPPBase[] getBases()
IField[] getFields()
getFields
in interface ICompositeType
IField findField(java.lang.String name)
null
is
returned, if the name is found to be ambiguous a IProblemBinding is returned.findField
in interface ICompositeType
name
- ICPPField[] getDeclaredFields()
ICPPMethod[] getMethods()
ICPPMethod[] getAllDeclaredMethods()
ICPPMethod[] getDeclaredMethods()
ICPPConstructor[] getConstructors()
IBinding[] getFriends()
ICPPClassType[] getNestedClasses()
boolean isFinal()
int getVisibility(IBinding member)
member
.member
- The binding of the member to get the visibility for.
member
must be a member of this class.java.lang.IllegalArgumentException
- if member
is not a member of this class.Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.