Package net.emustudio.edigen.nodes
Class Format
- java.lang.Object
-
- net.emustudio.edigen.nodes.TreeNode
-
- net.emustudio.edigen.nodes.Format
-
public class Format extends TreeNode
A node representing a textual instruction format (used in a disassembler).Consists of a format string and a list of values.
-
-
Constructor Summary
Constructors Constructor Description Format(java.lang.String formatString)Constructs the format node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Accepts the visitor.java.lang.StringgetFormatString()Returns the format string.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
-
-
-
-
Method Detail
-
getFormatString
public java.lang.String getFormatString()
Returns the format string.- Returns:
- the string
-
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
-
-