Package EDU.purdue.jtb.generate
Class BaseNodesGenerator
java.lang.Object
EDU.purdue.jtb.generate.BaseNodesGenerator
Class
BaseNodesGenerator
contains methods to generate the base nodes interfaces and classes.
CODEJAVA
Class maintains a state, and is not supposed to be run in parallel threads (on the same grammar). It does not generate the files in parallel.
-
Constructor Summary
ConstructorsConstructorDescriptionBaseNodesGenerator
(JTBOptions aJopt, CommonCodeGenerator aCcg, Messages aMess) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
genBaseNodesFiles
(List<UserClassInfo> aClasses) Generates the base nodes source files.
-
Constructor Details
-
BaseNodesGenerator
Constructor.- Parameters:
aJopt
- - the JTB optionsaCcg
- - theCommonCodeGenerator
aMess
- - the messages handler
-
-
Method Details
-
genBaseNodesFiles
Generates the base nodes source files.- Parameters:
aClasses
- - the list ofUserClassInfo
classes instances- Returns:
- the number of generated files
- Throws:
IOException
- if IO problem
-