public static interface Type.Union extends Type
int and null is int|null.
Any variable of this type may hold any integer or the null value.
Furthermore, the types int and null are
collectively referred to as the "bounds" of this type.Type.Array, Type.EffectiveArray, Type.EffectiveRecord, Type.EffectiveReference, Type.Function, Type.FunctionOrMethod, Type.Impl, Type.Intersection, Type.Leaf, Type.Method, Type.Negation, Type.Nominal, Type.Primitive, Type.Property, Type.Record, Type.Reference, Type.Union| Modifier and Type | Method and Description |
|---|---|
Type[] |
bounds() |
Array, fromString, Function, Intersection, Method, Method, Method, Negation, Nominal, Property, Record, Record, Reference, toImplArrays, toImplOrVoid, toImplRecords, UnionType[] bounds()
Copyright © 2017. All rights reserved.