parsers/java/PJSimpleNameNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 15 Jun 2015 18:00:44 +0100
changeset 487 602215b19135
parent 436 e1c44b571db9
permissions -rw-r--r--
Fix in codegen: fixed compilation of unknown node: do not hardcode return variable name ...use `self retvalVar` instead

"{ 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
! !