Interface IMethodDeclaration
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, ICElement, IDeclaration, IFunctionDeclaration, IMember, ISourceManipulation, ISourceReference
- All Known Subinterfaces:
IMethod, IMethodTemplate, IMethodTemplateDeclaration
Represents the declaration method of a class
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Field Summary
Fields inherited from interface ICElement
ASM_LABEL, C_ARCHIVE, C_BINARY, C_CCONTAINER, C_CLASS, C_CLASS_CTOR, C_CLASS_DECLARATION, C_CLASS_DTOR, C_CONCEPT, C_DEDUCTION_GUIDE, C_DEDUCTION_GUIDE_TEMPLATE, 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_PRAGMA, 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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this method is a constructor.booleanReturns whether this method is a destructor.booleanisFriend()return true if the member is a friend.booleanisInline()Returns if this method is inline or notbooleanReturns whether this method is an operator method.booleanReturns whether this method is declared pure virtual.booleanisStatic()Returns if this method is static or notbooleanReturns whether this method is declared virtual.Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface ICElement
accept, exists, getAncestor, getCModel, getCProject, getElementName, getElementType, getHandleIdentifier, getLocationURI, getParent, getPath, getResource, getUnderlyingResource, isReadOnly, isStructureKnownMethods inherited from interface IDeclaration
isConst, isVolatileMethods inherited from interface IFunctionDeclaration
getExceptions, getNumberOfParameters, getParameterInitializer, getParameterTypes, getReturnType, getSignatureMethods inherited from interface IMember
getVisibilityMethods inherited from interface ISourceManipulation
copy, delete, move, renameMethods inherited from interface ISourceReference
getIndex, getSource, getSourceRange, getTranslationUnit, isActive
-
Method Details
-
isConstructor
Returns whether this method is a constructor.- Throws:
CModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isDestructor
Returns whether this method is a destructor.- Throws:
CModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isOperator
Returns whether this method is an operator method.- Throws:
CModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isPureVirtual
Returns whether this method is declared pure virtual.For example, a source method declared as
virtual void m() = 0;.- Throws:
CModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isStatic
Returns if this method is static or not- Specified by:
isStaticin interfaceIDeclaration- Returns:
- boolean
- Throws:
CModelException
-
isInline
Returns if this method is inline or not- Returns:
- boolean
- Throws:
CModelException
-
isVirtual
Returns whether this method is declared virtual.- Throws:
CModelException- if this element does not exist or if an exception occurs while accessing its corresponding resource.
-
isFriend
return true if the member is a friend.- Throws:
CModelException
-