equal
deleted
inserted
replaced
|
1 "{ Package: 'stx:goodies/petitparser/parsers/java' }" |
|
2 |
|
3 "{ NameSpace: Smalltalk }" |
|
4 |
|
5 PJExpressionNode subclass:#PJInfixOperationNode |
|
6 instanceVariableNames:'left operator right' |
|
7 classVariableNames:'' |
|
8 poolDictionaries:'' |
|
9 category:'PetitJava-AST' |
|
10 ! |
|
11 |
|
12 PJInfixOperationNode comment:'This node is a STUB!!!!!!!! |
|
13 |
|
14 It''s being used for each node that consists of 2 expressions and some operation in between e.g.: +, -, =, +=, ==...' |
|
15 ! |
|
16 |
|
17 !PJInfixOperationNode methodsFor:'accessing'! |
|
18 |
|
19 left |
|
20 ^ left |
|
21 ! |
|
22 |
|
23 left: anObject |
|
24 left := anObject |
|
25 ! |
|
26 |
|
27 operator |
|
28 ^ operator |
|
29 ! |
|
30 |
|
31 operator: anObject |
|
32 operator := anObject |
|
33 ! |
|
34 |
|
35 right |
|
36 ^ right |
|
37 ! |
|
38 |
|
39 right: anObject |
|
40 right := anObject |
|
41 ! ! |
|
42 |
|
43 !PJInfixOperationNode methodsFor:'visiting'! |
|
44 |
|
45 acceptVisitor: aVisitor |
|
46 |
|
47 ^ aVisitor visitInfixOperationNode: self |
|
48 ! ! |
|
49 |