Class WholeProgramInferenceScenesStorage

java.lang.Object
org.checkerframework.common.wholeprograminference.WholeProgramInferenceScenesStorage
All Implemented Interfaces:
WholeProgramInferenceStorage<ATypeElement>

public class WholeProgramInferenceScenesStorage extends Object implements WholeProgramInferenceStorage<ATypeElement>
This class stores annotations using scenelib objects.

The set of annotations inferred for a certain class is stored in an AScene, which writeScenes() can write into a file. For example, a class my.pakkage.MyClass will have its members' inferred types stored in a Scene, and later written into a file named my.pakkage.MyClass.jaif if using WholeProgramInference.OutputFormat.JAIF, or my.pakkage.MyClass.astub if using WholeProgramInference.OutputFormat.STUB.

This class populates the initial Scenes by reading existing .jaif files on the inferOutputDirectory directory (regardless of output format). Having more information in those initial .jaif files means that the precision achieved by the whole-program inference analysis will be better. writeScenes(org.checkerframework.common.wholeprograminference.WholeProgramInference.OutputFormat, org.checkerframework.common.basetype.BaseTypeChecker) rewrites the initial .jaif files and may create new ones.