parsers/java/PJCommentsNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 May 2015 01:57:37 +0100
changeset 461 5986bf6d7d60
parent 436 e1c44b571db9
permissions -rw-r--r--
Portability: fixes for Smalltalk/X * Do not use #crShow: - not present in Smalltalk/X * Do not use Array class>>with:withAll: * do not use detect:ifFound:ifAbsent:

"{ Package: 'stx:goodies/petitparser/parsers/java' }"

"{ NameSpace: Smalltalk }"

PJSyntaxNode subclass:#PJCommentsNode
	instanceVariableNames:'comment'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

!PJCommentsNode class methodsFor:'as yet unclassified'!

comment: aString
	^(self new) comment: aString; yourself.
! !

!PJCommentsNode methodsFor:'as yet unclassified'!

acceptVisitor: aVisitor
	^ aVisitor visitCommentsNode: self
!

comment
^ comment.
!

comment: aString 
	comment := aString.
!

printOn: aStream
	^	aStream 
		nextPutAll: 'comment value ==> ';
		nextPutAll: self comment.
  
! !