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