public static class WyalFile.Type.Null extends WyalFile.Type.Atom implements WyalFile.Type.Primitive
null value (where as there is no special "void"
value). With all of the problems surrounding null and
NullPointerExceptions in languages like Java and C, it may
seem that this type should be avoided. However, it remains a very useful
abstraction to have around and, in Whiley, it is treated in a completely
safe manner (unlike e.g. Java).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 |
|---|
Null() |
| Modifier and Type | Method and Description |
|---|---|
WyalFile.Type.Null |
clone(wybs.lang.SyntacticItem[] operands) |
String |
toString() |
allocate, compareTo, equals, get, getAll, getAncestor, getData, getHeap, getIndex, getOpcode, getParent, hashCode, match, setOpcode, setOperand, size, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitallocate, get, getAll, getData, getHeap, getIndex, getOpcode, getParent, setOpcode, setOperand, sizecompareTopublic WyalFile.Type.Null clone(wybs.lang.SyntacticItem[] operands)
clone in interface wybs.lang.SyntacticItempublic String toString()
toString in class wybs.util.AbstractSyntacticItemCopyright © 2017. All rights reserved.