435
|
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.
Example.
statement: int a;
declarator: a
statement: float a, b = 4;
declarator1: a
declarator2: b = 4'
|
|
13 |
!
|
|
14 |
|
|
15 |
!PJVariableDeclaratorNode methodsFor:'accessing'!
|
|
16 |
|
|
17 |
acceptVisitor: aVisitor
|
|
18 |
|
|
19 |
^ aVisitor visitVariableDeclaratorNode: self
|
|
20 |
!
|
|
21 |
|
|
22 |
arrayLevel
|
|
23 |
^ arrayLevel
|
|
24 |
!
|
|
25 |
|
|
26 |
arrayLevel: anObject
|
|
27 |
arrayLevel := anObject
|
|
28 |
!
|
|
29 |
|
|
30 |
initializer
|
|
31 |
^ initializer
|
|
32 |
!
|
|
33 |
|
|
34 |
initializer: anObject
|
|
35 |
initializer := anObject
|
|
36 |
!
|
|
37 |
|
|
38 |
variable
|
|
39 |
^ variable
|
|
40 |
!
|
|
41 |
|
|
42 |
variable: anObject
|
|
43 |
variable := anObject
|
|
44 |
! !
|
|
45 |
|