equal
deleted
inserted
replaced
|
1 "{ Package: 'stx:goodies/petitparser/parsers/java' }" |
|
2 |
|
3 "{ NameSpace: Smalltalk }" |
|
4 |
|
5 PJStatementNode subclass:#PJLocalVariableDeclarationStatementNode |
|
6 instanceVariableNames:'modifiers type declarators' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'PetitJava-AST' |
|
10 ! |
|
11 |
|
12 PJLocalVariableDeclarationStatementNode comment:'Node representing a local variable declaration statement. |
|
13 |
|
14 Eg: |
|
15 |
|
16 int a; |
|
17 int a = 5; |
|
18 int a, b; |
|
19 int a = 5, b;' |
|
20 ! |
|
21 |
|
22 !PJLocalVariableDeclarationStatementNode methodsFor:'accessing'! |
|
23 |
|
24 acceptVisitor: aVisitor |
|
25 |
|
26 ^ aVisitor visitLocalVariableDeclarationStatementNode: self |
|
27 ! |
|
28 |
|
29 declarators |
|
30 ^ declarators |
|
31 ! |
|
32 |
|
33 declarators: anObject |
|
34 declarators := anObject |
|
35 ! |
|
36 |
|
37 modifiers |
|
38 ^ modifiers |
|
39 ! |
|
40 |
|
41 modifiers: anObject |
|
42 modifiers := anObject |
|
43 ! |
|
44 |
|
45 type |
|
46 ^ type |
|
47 ! |
|
48 |
|
49 type: anObject |
|
50 type := anObject |
|
51 ! ! |
|
52 |