Interface IStructure

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, ICElement, IDeclaration, IInheritance, IParent, ISourceManipulation, ISourceReference, IStructureDeclaration
All Known Subinterfaces:
IStructureTemplate

public interface IStructure extends IInheritance, IParent, IStructureDeclaration
Represent struct(ure), class or union.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Details

    • getField

      IField getField(String name)
      Returns the specific field with the given name within the structure.
      Parameters:
      name - the name of the field
      Returns:
      the field with the given name, or null if not found
    • getFields

      IField[] getFields() throws CModelException
      Returns the fields of a structure.
      Returns:
      an array of IField elements
      Throws:
      CModelException
    • getMethod

      IMethodDeclaration getMethod(String name)
      Returns the specific method with the given name within the structure. Returns the first occurrence more than one method has the same name.
      Parameters:
      name -
      Returns:
      IMethodDeclaration
    • getMethods

      IMethodDeclaration[] getMethods() throws CModelException
      Returns all methods within the structure.
      Returns:
      array of IMethodDeclaration.
      Throws:
      CModelException
    • isAbstract

      boolean isAbstract() throws CModelException
      Checks if the structure is abstract
      Returns:
      boolean
      Throws:
      CModelException