435
|
1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
PJAbstractTypeDeclarationNode subclass:#PJTypeDeclarationNode
|
|
6 |
instanceVariableNames:'isInterface superclassType superInterfaceTypes fieldDeclarations
|
|
7 |
methodDeclarations'
|
|
8 |
classVariableNames:''
|
|
9 |
poolDictionaries:''
|
|
10 |
category:'PetitJava-AST'
|
|
11 |
!
|
|
12 |
|
|
13 |
!PJTypeDeclarationNode methodsFor:'accessing'!
|
|
14 |
|
|
15 |
fieldDeclarations
|
|
16 |
^ fieldDeclarations
|
|
17 |
!
|
|
18 |
|
|
19 |
fieldDeclarations: anObject
|
|
20 |
fieldDeclarations := anObject
|
|
21 |
!
|
|
22 |
|
|
23 |
isInterface
|
|
24 |
^ isInterface
|
|
25 |
!
|
|
26 |
|
|
27 |
isInterface: anObject
|
|
28 |
isInterface := anObject
|
|
29 |
!
|
|
30 |
|
|
31 |
methodDeclarations
|
|
32 |
^ methodDeclarations
|
|
33 |
!
|
|
34 |
|
|
35 |
methodDeclarations: anObject
|
|
36 |
methodDeclarations := anObject
|
|
37 |
!
|
|
38 |
|
|
39 |
superInterfaceTypes
|
|
40 |
^ superInterfaceTypes
|
|
41 |
!
|
|
42 |
|
|
43 |
superInterfaceTypes: anObject
|
|
44 |
superInterfaceTypes := anObject
|
|
45 |
!
|
|
46 |
|
|
47 |
superclassType
|
|
48 |
^ superclassType
|
|
49 |
!
|
|
50 |
|
|
51 |
superclassType: anObject
|
|
52 |
superclassType := anObject
|
|
53 |
! !
|
|
54 |
|
|
55 |
!PJTypeDeclarationNode methodsFor:'visiting'!
|
|
56 |
|
|
57 |
acceptVisitor: aVisitor
|
|
58 |
|
|
59 |
aVisitor visitTypeDeclarationNode: self
|
|
60 |
! !
|
|
61 |
|