Package net.emustudio.edigen.generation
Class DecoderGenerator
- java.lang.Object
-
- net.emustudio.edigen.generation.Generator
-
- net.emustudio.edigen.generation.DecoderGenerator
-
public class DecoderGenerator extends Generator
The instruction decoder generator.
-
-
Constructor Summary
Constructors Constructor Description DecoderGenerator(Decoder decoder, java.lang.String name)Constructs the instruction decoder generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillTemplate(Template template)Fills the template with variables and the generated code.-
Methods inherited from class net.emustudio.edigen.generation.Generator
generate, getClassName, getPackageName, setOutputDirectory, setTemplateFile
-
-
-
-
Constructor Detail
-
DecoderGenerator
public DecoderGenerator(Decoder decoder, java.lang.String name)
Constructs the instruction decoder generator.- Parameters:
decoder- the decoder nodename- the resulting package + class name
-
-
Method Detail
-
fillTemplate
protected void fillTemplate(Template template) throws SemanticException
Fills the template with variables and the generated code.- Overrides:
fillTemplatein classGenerator- Parameters:
template- the template object- Throws:
SemanticException- never
-
-