public static class WyalFile.Type.Union extends WyalFile.Type.UnionOrIntersection
UnionType ::= IntersectionType ('|' IntersectionType)*
Union types are used to compose types together. For example, the type
int|null represents the type which is either an
int or null.WyalFile.Type.Any, WyalFile.Type.Array, WyalFile.Type.Atom, WyalFile.Type.Bool, WyalFile.Type.Byte, WyalFile.Type.Function, WyalFile.Type.FunctionOrMacroOrInvariant, WyalFile.Type.FunctionOrMethodOrProperty, WyalFile.Type.Int, WyalFile.Type.Intersection, WyalFile.Type.Invariant, WyalFile.Type.Method, WyalFile.Type.Negation, WyalFile.Type.Nominal, WyalFile.Type.Null, WyalFile.Type.Primitive, WyalFile.Type.Property, WyalFile.Type.Record, WyalFile.Type.Reference, WyalFile.Type.Union, WyalFile.Type.UnionOrIntersection, WyalFile.Type.Void| Constructor and Description |
|---|
Union(WyalFile.Type[] types) |
| Modifier and Type | Method and Description |
|---|---|
WyalFile.Type.Union |
clone(wybs.lang.SyntacticItem[] operands) |
String |
toString() |
get, getAllallocate, compareTo, equals, getAncestor, getData, getHeap, getIndex, getOpcode, getParent, hashCode, match, setOpcode, setOperand, size, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitallocate, getData, getHeap, getIndex, getOpcode, getParent, setOpcode, setOperand, sizecompareTopublic Union(WyalFile.Type[] types)
public WyalFile.Type.Union clone(wybs.lang.SyntacticItem[] operands)
public String toString()
toString in class wybs.util.AbstractSyntacticItemCopyright © 2017. All rights reserved.