public interface IMethodDeclaration extends IMember, IFunctionDeclaration
ASM_LABEL, C_ARCHIVE, C_BINARY, C_CCONTAINER, C_CLASS, C_CLASS_CTOR, C_CLASS_DECLARATION, C_CLASS_DTOR, C_ENUMERATION, C_ENUMERATOR, C_FIELD, C_FUNCTION, C_FUNCTION_DECLARATION, C_INCLUDE, C_MACRO, C_METHOD, C_METHOD_DECLARATION, C_MODEL, C_NAMESPACE, C_PROJECT, C_STORAGE_EXTERN, C_STORAGE_STATIC, C_STRUCT, C_STRUCT_DECLARATION, C_TEMPLATE_CLASS, C_TEMPLATE_CLASS_DECLARATION, C_TEMPLATE_FUNCTION, C_TEMPLATE_FUNCTION_DECLARATION, C_TEMPLATE_METHOD, C_TEMPLATE_METHOD_DECLARATION, C_TEMPLATE_STRUCT, C_TEMPLATE_STRUCT_DECLARATION, C_TEMPLATE_UNION, C_TEMPLATE_UNION_DECLARATION, C_TEMPLATE_VARIABLE, C_TYPEDEF, C_UNION, C_UNION_DECLARATION, C_UNIT, C_UNKNOWN_DECLARATION, C_USING, C_VARIABLE, C_VARIABLE_DECLARATION, C_VARIABLE_LOCAL, C_VCONTAINER, CPP_FRIEND, CPP_PRIVATE, CPP_PROTECTED, CPP_PUBLIC, EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
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.
|
getVisibilitygetExceptions, getNumberOfParameters, getParameterInitializer, getParameterTypes, getReturnType, getSignatureisConst, isVolatileaccept, exists, getAncestor, getCModel, getCProject, getElementName, getElementType, getHandleIdentifier, getLocationURI, getParent, getPath, getResource, getUnderlyingResource, isReadOnly, isStructureKnowncopy, delete, move, renamegetIndex, getSource, getSourceRange, getTranslationUnit, isActiveboolean isConstructor()
throws CModelException
CModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.boolean isDestructor()
throws CModelException
CModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.boolean isOperator()
throws CModelException
CModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.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.boolean isStatic()
throws CModelException
isStatic in interface IDeclarationCModelExceptionboolean isInline()
throws CModelException
CModelExceptionboolean isVirtual()
throws CModelException
CModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.boolean isFriend()
throws CModelException
CModelExceptionCopyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.