Class MethodAnalysis


  • public final class MethodAnalysis
    extends java.lang.Object
    Utility class for method analysis.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MethodAnalysis()
      Private constructor to prevent instantiation, because it is a utility class.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isDuplicatedLocation​(MethodDescriptor methodDescriptor, int pc)
      Check if the location is duplicated in the method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MethodAnalysis

        private MethodAnalysis()
        Private constructor to prevent instantiation, because it is a utility class.
    • Method Detail

      • isDuplicatedLocation

        public static boolean isDuplicatedLocation​(MethodDescriptor methodDescriptor,
                                                   int pc)
                                            throws CheckedAnalysisException
        Check if the location is duplicated in the method. Locations in finally blocks will be duplicated in the bytecode level.
        Returns:
        true if the location is duplicated in the method, false otherwise
        Throws:
        CheckedAnalysisException - if an error occurs during the analysis