|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.lir2c.Convert
Convert: converts LirNode to C code. a node of LirNode is converted to a line of C code (excepts "switch" sentence).
コンストラクタの概要 | |
Convert()
Constructor(with no arg) |
メソッドの概要 | |
(パッケージプライベート) java.lang.String |
biOpToStr(LirNode node,
LirNode child1,
LirNode child2,
java.lang.String Ope,
boolean inMEM,
LirNode parent)
biOpToStr: get the expression of C code for bi Operator node(ADD,etc). |
(パッケージプライベート) java.lang.String |
dump(LirNode node,
boolean inMEM,
LirNode parent)
dump: main method of the convertion. |
java.lang.String |
invoke(LirNode node)
invoke: the method that you should call it first. |
(パッケージプライベート) java.lang.String |
lirToTypeStr(LirNode node)
lirToTypeStr: get type string of the variable, expression, etc by calling coins.backend.Type@toString() method. |
(パッケージプライベート) java.lang.String |
lirToTypeStr2(LirNode node)
lirToTypeStr2: get type string of the variable, expression, etc by calling coins.backend.Type@toString() method. |
(パッケージプライベート) java.lang.String |
lirToTypeStr3(LirNode node)
lirToTypeStr3: get type string and parenthes of the variable, expression, etc by calling coins.backend.Type@toString() method. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public Convert()
メソッドの詳細 |
public java.lang.String invoke(LirNode node)
node
- the root node that will convert to C code.
java.lang.String dump(LirNode node, boolean inMEM, LirNode parent)
node
- the node that will convert to a part of C code.inMEM
- the boolean value which node are in MEM expression.parent
- the node that is a parent of the node.
java.lang.String lirToTypeStr(LirNode node)
node
- the node to get the type string.
java.lang.String lirToTypeStr2(LirNode node)
node
- the node to get the type string.
java.lang.String lirToTypeStr3(LirNode node)
node
- the node to get the type string.
java.lang.String biOpToStr(LirNode node, LirNode child1, LirNode child2, java.lang.String Ope, boolean inMEM, LirNode parent)
node
- the node to convert.child1
- the node of first child node.child2
- the node of second child node.inMEM
- the node that is in the MEM expression is true, or false.parent
- the node that is a parent of the node.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |