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 TypeMethodDescriptionintgenBaseNodesFiles(List<UserClassInfo> aClasses) Generates the base nodes source files.
-
Constructor Details
-
BaseNodesGenerator
Constructor.- Parameters:
aJopt- - the JTB optionsaCcg- - theCommonCodeGeneratoraMess- - the messages handler
-
-
Method Details
-
genBaseNodesFiles
Generates the base nodes source files.- Parameters:
aClasses- - the list ofUserClassInfoclasses instances- Returns:
- the number of generated files
- Throws:
IOException- if IO problem
-