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