coins.ffront
クラス UnaryNode

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

public class UnaryNode
extends java.lang.Object
implements Node, HasConstValue


フィールドの概要
(パッケージプライベート)  Node exp
           
(パッケージプライベート)  FirToHir fHir
           
(パッケージプライベート)  int op
           
 
コンストラクタの概要
UnaryNode(int op, Node pExp, FirToHir pfHir)
           
 
メソッドの概要
 FNumber getConstValue()
           
 Node getExp()
           
 int getOp()
           
 Exp makeArgAddr(FStmt pCallStmt)
          Make HIR Exp node from this expression as a call-by-address parameter in pCallStmt.
 Exp makeExp()
          Make HIR Exp node of this unary expression.
 java.lang.String opString()
           
 void print(int level, java.lang.String spaces)
           
 java.lang.String toString()
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

fHir

FirToHir fHir

op

int op

exp

Node exp
コンストラクタの詳細

UnaryNode

public UnaryNode(int op,
                 Node pExp,
                 FirToHir pfHir)
メソッドの詳細

getOp

public int getOp()

getExp

public Node getExp()

print

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

toString

public java.lang.String toString()
定義:
インタフェース Node 内の toString
オーバーライド:
クラス java.lang.Object 内の toString

opString

public java.lang.String opString()

makeExp

public Exp makeExp()
Make HIR Exp node of this unary expression. In case of complex expression make a special ComplexExp node which is composed of a real part expression node and an imaginary part expression node.

定義:
インタフェース Node 内の makeExp
戻り値:
HIR Exp.

makeArgAddr

public Exp makeArgAddr(FStmt pCallStmt)
Make HIR Exp node from this expression as a call-by-address parameter in pCallStmt.

定義:
インタフェース Node 内の makeArgAddr
パラメータ:
pCallStmt - a call statement or a function call expression
戻り値:
HIR Exp node.

getConstValue

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