public class GLBTypeFactory extends Object
| Constructor and Description |
|---|
GLBTypeFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TypeDecl |
glb(ArrayList typeList) |
static void |
greatestLowerBounds(ArrayList types)
Find the greatest lower bound(s).
|
static TypeDecl |
mostSpecificSuperClass(ArrayList types)
See JLS section 4.9 about Intersection Types
|
static void |
removeNullValues(ArrayList types)
Remove null values from the given list
|
public static final TypeDecl mostSpecificSuperClass(ArrayList 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.
types - public static final void greatestLowerBounds(ArrayList types)
types - public static final void removeNullValues(ArrayList types)
types - Copyright © 2020 Soot OSS. All rights reserved.