parsers/java/PJConstructorDeclarationNode.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 10 Jun 2020 21:33:27 +0100
changeset 650 4c6ed0a28d18
parent 642 77d5fddb6462
permissions -rw-r--r--
Replace `ifNil:[...]` with `isNil ifTrue:[...]` The latter is optimized by compilers and therefore faster.

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

"{ NameSpace: Smalltalk }"

PJBehaviouralNode subclass:#PJConstructorDeclarationNode
	instanceVariableNames:'constructorInvocation statements'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

PJConstructorDeclarationNode comment:'constructor-specific behavioural entity.

more in superclass comment'
!

!PJConstructorDeclarationNode methodsFor:'accessing'!

acceptVisitor: aVisitor

	aVisitor visitConstructorDeclarationNode: self
!

constructorInvocation
	^ constructorInvocation
!

constructorInvocation: aConstructorInvocation
	constructorInvocation := aConstructorInvocation
!

statements
	^ statements
!

statements: aCollection 
	statements := aCollection 
! !