Class Analyze

java.lang.Object
edu.umd.cs.findbugs.Analyze

public class Analyze extends Object
  • Constructor Details

    • Analyze

      public Analyze()
  • Method Details

    • isDeepSerializable

      public static double isDeepSerializable(String refSig) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • isDeepRemote

      public static double isDeepRemote(String refSig)
    • getComponentClass

      public static String getComponentClass(String refSig)
    • isDeepSerializable

      public static double isDeepSerializable(org.apache.bcel.classfile.JavaClass x) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • deepInstanceOf

      public static double deepInstanceOf(@DottedClassName String x, @DottedClassName String y) throws ClassNotFoundException
      Given two JavaClasses, try to estimate the probability that an reference of type x is also an instance of type y. Will return 0 only if it is impossible and 1 only if it is guaranteed.
      Parameters:
      x - Known type of object
      y - Type queried about
      Returns:
      0 - 1 value indicating probability
      Throws:
      ClassNotFoundException
    • deepInstanceOf

      public static double deepInstanceOf(org.apache.bcel.classfile.JavaClass x, org.apache.bcel.classfile.JavaClass y) throws ClassNotFoundException
      Given two JavaClasses, try to estimate the probability that an reference of type x is also an instance of type y. Will return 0 only if it is impossible and 1 only if it is guaranteed.
      Parameters:
      x - Known type of object
      y - Type queried about
      Returns:
      0 - 1 value indicating probability
      Throws:
      ClassNotFoundException