Interface IDeclaration

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, ICElement, ISourceManipulation, ISourceReference
All Known Subinterfaces:
IBinaryFunction, IBinaryVariable, IEnumeration, IField, IFunction, IFunctionDeclaration, IFunctionTemplate, IFunctionTemplateDeclaration, IMember, IMethod, IMethodDeclaration, IMethodTemplate, IMethodTemplateDeclaration, IStructure, IStructureDeclaration, IStructureTemplate, IStructureTemplateDeclaration, IVariable, IVariableDeclaration

public interface IDeclaration extends ICElement, ISourceManipulation, ISourceReference
Base interface for any C Model element that could be considered a declaration.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • isStatic

      boolean isStatic() throws CModelException
      Checks if the declaration is static Returns true if the declaration is static, false otherwise.
      Returns:
      boolean
      Throws:
      CModelException
    • isConst

      boolean isConst() throws CModelException
      Checks if the declaration is constant. Returns true if the declaration is constant, false otherwise.
      Returns:
      boolean
      Throws:
      CModelException
    • isVolatile

      boolean isVolatile() throws CModelException
      Checks if the declaration is volatile. Returns true if the declaration is volatile, false otherwise.
      Returns:
      boolean
      Throws:
      CModelException