Interface IMethodDeclaration

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, ICElement, IDeclaration, IFunctionDeclaration, IMember, ISourceManipulation, ISourceReference
All Known Subinterfaces:
IMethod, IMethodTemplate, IMethodTemplateDeclaration

public interface IMethodDeclaration extends IMember, IFunctionDeclaration
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.
  • Method Details

    • isConstructor

      boolean isConstructor() throws CModelException
      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

      boolean isDestructor() throws CModelException
      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

      boolean isOperator() throws CModelException
      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

      boolean isPureVirtual() throws CModelException
      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

      boolean isStatic() throws CModelException
      Returns if this method is static or not
      Specified by:
      isStatic in interface IDeclaration
      Returns:
      boolean
      Throws:
      CModelException
    • isInline

      boolean isInline() throws CModelException
      Returns if this method is inline or not
      Returns:
      boolean
      Throws:
      CModelException
    • isVirtual

      boolean isVirtual() throws CModelException
      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

      boolean isFriend() throws CModelException
      return true if the member is a friend.
      Throws:
      CModelException