parsers/java/PJSimpleNameNode.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 }"

PJNameNode subclass:#PJSimpleNameNode
	instanceVariableNames:'isDeclaration identifier'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

!PJSimpleNameNode class methodsFor:'instance creation'!

identifier: aString 
	
	^(self new) identifier: aString; yourself
! !

!PJSimpleNameNode methodsFor:'accessing'!

fullyQualifiedName
	^ self identifier value
!

identifier
	^ identifier
!

identifier: anObject
	identifier := anObject
!

isDeclaration
	^ isDeclaration
!

isDeclaration: anObject
	isDeclaration := anObject
! !