author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 18 Aug 2015 22:46:10 +0100 | |
changeset 523 | 09afcf28ed60 |
parent 454 | a9cd5ea7cc36 |
permissions | -rw-r--r-- |
435 | 1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }" |
2 |
||
3 |
"{ NameSpace: Smalltalk }" |
|
4 |
||
5 |
LibraryDefinition subclass:#stx_goodies_petitparser_parsers_java |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'* Projects & Packages *' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!stx_goodies_petitparser_parsers_java class methodsFor:'accessing - monticello'! |
|
14 |
||
15 |
monticelloLastMergedVersionInfo |
|
16 |
"The last merged version is: " |
|
17 |
||
18 |
^ ' |
|
19 |
Name: PetitJava-JanKurs.160 |
|
20 |
Author: JanKurs |
|
21 |
Time: 19-12-2014, 01:00:18.354 PM |
|
22 |
UUID: 1cb1b46d-8c68-4751-9720-f0dd742f3e16 |
|
23 |
' |
|
24 |
||
25 |
"Created: / 03-10-2014 / 02:27:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
26 |
"Modified: / 21-04-2015 / 13:03:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
27 |
! |
|
28 |
||
29 |
monticelloName |
|
30 |
"Return name of the package for Monticello. This is used when package is exported" |
|
31 |
||
32 |
^ 'PetitJava' |
|
33 |
||
34 |
"Created: / 03-10-2014 / 01:47:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
35 |
"Modified: / 21-04-2015 / 13:02:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
36 |
! ! |
|
37 |
||
38 |
!stx_goodies_petitparser_parsers_java class methodsFor:'description'! |
|
39 |
||
40 |
excludedFromPreRequisites |
|
41 |
"list packages which are to be explicitely excluded from the automatic constructed |
|
42 |
prerequisites list. If empty, everything that is found along the inheritance of any of |
|
43 |
my classes is considered to be a prerequisite package." |
|
44 |
||
45 |
^ #( |
|
46 |
) |
|
47 |
! |
|
48 |
||
49 |
mandatoryPreRequisites |
|
50 |
"list packages which are mandatory as a prerequisite. |
|
51 |
This are packages containing superclasses of my classes and classes which |
|
52 |
are extended by myself. |
|
53 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling. |
|
54 |
This method is generated automatically, |
|
55 |
by searching along the inheritance chain of all of my classes." |
|
56 |
||
57 |
^ #( |
|
58 |
#'stx:goodies/petitparser' "PPCompositeParser - superclass of PPJavaLexicon" |
|
59 |
#'stx:goodies/petitparser/tests' "PPAbstractParserTest - superclass of PPJavaLexiconTest" |
|
60 |
#'stx:goodies/sunit' "TestAsserter - superclass of PPJavaLexiconTest" |
|
61 |
#'stx:libbasic' "ArithmeticValue - extended" |
|
62 |
) |
|
63 |
! |
|
64 |
||
65 |
referencedPreRequisites |
|
66 |
"list packages which are a prerequisite, because they contain |
|
67 |
classes which are referenced by my classes. |
|
68 |
We do not need these packages as a prerequisite for compiling or loading, |
|
69 |
however, a class from it may be referenced during execution and having it |
|
70 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller |
|
71 |
includes explicit checks for the package being present. |
|
72 |
This method is generated automatically, |
|
73 |
by searching all classes (and their packages) which are referenced by my classes." |
|
74 |
||
75 |
^ #( |
|
76 |
) |
|
77 |
! |
|
78 |
||
79 |
stcOptimizationOptions |
|
80 |
"do not inline the not operation here - it is overwritten" |
|
81 |
||
82 |
^ super stcOptimizationOptions , ' -inlinenot' |
|
83 |
||
84 |
"Created: / 13-04-2015 / 14:18:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
85 |
! |
|
86 |
||
87 |
subProjects |
|
88 |
"list packages which are known as subprojects. |
|
89 |
The generated makefile will enter those and make there as well. |
|
90 |
However: they are not forced to be loaded when a package is loaded; |
|
91 |
for those, redefine requiredPrerequisites." |
|
92 |
||
93 |
^ #( |
|
94 |
) |
|
95 |
! ! |
|
96 |
||
97 |
!stx_goodies_petitparser_parsers_java class methodsFor:'description - contents'! |
|
98 |
||
99 |
classNamesAndAttributes |
|
100 |
"lists the classes which are to be included in the project. |
|
101 |
Each entry in the list may be: a single class-name (symbol), |
|
102 |
or an array-literal consisting of class name and attributes. |
|
103 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
104 |
||
105 |
^ #( |
|
106 |
"<className> or (<className> attributes...) in load order" |
|
107 |
PJASTNode |
|
108 |
PJASTNodeVisitor |
|
109 |
PPJavaLexicon |
|
110 |
(PPJavaLexiconTest autoload) |
|
111 |
PPJavaToken |
|
112 |
PPJavaTokenParser |
|
113 |
PPJavaWhitespaceParser |
|
114 |
#'stx_goodies_petitparser_parsers_java' |
|
115 |
PJBlockNode |
|
116 |
PJBodyDeclarationNode |
|
117 |
PJCompilationUnitNode |
|
118 |
PJExpressionNode |
|
119 |
PJImportDeclarationNode |
|
120 |
PJModifierNode |
|
121 |
PJPackageDeclarationNode |
|
122 |
PJParameterDeclaratorNode |
|
123 |
PJStatementNode |
|
124 |
PJSyntaxNode |
|
125 |
PJTypeNode |
|
126 |
PJVariableDeclaratorNode |
|
127 |
PPJavaSyntax |
|
128 |
PJAbstractTypeDeclarationNode |
|
129 |
PJAnnotationNode |
|
130 |
PJArrayTypeNode |
|
131 |
PJBehaviouralNode |
|
132 |
PJBooleanLiteralNode |
|
133 |
PJCharacterLiteralNode |
|
134 |
PJCommentsNode |
|
135 |
PJExpressionStatementNode |
|
136 |
PJFloatLiteralNode |
|
137 |
PJIdentifierNode |
|
138 |
PJIfStatementNode |
|
139 |
PJInfixOperationNode |
|
140 |
PJIntegerLiteralNode |
|
141 |
PJLocalVariableDeclarationStatementNode |
|
142 |
PJNameNode |
|
143 |
PJNullLiteralNode |
|
144 |
PJPrimitiveTypeNode |
|
145 |
PJReturnStatementNode |
|
146 |
PJSeparatorNode |
|
147 |
PJStringLiteralNode |
|
148 |
PJWhileStatementNode |
|
149 |
PPJavaParser |
|
150 |
PJConstructorDeclarationNode |
|
151 |
PJEndOfLineCommentsNode |
|
152 |
PJMethodDeclarationNode |
|
153 |
PJQualifiedNameNode |
|
154 |
PJSimpleNameNode |
|
155 |
PJTraditionalCommentsNode |
|
156 |
PJTypeDeclarationNode |
|
454
a9cd5ea7cc36
Portability: fixes for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
435
diff
changeset
|
157 |
(PPJavaParserTest autoload) |
a9cd5ea7cc36
Portability: fixes for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
435
diff
changeset
|
158 |
(PPJavaSyntaxTest autoload) |
435 | 159 |
) |
160 |
! |
|
161 |
||
162 |
extensionMethodNames |
|
163 |
"list class/selector pairs of extensions. |
|
164 |
A correponding method with real names must be present in my concrete subclasses" |
|
165 |
||
166 |
^ #( |
|
167 |
PPParser javaToken |
|
168 |
'Integer class' readFromJavaString: |
|
169 |
) |
|
170 |
! ! |
|
171 |
||
172 |
!stx_goodies_petitparser_parsers_java class methodsFor:'description - project information'! |
|
173 |
||
174 |
companyName |
|
175 |
"Returns a company string which will appear in <lib>.rc. |
|
176 |
Under win32, this is placed into the dlls file-info" |
|
177 |
||
178 |
^ 'eXept Software AG' |
|
179 |
! |
|
180 |
||
181 |
description |
|
182 |
"Returns a description string which will appear in nt.def / bc.def" |
|
183 |
||
184 |
^ 'Smalltalk/X Class library' |
|
185 |
! |
|
186 |
||
187 |
legalCopyright |
|
188 |
"Returns a copyright string which will appear in <lib>.rc. |
|
189 |
Under win32, this is placed into the dlls file-info" |
|
190 |
||
191 |
^ 'Copyright Claus Gittinger 1988-2015\nCopyright eXept Software AG 1998-2015' |
|
192 |
! |
|
193 |
||
194 |
productName |
|
195 |
"Returns a product name which will appear in <lib>.rc. |
|
196 |
Under win32, this is placed into the dlls file-info. |
|
197 |
This method is usually redefined in a concrete application definition" |
|
198 |
||
199 |
^ 'Smalltalk/X' |
|
200 |
! ! |
|
201 |
||
202 |
!stx_goodies_petitparser_parsers_java class methodsFor:'documentation'! |
|
203 |
||
204 |
version_HG |
|
205 |
^ '$Changeset: <not expanded> $' |
|
206 |
! ! |
|
207 |