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.23 date: 2011/09/29 11:20:00
user: cg
file: Variable.st directory: libcomp
module: stx stc-classLibrary: libcomp
Author:
Claus Gittinger

Description:


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


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: aString
set the name of the variable

o  type: typeSymbol name: aString
self assert:(aString isString).

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

special
o  domain

o  domain: aDomain

o  expressionForSetup
finite domain setup

o  type



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Mon, 04 Aug 2025 16:56:42 GMT