Package net.emustudio.edigen.generation
Class GenerateParametersVisitor
- java.lang.Object
-
- net.emustudio.edigen.Visitor
-
- net.emustudio.edigen.generation.GenerateParametersVisitor
-
public class GenerateParametersVisitor extends Visitor
A visitor which generates the code of the two-dimensional array of disassembler parameters (i.e., values on the right side of a format).
-
-
Constructor Summary
Constructors Constructor Description GenerateParametersVisitor(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 list of format sets separated by commas.voidvisit(Format format)Writes the list of parameters separated by commas and enclosed in curly brackets.voidvisit(Value value)Writes the name of the field for the disassembler parameter.
-
-
-
Method Detail
-
visit
public void visit(Disassembler disassembler) throws SemanticException
Writes the list of format sets separated by commas.- Overrides:
visitin classVisitor- Parameters:
disassembler- the disassembler node- Throws:
SemanticException- never
-
visit
public void visit(Format format) throws SemanticException
Writes the list of parameters separated by commas and enclosed in curly brackets.- Overrides:
visitin classVisitor- Parameters:
format- the format node- Throws:
SemanticException- never
-
visit
public void visit(Value value) throws SemanticException
Writes the name of the field for the disassembler parameter.- Overrides:
visitin classVisitor- Parameters:
value- the value node (the parameter)- Throws:
SemanticException- never
-
-