|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the declaration method of a class
Field Summary |
---|
Method Summary | |
---|---|
boolean |
isConstructor()
Returns whether this method is a constructor. |
boolean |
isDestructor()
Returns whether this method is a destructor. |
boolean |
isFriend()
return true if the member is a friend. |
boolean |
isInline()
Returns if this method is inline or not |
boolean |
isOperator()
Returns whether this method is an operator method. |
boolean |
isPureVirtual()
Returns whether this method is declared pure virtual. |
boolean |
isStatic()
Returns if this method is static or not |
boolean |
isVirtual()
Returns whether this method is declared virtual. |
Methods inherited from interface org.eclipse.cdt.core.model.IMember |
---|
getVisibility |
Methods inherited from interface org.eclipse.cdt.core.model.IDeclaration |
---|
isConst, isVolatile |
Methods inherited from interface org.eclipse.cdt.core.model.ICElement |
---|
accept, exists, getAncestor, getCModel, getCProject, getElementName, getElementType, getParent, getPath, getResource, getUnderlyingResource, isReadOnly, isStructureKnown |
Methods inherited from interface org.eclipse.cdt.core.model.ISourceManipulation |
---|
copy, delete, move, rename |
Methods inherited from interface org.eclipse.cdt.core.model.ISourceReference |
---|
getSource, getSourceRange, getTranslationUnit |
Methods inherited from interface org.eclipse.cdt.core.model.IFunctionDeclaration |
---|
getExceptions, getNumberOfParameters, getParameterInitializer, getParameterTypes, getReturnType, getSignature |
Method Detail |
public boolean isConstructor() throws CModelException
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.public boolean isDestructor() throws CModelException
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.public boolean isOperator() throws CModelException
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.public boolean isPureVirtual() throws CModelException
For example, a source method declared as virtual void m() = 0;
.
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.public boolean isStatic() throws CModelException
isStatic
in interface IDeclaration
CModelException
public boolean isInline() throws CModelException
CModelException
public boolean isVirtual() throws CModelException
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.public boolean isFriend() throws CModelException
CModelException
|
Eclipse CDT Pre-release 3.0 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |