435
|
1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
PJCommentsNode subclass:#PJEndOfLineCommentsNode
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'PetitJava-AST'
|
|
10 |
!
|
|
11 |
|
|
12 |
PJEndOfLineCommentsNode comment:''
|
|
13 |
!
|
|
14 |
|
|
15 |
!PJEndOfLineCommentsNode class methodsFor:'as yet unclassified'!
|
|
16 |
|
|
17 |
comment: aString
|
|
18 |
^(self new) comment: aString; yourself.
|
|
19 |
! !
|
|
20 |
|
|
21 |
!PJEndOfLineCommentsNode methodsFor:'as yet unclassified'!
|
|
22 |
|
|
23 |
comment: aString
|
|
24 |
aString ifNotNil: [ comment := (aString collect: #asciiValue) asByteArray asString ].
|
|
25 |
aString ifNil: [ comment := '' ]
|
|
26 |
!
|
|
27 |
|
|
28 |
printOn: aStream
|
|
29 |
.^ aStream
|
|
30 |
nextPutAll: 'EndOfLineComment value ==> ';
|
|
31 |
nextPutAll: self comment.
|
|
32 |
|
|
33 |
! !
|
|
34 |
|