Class ClassHierarchyAnalysis


  • public class ClassHierarchyAnalysis
    extends CGAnalysis
    This analysis builds a call graph using Class Hierarchy Analysis (CHA). In terms of precision, this is the least precise analysis compared to RTA, VTA, and 0-CFA, but is also the cheapest analysis of the available algorithms. Several other algorithms (except 0-CFA) use CHA as a starting input for their analyses. Note: Atlas already has an implementation of CHA baked-in, so its pointless to do this analysis, except for the intellectual exercise of doing so.
    Author:
    Ben Holland
    • Method Detail

      • getCallEdgeTags

        public java.lang.String[] getCallEdgeTags()
        Description copied from class: CGAnalysis
        Returns the set of tags applied to edges during call graph construction
        Specified by:
        getCallEdgeTags in class CGAnalysis
        Returns:
      • getPerControlFlowEdgeTags

        public java.lang.String[] getPerControlFlowEdgeTags()
        Description copied from class: CGAnalysis
        Returns the set of tags applied to per control flow edges during call graph construction
        Specified by:
        getPerControlFlowEdgeTags in class CGAnalysis
        Returns:
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class CGAnalysis