Package net.emustudio.edigen.generation
Class GenerateFormatsVisitor
- java.lang.Object
-
- net.emustudio.edigen.Visitor
-
- net.emustudio.edigen.generation.GenerateFormatsVisitor
-
public class GenerateFormatsVisitor extends Visitor
A visitor which generates the code of the array of disassembler formats.
-
-
Constructor Summary
Constructors Constructor Description GenerateFormatsVisitor(java.io.Writer writer)Constucts the visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(Disassembler disassembler)Writes the formats separated by commas.voidvisit(Format format)Saves the format string in the quotes into the variable.
-
-
-
Method Detail
-
visit
public void visit(Disassembler disassembler) throws SemanticException
Writes the formats separated by commas.- Overrides:
visitin classVisitor- Parameters:
disassembler- the disassembler node- Throws:
SemanticException- never
-
-