public static class WyalFile.Type.Intersection extends WyalFile.Type.UnionOrIntersection
IntersectionType ::= BaseType ('&' BaseType)*
Intersection types are used to unify types together. For example, the
type {int x, int y}&MyType represents the type which is both
an instanceof of {int x, int y} and an instance of
MyType.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 |
|---|
Intersection(WyalFile.Type[] types) |
| Modifier and Type | Method and Description |
|---|---|
WyalFile.Type.Intersection |
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 Intersection(WyalFile.Type[] types)
public WyalFile.Type.Intersection clone(wybs.lang.SyntacticItem[] operands)
public String toString()
toString in class wybs.util.AbstractSyntacticItemCopyright © 2017. All rights reserved.