Squeak Class Documentation category index | class index  
 
UndefinedObject
  category: Kernel-Objects
  superclass: Object
  subclasses:

I describe the behavior of my sole instance, nil. nil represents a prior value for variables that have not been initialized, or for results which are meaningless.

instance methods
  3ds parser support
  from3DS:

  class hierarchy
  addSubclass:
environment
removeSubclass:
subclass:instanceVariableNames:classVariableNames:poolDictionaries:category:
subclassDefinerClass
subclasses
subclassesDo:
subclassesDoGently:
typeOfClass

  copying
  clone
deepCopy
shallowCopy
veryDeepCopyWith:

  dependents access
  addDependent:
release
suspend

  printing
  newTileMorphRepresentative
printOn:
storeOn:

  testing
  haltIfNil
ifNil:
ifNil:ifNotNil:
ifNotNil:
ifNotNil:ifNil:
ifNotNilDo:
isEmptyOrNil
isLiteral
isNil
notNil

class methods
  instance creation
  initializedInstance
new

instance methods
  3ds parser support top  
 

from3DS:


  class hierarchy top  
 

addSubclass:

Ignored -- necessary to support disjoint class hierarchies


 

environment

Necessary to support disjoint class hierarchies.


 

removeSubclass:

Ignored -- necessary to support disjoint class hierarchies


 

subclass:instanceVariableNames:classVariableNames:poolDictionaries:category:

Calling this method is now considered an accident. If you really want to create a class with a nil superclass, then create the class and then set the superclass using #superclass:


 

subclassDefinerClass

For disjunct class hierarchies -- how should subclasses of nil be evaluated


 

subclasses

Return all the subclasses of nil


 

subclassesDo:

Evaluate aBlock with all subclasses of nil.


 

subclassesDoGently:

Evaluate aBlock with all subclasses of nil. Others are not direct subclasses of Class.


 

typeOfClass

Necessary to support disjoint class hierarchies.


  copying top  
 

clone

Only one instance of UndefinedObject should ever be made, so answer
with self.


 

deepCopy

Only one instance of UndefinedObject should ever be made, so answer
with self.


 

shallowCopy

Only one instance of UndefinedObject should ever be made, so answer
with self.


 

veryDeepCopyWith:

Return self. I can't be copied. Do not record me.


  dependents access top  
 

addDependent:

Refer to the comment in Object|dependents.


 

release

Nil release is a no-op


 

suspend

Kills off processes that didn't terminate properly


  printing top  
 

newTileMorphRepresentative


 

printOn:

Refer to the comment in Object|printOn:.


 

storeOn:

Refer to the comment in Object|storeOn:.


  testing top  
 

haltIfNil


 

ifNil:

A convenient test, in conjunction with Object ifNil:


 

ifNil:ifNotNil:

Evaluate the block for nil because I'm == nil


 

ifNotNil:

A convenient test, in conjunction with Object ifNotNil:


 

ifNotNil:ifNil:

If I got here, I am nil, so evaluate the block nilBlock


 

ifNotNilDo:

Override to do nothing.


 

isEmptyOrNil

Answer whether the receiver contains any elements, or is nil. Useful in numerous situations where one wishes the same reaction to an empty collection or to nil


 

isLiteral

Answer whether the receiver has a literal text form recognized by the
compiler.


 

isNil

Refer to the comment in Object|isNil.


 

notNil

Refer to the comment in Object|notNil.


class methods
  instance creation top  
 

initializedInstance

Answer an instance of the receiver which in some sense is initialized. In the case of Morphs, this will yield an instance that can be attached to the Hand after having received the same kind of basic initialization that would be obtained from an instance chosen from the 'new morph' menu. Return nil if the receiver is reluctant for some reason to return such a thing


 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.