Package EDU.purdue.jtb.generate
Class BaseNodesGenerator
- java.lang.Object
-
- EDU.purdue.jtb.generate.BaseNodesGenerator
-
public class BaseNodesGenerator extends java.lang.Object
ClassBaseNodesGenerator
contains methods to generate the base nodes interfaces and classes. CODEJAVAClass 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
Constructors Constructor Description BaseNodesGenerator(JTBOptions aJopt, CommonCodeGenerator aCcg, Messages aMess)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
genBaseNodesFiles(java.util.List<UserClassInfo> aClasses)
Generates the base nodes source files.
-
-
-
Constructor Detail
-
BaseNodesGenerator
public BaseNodesGenerator(JTBOptions aJopt, CommonCodeGenerator aCcg, Messages aMess)
Constructor.- Parameters:
aJopt
- - the JTB optionsaCcg
- - theCommonCodeGenerator
aMess
- - the messages handler
-
-
Method Detail
-
genBaseNodesFiles
public int genBaseNodesFiles(java.util.List<UserClassInfo> aClasses) throws java.io.IOException
Generates the base nodes source files.- Parameters:
aClasses
- - the list ofUserClassInfo
classes instances- Returns:
- the number of generated files
- Throws:
java.io.IOException
- if IO problem
-
-