Package net.emustudio.edigen
Class Visitor
- java.lang.Object
-
- net.emustudio.edigen.Visitor
-
- Direct Known Subclasses:
DetectAmbiguousVisitor,DetectRootRulesVisitor,DetectUnreachableFormatsVisitor,DetectUnusedRulesVisitor,GenerateFieldsVisitor,GenerateFormatsVisitor,GenerateMaxInstructionBytes,GenerateMethodsVisitor,GenerateParametersVisitor,GroupVisitor,MergePatternsVisitor,NarrowMasksVisitor,PushDownVariantsVisitor,RemoveUnreachablePatternsVisitor,ResolveNamesVisitor,SemanticCheckVisitor,SortVisitor,SplitVisitor
public abstract class Visitor extends java.lang.ObjectGeneric tree node visitor.The subclasses can override needed methods to implement the expected behavior when visiting the particular node. Unoverriden methods will have the default behavior, which is to accept all children.
-
-
Constructor Summary
Constructors Constructor Description Visitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(Decoder decoder)voidvisit(Disassembler disassembler)voidvisit(Format format)voidvisit(Mask mask)voidvisit(Pattern pattern)voidvisit(Rule rule)voidvisit(Specification specification)voidvisit(Subrule subrule)voidvisit(TreeNode node)voidvisit(Value value)voidvisit(Variant variant)
-
-
-
Method Detail
-
visit
public void visit(TreeNode node) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Decoder decoder) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Disassembler disassembler) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Format format) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Mask mask) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Pattern pattern) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Rule rule) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Specification specification) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Subrule subrule) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Value value) throws SemanticException
- Throws:
SemanticException
-
visit
public void visit(Variant variant) throws SemanticException
- Throws:
SemanticException
-
-