eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SelfNode':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: SelfNode


Inheritance:

   Object
   |
   +--ParseNode
      |
      +--PrimaryNode
         |
         +--SelfNode
            |
            +--JavaScriptParser::ThisNode
            |
            +--SuperNode

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.23 date: 2017/02/22 18:10:05
user: cg
file: SelfNode.st directory: libcomp
module: stx stc-classLibrary: libcomp
Author:
Claus Gittinger

Description:


node for parse-trees, representing self
This is a helper class for the compiler.


Class protocol:

instance creation
o  value: val


Instance protocol:

accessing
o  name

o  value: val

code generation
o  codeForSimpleReturnOn: aStream inBlock: b lineNumber: lineNrOrNil for: aCompiler

o  codeOn: aStream inBlock: codeBlock for: aCompiler

o  codeStoreOn: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler
not reached - parser has already checked this

enumerating
o  nodeDo: anEnumerator
helper for parse tree walking

evaluation
o  evaluateIn: anEnvironment

o  store: aValue
not reached - parser has already checked this

printing & storing
o  displayOn: aGCOrStream
Compatibility
append a printed desription on some stream (Dolphin, Squeak)
OR:
display the receiver in a graphicsContext at 0@0 (ST80).
This method allows for any object to be displayed in some view
(although the fallBack is to display its printString ...)

o  printOn: aStream indent: i

testing
o  isSelf
return true, if this is a self-node

visiting
o  acceptVisitor: aVisitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 23 Apr 2024 19:44:31 GMT