eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'RBLiteralNode':

Home

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

Class: RBLiteralNode


Inheritance:

   Object
   |
   +--RBProgramNode
      |
      +--RBStatementNode
         |
         +--RBValueNode
            |
            +--RBLiteralNode
               |
               +--RBLiteralArrayNode
               |
               +--RBLiteralValueNode

Package:
stx:goodies/refactoryBrowser/parser
Category:
Refactory-AST-Nodes
Version:
rev: 1.40 date: 2019/03/13 19:02:21
user: cg
file: RBLiteralNode.st directory: goodies/refactoryBrowser/parser
module: stx stc-classLibrary: parser

Description:


BRLiteralNode is an AST node that represents literals (e.g., #foo, #(1 2 3), true, etc.).

Instance Variables:
        token   <BRLiteralToken>        the token that contains the literal value as well as its source positions


Class protocol:

instance creation
o  literalToken: aLiteralToken

o  value: aValue


Instance protocol:

accessing
o  generatedCode

o  precedence

o  startWithoutParentheses

o  stopWithoutParentheses

o  token

o  value

comparing
o  = anObject
avoid precision bug with floats

o  hash

enumeration
o  allLiteralNodesDo: aBlock

initialization & release
o  literalToken: aLiteralToken

matching
o  copyInContext: aDictionary

o  match: aNode inContext: aDictionary
ST/X: patternStringLiteral

special queries
o  addUsedLiteralsTo: aCollection
adds the value of the literal to aCollection

o  addUsedSymbolsTo: aCollection

testing
o  hasFalseValue

o  hasTrueValue

o  isImmediate

o  isLiteral

o  isLiteralArray

o  isLiteralByteArray

o  isLiteralCharacter

o  isLiteralFloat

o  isLiteralInteger

o  isLiteralNil

o  isLiteralNode

o  isLiteralNumber

o  isLiteralString

o  isLiteralSymbol

visitor
o  acceptVisitor: aProgramNodeVisitor



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 03:27:39 GMT