parsers/java/PJAnnotationNode.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 10 Jun 2020 21:33:27 +0100
changeset 650 4c6ed0a28d18
parent 436 e1c44b571db9
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 }"

PJExpressionNode subclass:#PJAnnotationNode
	instanceVariableNames:'typeName'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

!PJAnnotationNode class methodsFor:'instance creation'!

typeName: aPJNameNode

	^(self new) typeName: aPJNameNode ; yourself
! !

!PJAnnotationNode methodsFor:'accessing'!

typeName
	^ typeName
!

typeName: anObject
	typeName := anObject
! !

!PJAnnotationNode methodsFor:'testing'!

isAnnotation

	^true
!

isModifier 

	^ false
! !