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.39 date: 2017/07/16 12:33:01
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.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 17 Nov 2018 09:33:11 GMT