org.oklab.compiler.syntaxtree.statement
クラス If

java.lang.Object
  上位を拡張 org.oklab.compiler.syntaxtree.Node
      上位を拡張 org.oklab.compiler.syntaxtree.statement.Statement
          上位を拡張 org.oklab.compiler.syntaxtree.statement.Condition
              上位を拡張 org.oklab.compiler.syntaxtree.statement.If

public class If
extends Condition

if文. 親クラスのConditionのコンストラクタが構文解析を行っている.

導入されたバージョン:
1.0
バージョン:
1.0
作成者:
Satoshi Okita satoshiokita@gmail.com
関連項目:
Condition

フィールドの概要
 
クラス org.oklab.compiler.syntaxtree.statement.Condition から継承されたフィールド
condition, executeStatement, leftOperand, rightOperand
 
クラス org.oklab.compiler.syntaxtree.Node から継承されたフィールド
parent
 
コンストラクタの概要
If(Node parent, SourceReader sReader)
          Creates a new instance of If
 
メソッドの概要
 boolean emitCode(CodeBufferManager code)
          コード出力.
 
クラス org.oklab.compiler.syntaxtree.Node から継承されたメソッド
getReturnType, localVariableCount, parseExpression, parseFactor, parseRefferenceOrCall, parseStatement, parseTerm, setParent
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

If

public If(Node parent,
          SourceReader sReader)
   throws CompileError
Creates a new instance of If

例外:
CompileError
メソッドの詳細

emitCode

public boolean emitCode(CodeBufferManager code)
                 throws CompileError
コード出力.

定義:
クラス Statement 内の emitCode
パラメータ:
code - コードバッファ.
戻り値:
Return文法ではないのでfalseを返す.
例外:
CompileError - コード出力に失敗した場合にこの例外を投げる.