Package net.emustudio.edigen.nodes
Class Specification
- java.lang.Object
-
- net.emustudio.edigen.nodes.TreeNode
-
- net.emustudio.edigen.nodes.Specification
-
public class Specification extends TreeNode
The root node of the specification AST.
-
-
Constructor Summary
Constructors Constructor Description Specification(Decoder decoder, Disassembler disassembler)Constructs the specification node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Accepts the visitor.DecodergetDecoder()Returns the instruction decoder node.DisassemblergetDisassembler()Returns the disassembler node.TreeNodeshallowCopy()java.lang.StringtoString()Returns a string representation of the object.-
Methods inherited from class net.emustudio.edigen.nodes.TreeNode
acceptChildren, addChild, addChildren, addChildren, childCount, copy, dump, getChild, getChildren, getLine, getParent, hashCode, remove, setLine
-
-
-
-
Constructor Detail
-
Specification
public Specification(Decoder decoder, Disassembler disassembler)
Constructs the specification node.- Parameters:
decoder- the decoder nodedisassembler- the disassembler node
-
-
Method Detail
-
getDecoder
public Decoder getDecoder()
Returns the instruction decoder node.- Returns:
- the decoder
-
getDisassembler
public Disassembler getDisassembler()
Returns the disassembler node.- Returns:
- the disassembler node
-
accept
public void accept(Visitor visitor) throws SemanticException
Accepts the visitor.- Overrides:
acceptin classTreeNode- Parameters:
visitor- the visitor object- Throws:
SemanticException- depends on the specific visitor
-
toString
public java.lang.String toString()
Returns a string representation of the object.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string
-
shallowCopy
public TreeNode shallowCopy()
- Specified by:
shallowCopyin classTreeNode
-
-