equal
deleted
inserted
replaced
|
1 "{ Package: 'stx:goodies/petitparser/parsers/java' }" |
|
2 |
|
3 "{ NameSpace: Smalltalk }" |
|
4 |
|
5 PJStatementNode subclass:#PJIfStatementNode |
|
6 instanceVariableNames:'condition thenPart elsePart' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'PetitJava-AST' |
|
10 ! |
|
11 |
|
12 PJIfStatementNode comment:'Node representing an if statement. If with and without else are both covere by this node' |
|
13 ! |
|
14 |
|
15 !PJIfStatementNode methodsFor:'accessing'! |
|
16 |
|
17 condition |
|
18 ^ condition |
|
19 ! |
|
20 |
|
21 condition: anObject |
|
22 condition := anObject |
|
23 ! |
|
24 |
|
25 elsePart |
|
26 ^ elsePart |
|
27 ! |
|
28 |
|
29 elsePart: anObject |
|
30 elsePart := anObject |
|
31 ! |
|
32 |
|
33 thenPart |
|
34 ^ thenPart |
|
35 ! |
|
36 |
|
37 thenPart: anObject |
|
38 thenPart := anObject |
|
39 ! ! |
|
40 |
|
41 !PJIfStatementNode methodsFor:'visiting'! |
|
42 |
|
43 acceptVisitor: aVisitor |
|
44 |
|
45 ^ aVisitor visitIfStatementNode: self |
|
46 ! ! |
|
47 |