coins.ffront
クラス ComplexConstNode

java.lang.Object
  |
  +--coins.ffront.Pair
        |
        +--coins.ffront.ComplexConstNode
すべての実装インタフェース:
HasConstValue, Node

public class ComplexConstNode
extends Pair
implements HasConstValue

Complex constant


フィールドの概要
 
クラス coins.ffront.Pair から継承したフィールド
fHir, left, right
 
コンストラクタの概要
ComplexConstNode(Node pReal, Node pImag, FirToHir pfHir)
           
 
メソッドの概要
 FNumber getConstValue()
           
(パッケージプライベート)  Node getImag()
           
(パッケージプライベート)  Node getReal()
           
 Exp makeArgAddr(FStmt pCallStmt)
          Make HIR Exp node from this complex constant as a call-by-address parameter in pCallStmt.
 Exp makeExp()
          Make HIR Exp node of this complex constant.
(パッケージプライベート)  Exp makeRealExp(Node pNode)
           
 void print(int level, java.lang.String spaces)
           
 
クラス coins.ffront.Pair から継承したメソッド
getLeft, getRight, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ComplexConstNode

public ComplexConstNode(Node pReal,
                        Node pImag,
                        FirToHir pfHir)
メソッドの詳細

getReal

Node getReal()

getImag

Node getImag()

print

public void print(int level,
                  java.lang.String spaces)
定義:
インタフェース Node 内の print
オーバーライド:
クラス Pair 内の print

makeExp

public Exp makeExp()
Make HIR Exp node of this complex constant.

定義:
インタフェース Node 内の makeExp
オーバーライド:
クラス Pair 内の makeExp
戻り値:
HIR Exp.

makeArgAddr

public Exp makeArgAddr(FStmt pCallStmt)
Make HIR Exp node from this complex constant as a call-by-address parameter in pCallStmt. typedef struct { float _real; float _imag; } _complex_struct; _complex_struct dummyName; dummyName._real = left; dummyName._imag = right; return Exp node of address of dummyName

定義:
インタフェース Node 内の makeArgAddr
オーバーライド:
クラス Pair 内の makeArgAddr
パラメータ:
pCallStmt -
戻り値:
HIR Exp.

makeRealExp

Exp makeRealExp(Node pNode)

getConstValue

public FNumber getConstValue()
定義:
インタフェース HasConstValue 内の getConstValue