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.AbstractSyntacticItem.Blocks, AbstractSyntacticItem.Extras, AbstractSyntacticItem.Operands, AbstractSyntacticItem.SchemaWyalFile.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.Voiddata| Constructor and Description |
|---|
Union(WyalFile.Type[] types,
wybs.lang.Attribute... attributes) |
| Modifier and Type | Method and Description |
|---|---|
WyalFile.Type.Union |
clone(SyntacticItem[] operands)
Create a new copy of the given syntactic item with the given operands.
|
String |
toString() |
getOperand, getOperandsallocate, compareTo, equals, getData, getIndex, getOpcode, getParent, hashCode, setOpcode, setOperand, sizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitallocate, getData, getIndex, getOpcode, getParent, setOpcode, setOperand, sizecompareTopublic Union(WyalFile.Type[] types, wybs.lang.Attribute... attributes)
public WyalFile.Type.Union clone(SyntacticItem[] operands)
SyntacticItemsize() for this item, and
be of appropriate type.public String toString()
toString in class AbstractSyntacticItemCopyright © 2017. All rights reserved.