Package soot.JastAddJ

Class GLBTypeFactory


  • public class GLBTypeFactory
    extends Object
    • Constructor Detail

      • GLBTypeFactory

        public GLBTypeFactory()
    • Method Detail

      • mostSpecificSuperClass

        public static final TypeDecl mostSpecificSuperClass​(ArrayList types)
        See JLS section 4.9 about Intersection Types

        For 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 -