parsers/java/PJTypeDeclarationNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 21 Apr 2015 17:06:24 +0100
changeset 436 e1c44b571db9
parent 435 3bc08fb90133
permissions -rw-r--r--
Fixes for Smalltalk/X * Do not use Character class>>#cr /#lf as semantics of this method differ in Smalltalk/X and Squeak. Use Character class>>#codePoint: instead * Do not use Squeakism Dictionary >> #keysSortedSafely - there is no need for this as all keys are strings.

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

"{ NameSpace: Smalltalk }"

PJAbstractTypeDeclarationNode subclass:#PJTypeDeclarationNode
	instanceVariableNames:'isInterface superclassType superInterfaceTypes fieldDeclarations
		methodDeclarations'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitJava-AST'
!

!PJTypeDeclarationNode methodsFor:'accessing'!

fieldDeclarations
	^ fieldDeclarations
!

fieldDeclarations: anObject
	fieldDeclarations := anObject
!

isInterface
	^ isInterface
!

isInterface: anObject
	isInterface := anObject
!

methodDeclarations
	^ methodDeclarations
!

methodDeclarations: anObject
	methodDeclarations := anObject
!

superInterfaceTypes
	^ superInterfaceTypes
!

superInterfaceTypes: anObject
	superInterfaceTypes := anObject
!

superclassType
	^ superclassType
!

superclassType: anObject
	superclassType := anObject
! !

!PJTypeDeclarationNode methodsFor:'visiting'!

acceptVisitor: aVisitor

	aVisitor visitTypeDeclarationNode: self
! !