Interface ICIdentifierManager
Factory for C variables. A manager of
ICIdentifier (and ICDefinition). Each
ICMethod has its own identifier factory.-
Method Summary
Modifier and TypeMethodDescriptiondefault ICDeclcreate(int id, ICType type, String name, CIdentifierClass identClass) create(int id, ICType type, String name, CIdentifierClass identClass, Integer methodIndex, Long address, Integer paramIndex) getDeclaration(int id) Get a declaration object by id.getIdentifier(int id) Get an identifier object by id.getIdentifierAt(long address) voidsetNamingEngine(ICNamingEngine namingEngine)
-
Method Details
-
create
- 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
Get a declaration object by id.- Parameters:
id-- Returns:
-
getIdentifier
Get an identifier object by id.- Parameters:
id-- Returns:
-
getIdentifierAt
Retrieve an identifier by address (forGLOBALidents) or local offset (forLOCALidents).Syntheticidentifiers 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
-