public class PcmCodeSectionGenerator extends Object
CodeSection for a given ID using the
PcmSourceStatementLinkRepository.| Constructor and Description |
|---|
PcmCodeSectionGenerator(de.uka.ipd.sdq.beagle.core.pcmsourcestatementlink.PcmSourceStatementLinkRepository sourceStateLinkRepository,
SourceCodeFileProvider sourceCodeFileProvider)
Adapting the given SourceStateLinkRepository to the searching of IDs.
|
| Modifier and Type | Method and Description |
|---|---|
CodeSection |
getCodeSectionForID(String identifier)
Creates a
CodeSection for a given identifier. |
public PcmCodeSectionGenerator(de.uka.ipd.sdq.beagle.core.pcmsourcestatementlink.PcmSourceStatementLinkRepository sourceStateLinkRepository,
SourceCodeFileProvider sourceCodeFileProvider)
sourceStateLinkRepository - The PcmSourceStatementLinkRepository
containing the linking of Ids to SourceCodeFilessourceCodeFileProvider - The SourceCodeFileProvider for the project
under analysis.public CodeSection getCodeSectionForID(String identifier) throws FileNotFoundException
CodeSection for a given identifier.identifier - the identifier that should represent a
BranchBehaviour_BranchTransition, a BodyBehaviour_Loop,
ExternalCallAction or InternalActionCodeSection based on the given
PcmSourceStatementLinkRepositoryFileNotFoundException - if File from the given Mapping was not found