435
|
1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
PJExpressionNode subclass:#PJBooleanLiteralNode
|
|
6 |
instanceVariableNames:'booleanValue'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'PetitJava-AST'
|
|
10 |
!
|
|
11 |
|
|
12 |
PJBooleanLiteralNode comment:'Node representing a boolean literal'
|
|
13 |
!
|
|
14 |
|
|
15 |
!PJBooleanLiteralNode class methodsFor:'instance creation'!
|
|
16 |
|
|
17 |
booleanValue: aBoolean
|
|
18 |
|
|
19 |
^(self new) booleanValue: aBoolean
|
|
20 |
! !
|
|
21 |
|
|
22 |
!PJBooleanLiteralNode methodsFor:'accessing'!
|
|
23 |
|
|
24 |
booleanValue
|
|
25 |
^ booleanValue
|
|
26 |
!
|
|
27 |
|
|
28 |
booleanValue: anObject
|
|
29 |
booleanValue := anObject
|
|
30 |
! !
|
|
31 |
|
|
32 |
!PJBooleanLiteralNode methodsFor:'visiting'!
|
|
33 |
|
|
34 |
acceptVisitor: aVisitor
|
|
35 |
|
|
36 |
^ aVisitor visitBooleanLiteralNode: self
|
|
37 |
! !
|
|
38 |
|