Package net.emustudio.edigen.generation
Class GenerateMaxInstructionBytes
- java.lang.Object
-
- net.emustudio.edigen.Visitor
-
- net.emustudio.edigen.generation.GenerateMaxInstructionBytes
-
public class GenerateMaxInstructionBytes extends Visitor
Finds out max instruction size in bytes.
-
-
Constructor Summary
Constructors Constructor Description GenerateMaxInstructionBytes(java.io.Writer output)Constructs the visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(Decoder decoder)voidvisit(Mask mask)Detects max bits size of a mask and its childrenvoidvisit(Rule rule)voidvisit(Subrule subrule)
-
-
-
Method Detail
-
visit
public void visit(Decoder decoder) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
visit
public void visit(Rule rule) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
visit
public void visit(Mask mask) throws SemanticException
Detects max bits size of a mask and its children- Overrides:
visitin classVisitor- Parameters:
mask- the mask node- Throws:
SemanticException- never
-
visit
public void visit(Subrule subrule) throws SemanticException
- Overrides:
visitin classVisitor- Throws:
SemanticException
-
-