Interface ICIdentifierManager


@Ser public interface ICIdentifierManager
Factory for C variables. A manager of ICIdentifier (and ICDefinition). Each ICMethod has its own identifier factory.
  • Method Details

    • create

      default ICDecl create(int id, ICType type, String name, CIdentifierClass identClass)
      Parameters:
      id -
      type -
      name -
      identClass -
      Returns:
    • create

      ICDecl create(int id, ICType type, String name, CIdentifierClass identClass, Integer methodIndex, Long address, Integer paramIndex)
      Parameters:
      id -
      type -
      name -
      identClass -
      methodIndex -
      address -
      paramIndex -
      Returns:
    • getDeclaration

      ICDecl getDeclaration(int id)
      Get a declaration object by id.
      Parameters:
      id -
      Returns:
    • getIdentifier

      ICIdentifier getIdentifier(int id)
      Get an identifier object by id.
      Parameters:
      id -
      Returns:
    • getIdentifierAt

      ICIdentifier getIdentifierAt(long address)
      Retrieve an identifier by address (for GLOBAL idents) or local offset (for LOCAL idents). Synthetic identifiers cannot be retrieved using this method, since they do not have an address or offset.
      Parameters:
      address -
      Returns:
    • getDeclarations

      Collection<ICDecl> getDeclarations()
    • getIdentifiers

      Collection<ICIdentifier> getIdentifiers()
    • getNamingEngine

      ICNamingEngine getNamingEngine()
    • setNamingEngine

      void setNamingEngine(ICNamingEngine namingEngine)