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.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 |
|---|
Intersection(WyalFile.Type[] types,
wybs.lang.Attribute... attributes) |
| Modifier and Type | Method and Description |
|---|---|
WyalFile.Type.Intersection |
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 Intersection(WyalFile.Type[] types, wybs.lang.Attribute... attributes)
public WyalFile.Type.Intersection clone(SyntacticItem[] operands)
SyntacticItemsize() for this item, and
be of appropriate type.public String toString()
toString in class AbstractSyntacticItemCopyright © 2017. All rights reserved.