parsers/java/PJIdentifierNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 07 Sep 2015 08:03:02 +0100
changeset 536 548996aca274
parent 435 3bc08fb90133
permissions -rw-r--r--
PPCConfiguration refactoring: [8/10]: Cleaned up compilation API. Methods in PPCConfiguration not meant for public use have been moved to private protocol to make it clear.

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

"{ NameSpace: Smalltalk }"

PJExpressionNode subclass:#PJIdentifierNode
	instanceVariableNames:'name'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

PJIdentifierNode comment:'An identifier node. Variable name is identifier'
!

!PJIdentifierNode class methodsFor:'instance-creation'!

newWithName: aString
	^ super new name: aString; yourself
! !

!PJIdentifierNode methodsFor:'accessing'!

acceptVisitor: aVisitor

	^ aVisitor visitIdentifierNode: self
!

name
	^ name
!

name: aString
	name := aString
! !