eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Variable':

Home

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

Class: Variable


Inheritance:

   Object
   |
   +--Variable
      |
      +--JavaScriptVariable

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.25 date: 2021/01/20 10:29:40
user: cg
file: Variable.st directory: libcomp
module: stx stc-classLibrary: libcomp

Description:


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

copyright

COPYRIGHT (c) 1989 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  name: name
return a new node for a variable named name

o  type: type name: name


Instance protocol:

accessing
o  classHint

o  classHint: something

o  name
return the name of the variable

o  name: nameString
set the name of the variable

o  type: typeSymbol name: nameString
self assert:nameString notNil.

o  used
return the flag marking that this variable has been used

o  used: aBoolean
set/clear the flag marking that this variable has been used

o  value
return the value of the variable

o  value: v
set the value of the (simulated) variable

o  variableValue
return the value of the variable

enumerating
o  nodeDo: anEnumerator
helper for parse tree walking

printing & storing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

special
o  domain

o  domain: aDomain

o  expressionForSetup
finite domain setup

o  type



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:30:24 GMT