Back: Process-printing Up: Base classes Forward: ProcessEnvironment class-disabled   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.132 ProcessEnvironment

Defined in namespace Smalltalk
Superclass: Object
Category: Language-Processes
I represent a proxy for thread-local variables defined for Smalltalk processes. Associations requested to me retrieve the thread-local value for the current process. For now, I don't provide the full protocol of a Dictionary; in particular the iteration protocol is absent.

1.132.1 ProcessEnvironment class: disabled  (class)
1.132.2 ProcessEnvironment class: singleton  (class)
1.132.3 ProcessEnvironment: accessing  (instance)
1.132.4 ProcessEnvironment: dictionary removing  (instance)
1.132.5 ProcessEnvironment: dictionary testing  (instance)


1.132.1 ProcessEnvironment class: disabled

new
This method should not be called for instances of this class.


1.132.2 ProcessEnvironment class: singleton

uniqueInstance
Return the singleton instance of ProcessEnvironment.


1.132.3 ProcessEnvironment: accessing

add: newObject
Add the newObject association to the receiver

associationAt: key
Answer the value associated to the given key, or the result of evaluating aBlock if the key is not found

associationAt: key ifAbsent: aBlock
Answer the value associated to the given key, or the result of evaluating aBlock if the key is not found

at: key
Answer the value associated to the given key. Return nil if the key is not found

at: key ifAbsent: aBlock
Answer the value associated to the given key, or the result of evaluating aBlock if the key is not found

at: key ifAbsentPut: aBlock
Answer the value associated to the given key, setting it to the result of evaluating aBlock if the key is not found.

at: key ifPresent: aBlock
Answer the value associated to the given key, or the result of evaluating aBlock if the key is not found

at: key put: value
Store value as associated to the given key

keys
Answer a kind of Set containing the keys of the receiver


1.132.4 ProcessEnvironment: dictionary removing

remove: anAssociation
Remove anAssociation's key from the dictionary

remove: anAssociation ifAbsent: aBlock
Remove anAssociation's key from the dictionary

removeAllKeys: keys
Remove all the keys in keys, without raising any errors

removeAllKeys: keys ifAbsent: aBlock
Remove all the keys in keys, passing the missing keys as parameters to aBlock as they're encountered

removeKey: aSymbol
Remove the aSymbol key from the dictionary

removeKey: aSymbol ifAbsent: aBlock
Remove the aSymbol key from the dictionary


1.132.5 ProcessEnvironment: dictionary testing

includesKey: key
Answer whether the receiver contains the given key



Back: ProcessEnvironment-dictionary removing Up: ProcessEnvironment Forward: ProcessorScheduler   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on July, 23 2009 using texi2html