eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Scanner::Comment':

Home

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

Class: Comment (private in Scanner

This class is only visible from within Scanner.

Inheritance:

   Object
   |
   +--Scanner::Comment

Package:
stx:libcomp
Category:
System-Compiler
Owner:
Scanner

Instance protocol:

accessing
o  commentString
return the value of the instance variable 'commentString' (automatically generated)

o  commentString: aString
set the value of the instance variable 'commentString' (automatically generated)

o  commentString: commentStringArg commentType: commentTypeArg

o  commentType

o  commentType: typeSymbol

o  endPosition

o  endPosition: anInteger
Modified (format): / 14-07-2020 / 10:21:12 / cg

o  startPosition

o  startPosition: anInteger
Modified (format): / 14-07-2020 / 10:20:59 / cg

o  startPosition: startPositionArg endPosition: endPositionArg

o  string

converting
o  asString

o  asStringCollection

printing & storing
o  displayOn: aStream
(comment from inherited method)
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 ...)

Notice: displayString and displayOn: are for developers, debugging and inspectors,
whereas printString and printOn: are for the program to print data.

queries
o  isDelimiterComment
a comment of the form "<<TOKEN ... TOKEN

o  isEndOfLineComment
a comment of the form "/ ...

o  isRegularComment
a regulat smalltalk comment



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 15:43:06 GMT