Package soot.JastAddJ
Class GLBTypeFactory
- java.lang.Object
-
- soot.JastAddJ.GLBTypeFactory
-
public class GLBTypeFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description GLBTypeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeDeclglb(ArrayList typeList)static voidgreatestLowerBounds(ArrayList types)Find the greatest lower bound(s).static TypeDeclmostSpecificSuperClass(ArrayList types)See JLS section 4.9 about Intersection Typesstatic voidremoveNullValues(ArrayList types)Remove null values from the given list
-
-
-
Method Detail
-
mostSpecificSuperClass
public static final TypeDecl mostSpecificSuperClass(ArrayList types)
See JLS section 4.9 about Intersection TypesFor each Ti, 1 ≤ i ≤ n, let Ci be the most specific class or array type such that Ti <: Ci Then there must be some Tk <: Ck such that Ck <: Ci for any i, 1 ≤ i ≤ n, or a compile-time error occurs.
- Parameters:
types-- Returns:
- the most specific class that all elements in types are a subtype of. Or null if no such class exists.
-
greatestLowerBounds
public static final void greatestLowerBounds(ArrayList types)
Find the greatest lower bound(s).- Parameters:
types-
-
removeNullValues
public static final void removeNullValues(ArrayList types)
Remove null values from the given list- Parameters:
types-
-
-