edu.umd.cs.findbugs

Class DeepSubtypeAnalysis

public class DeepSubtypeAnalysis extends Object

Method Summary
static doubledeepInstanceOf(String x, String y)
Given two JavaClasses, try to estimate the probability that an reference of type x is also an instance of type y.
static doubledeepInstanceOf(JavaClass x, JavaClass y)
Given two JavaClasses, try to estimate the probability that an reference of type x is also an instance of type y.
static StringgetComponentClass(String refSig)
static doubleisDeepRemote(String refSig)
static doubleisDeepSerializable(String refSig)
static doubleisDeepSerializable(JavaClass x)

Method Detail

deepInstanceOf

public static double deepInstanceOf(String x, String y)
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 probablility

deepInstanceOf

public static double deepInstanceOf(JavaClass x, JavaClass y)
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 probablility

getComponentClass

public static String getComponentClass(String refSig)

isDeepRemote

public static double isDeepRemote(String refSig)

isDeepSerializable

public static double isDeepSerializable(String refSig)

isDeepSerializable

public static double isDeepSerializable(JavaClass x)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.